diff options
-rw-r--r-- | ChangeLog | 15 | ||||
-rw-r--r-- | Makefile | 7 | ||||
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh | 12 | ||||
-rwxr-xr-x | pbuilder-createbuildenv | 3 | ||||
-rw-r--r-- | pbuilder.8 | 8 | ||||
-rwxr-xr-x | testsuite/run-test.sh | 2 |
7 files changed, 45 insertions, 6 deletions
@@ -1,3 +1,18 @@ +2006-01-30 Junichi Uekawa <dancer@debian.org> + + * Makefile: install the script + + * examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh: implement workaround. + + * pbuilder.8: document G hook. + + * pbuilder-createbuildenv: add G hook + + * testsuite/run-test.sh: use the workaround dir for testing. + + * Makefile: install workaround hooks to + /usr/share/doc/pbuilder/examples/workaround + 2006-01-24 Junichi Uekawa <dancer@debian.org> * examples/B92test-pkg: improve the script a bit; do not fail if @@ -89,10 +89,9 @@ install: $(INSTALL_EXECUTABLE) examples/pbuilder-distribution.sh $(DESTDIR)/usr/share/doc/pbuilder/examples # install workaround for initscripts -- 2005-12-21 - $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/344089 - $(INSTALL_EXECUTABLE) examples/E50-initscripts-2.86.ds1-7.workaround.sh $(DESTDIR)/usr/share/doc/pbuilder/examples/344089 - - + $(INSTALL_DIRECTORY) $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround + $(INSTALL_EXECUTABLE) examples/E50-initscripts-2.86.ds1-7.workaround.sh $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround + $(INSTALL_EXECUTABLE) examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh $(DESTDIR)/usr/share/doc/pbuilder/examples/workaround cd pbuildd; make install DESTDIR=$(DESTDIR) cd Documentation; make install DESTDIR=$(DESTDIR) diff --git a/debian/changelog b/debian/changelog index ae9d49e..0d2a110 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,8 +2,10 @@ pbuilder (0.146) UNRELEASED; urgency=low * improve B92test-pkg: cd to package build directory before invoking test scripts. + * work around 350262, bug in initscripts and cdebootstrap interaction. + Use --hookdir=/usr/share/doc/pbuilder/examples/ - -- Junichi Uekawa <dancer@debian.org> Tue, 24 Jan 2006 19:00:44 +0900 + -- Junichi Uekawa <dancer@debian.org> Mon, 30 Jan 2006 06:15:02 +0900 pbuilder (0.145) unstable; urgency=low diff --git a/examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh b/examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh new file mode 100644 index 0000000..e4749c0 --- /dev/null +++ b/examples/G50-initscripts-2.86.ds1-11-cdebootstrap0.3.9.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# work around initscripts postinst which mounts /sys with cdebootstrap. +# Bug: #350262 + +set +e + +umount /sys +umount /run +umount /proc/bus/usb +umount /dev/shm + +exit 0; diff --git a/pbuilder-createbuildenv b/pbuilder-createbuildenv index 9b208c3..e387043 100755 --- a/pbuilder-createbuildenv +++ b/pbuilder-createbuildenv @@ -70,11 +70,14 @@ fi echo " -> debootstrap finished" loadhooks + mkdir -p "$BUILDPLACE/tmp/buildd" copy_local_configuration installaptlines +executehooks "G" + echo "Refreshing the base.tgz " echo " -> upgrading packages" mountproc @@ -329,6 +329,14 @@ or .B execute target. +.B "G<digit><digit><whatever-else-you-want>" +is executed just after debootstrap finishes, +and configuration is loaded, and pbuilder starts mounting /proc and invoking +.B "apt-get install" +in +.B create +target. + \" End of hookdir description diff --git a/testsuite/run-test.sh b/testsuite/run-test.sh index b080967..9fe66fe 100755 --- a/testsuite/run-test.sh +++ b/testsuite/run-test.sh @@ -27,7 +27,7 @@ testbuild=$testdir/dir1 testbuild2=$testdir/dir2 testbuild3=$testdir/dir3 -HOOKOPTION=" --hookdir /usr/share/doc/pbuilder/examples/344089" +HOOKOPTION=" --hookdir /usr/share/doc/pbuilder/examples/workaround" for DEBOOTSTRAP in debootstrap cdebootstrap; do case $DEBOOTSTRAP in |