aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Documentation/pbuilder-doc.xml31
-rw-r--r--debian/changelog1
3 files changed, 34 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1aa7967..3f0206f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2006-05-15 Junichi Uekawa <dancer@debian.org>
+ * Documentation/pbuilder-doc.xml: document method for adding local
+ repository.
+
* pbuilder-satisfydepends: add support for new dpkg-dev construct
for linux-any etc. patch by Peter Eisentraut.
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
</para>
</sect1>
<sect1>
- <title>Using special apt sources lists</title>
+ <title>Using special apt sources lists, and local packages</title>
<para>
If you have some very specialized requirements on your
apt setup inside pbuilder,
@@ -827,6 +827,30 @@ $ sudo pbuilder update --hookdir ~/loginhooks/E10shell
<command><option>--bindmounts</option></command>
is a command-line option useful for such cases.
</para>
+ <para>
+ 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.
+ </para>
+ <para>
+ <screen>BINDMOUNTS="/var/cache/pbuilder/result"
+ </screen>
+ </para>
+ <para>
+ Then, add the following hook
+ </para>
+ <para>
+ <screen>
+# cat /var/cache/pbuilder/hooks/D70results
+#!/bin/sh
+cd /var/cache/pbuilder/result/
+/usr/bin/dpkg-scanpackages . /dev/null &gt; /var/cache/pbuilder/result/Packages
+/usr/bin/apt-get update
+ </screen>
+ </para>
+ <para>
+ This way, you can use <filename>deb file:/var/cache/pbuilder/result</filename>
+ </para>
</sect1>
<sect1>
<title>How to get pbuilder to run apt-get update before trying to satisfy build-dependency</title>
@@ -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.
</para>
+ <para>
+ <url link="http://lists.debian.org/debian-devel/2006/05/msg00550.html">
+ This snippet comes from Ondrej Sury.
+ </url>
+ </para>
</sect1>
<sect1>
<title>Different bash prompts inside pbuilder login</title>
diff --git a/debian/changelog b/debian/changelog
index c6d1ec1..957dffa 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ pbuilder (0.153) UNRELEASED; urgency=low
* fix pdebuild --help output (closes: #367133)
* Support for new style architecture specifications (closes: #363193)
Thanks to Peter Eisentraut for patch.
+ * update documentation to add a snippet.
-- Junichi Uekawa <dancer@debian.org> Mon, 15 May 2006 03:10:06 +0900