From d07e04c964834e200e92b89eedf09c6da37e28fb Mon Sep 17 00:00:00 2001 From: dancer Date: Mon, 15 May 2006 12:49:55 +0000 Subject: * Documentation/pbuilder-doc.xml: document method for adding local repository. thanks to Ondrej. --- Documentation/pbuilder-doc.xml | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'Documentation') diff --git a/Documentation/pbuilder-doc.xml b/Documentation/pbuilder-doc.xml index 6cf4cf7..f04a309 100644 --- a/Documentation/pbuilder-doc.xml +++ b/Documentation/pbuilder-doc.xml @@ -811,7 +811,7 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell - Using special apt sources lists + Using special apt sources lists, and local packages If you have some very specialized requirements on your apt setup inside pbuilder, @@ -827,6 +827,30 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell is a command-line option useful for such cases. + + It might be convenient to use your built packages from inside the chroot. + It is possible to automate the task with the following configuration. + First, set up pbuilderrc to bindmount your build results directory. + + + BINDMOUNTS="/var/cache/pbuilder/result" + + + + Then, add the following hook + + + +# cat /var/cache/pbuilder/hooks/D70results +#!/bin/sh +cd /var/cache/pbuilder/result/ +/usr/bin/dpkg-scanpackages . /dev/null > /var/cache/pbuilder/result/Packages +/usr/bin/apt-get update + + + + This way, you can use deb file:/var/cache/pbuilder/result + How to get pbuilder to run apt-get update before trying to satisfy build-dependency @@ -834,6 +858,11 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell You can use hook scripts for this. D scripts are run before satisfying build-dependency. + + + This snippet comes from Ondrej Sury. + + Different bash prompts inside pbuilder login -- cgit v1.2.3