aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-07-27 07:32:43 +0900
committerJunichi Uekawa <dancer@dancer64.netfort.gr.jp>2007-07-27 07:32:43 +0900
commit0a902dbdeb050286e0b8addce3967462c2e38f8b (patch)
treeded8abc61085d0521e88f06366138fed72b56a1d /Documentation
parent32961d66a15ee4a2fd37dd44517b450e19327bd2 (diff)
downloadpbuilder-0a902dbdeb050286e0b8addce3967462c2e38f8b.tar
pbuilder-0a902dbdeb050286e0b8addce3967462c2e38f8b.tar.gz
* Bug fix: "$HOME/.pbuilderrc example for use in using multiple pbuilder
setups", thanks to Andres Mejia (Closes: #432277).
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pbuilder-doc.xml51
1 files changed, 51 insertions, 0 deletions
diff --git a/Documentation/pbuilder-doc.xml b/Documentation/pbuilder-doc.xml
index 9d5af6e..de98ae9 100644
--- a/Documentation/pbuilder-doc.xml
+++ b/Documentation/pbuilder-doc.xml
@@ -864,6 +864,57 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell
<command>pbuilder</command> with a etch chroot.
</para>
</sect1>
+ <sect1 id="ENVVARDISTRIBUTIONSWITCH">
+ <title>Using environmental variables for running <command>pbuilder</command>
+ for specific distribution
+ </title>
+ <para> This section<footnote>
+ <para>This part of the documentation contributed by Andres Mejia</para>
+ <para>
+ This example was taken from a wiki (<ulink url="https://wiki.ubuntu.com/PbuilderHowto">https://wiki.ubuntu.com/PbuilderHowto</ulink>).
+ </para>
+
+ </footnote>
+ describes briefly a way to setup and use multiple pbuilder setups
+ by creating a pbuilderrc configuration in your home path (<filename>$HOME/.pbuilderrc</filename>)
+ and using the variable "DIST" when running pbuilder or pdebuild.
+</para>
+ <para> First, setup <filename>$HOME/.pbuilderrc</filename> to look like:</para>
+ <para>
+ <screen>
+if [ -n "${DIST}" ]; then
+ BASETGZ="`dirname $BASETGZ`/$DIST-base.tgz"
+ DISTRIBUTION="$DIST"
+ BUILDRESULT="/var/cache/pbuilder/$DIST/result/"
+ APTCACHE="/var/cache/pbuilder/$DIST/aptcache/"
+fi
+</screen></para>
+ <para>Then, whenever you wish to use pbuilder for a particular distro, assign a value
+to "DIST" that is one of the distros available for Debian or any Debian based
+distro you happen to be running (i.e. whatever is found under
+/usr/lib/debootstrap/scripts).
+ </para>
+
+ <para>Here's some examples on running pbuilder or pdebuild:
+</para>
+ <para><screen>
+DIST=gutsy sudo pbuilder create
+
+DIST=sid sudo pbuilder create --mirror http://http.us.debian.org/debian
+
+DIST=gutsy sudo pbuilder create \
+ --othermirror "deb http://archive.ubuntu.com/ubuntu gutsy universe \
+ multiverse"
+
+DIST=gutsy sudo pbuilder update
+
+DIST=sid sudo pbuilder update --override-config --mirror \
+http://http.us.debian.org/debian \
+--othermirror "deb http://http.us.debian.org/debian sid contrib non-free"
+
+DIST=gutsy pdebuild
+</screen></para>
+ </sect1>
<sect1 id="usingspecialaptsources">
<title>Using special apt sources lists, and local packages</title>
<para>