Bug#652527: pbuilder: No hook option for after .debs are written
Philip Ashmore
contact at philipashmore.com
Sun Dec 18 08:07:47 UTC 2011
Package: pbuilder
Version: 0.204
Severity: wishlist
Dear Maintainer,
I've got a chain of 4 packages the last three depend on the ones before it.
I created a simple mirror using
dpkg-scanpackages . /dev/null > Packages
And updated my ~/.pbuilderrc to contain
BINDMOUNTS="/var/cache/pbuilder/build"
BUILDRESULT="/var/cache/pbuilder/build"
OTHERMIRROR="deb file://var/cache/pbuilder/build/ ./"
HOOKDIR="/var/cache/pbuilder/hooks"
I added a hook to regenerate the Packages file for this repo:
/var/cache/pbuilder/hooks/D70results
#!/bin/sh
cd /var/cache/pbuilder/build
/usr/bin/dpkg-scanpackages . /dev/null > /var/cache/pbuilder/build/Packages
/usr/bin/apt-get update
....and made it executable.
This all works fine, and I can skip along, building the debian package and then
sudo pbuilder build build/*.dsc
In each konsole window to pick up the new packages that the next one requires.
The inconvenience is the lack of a hook that does what the existing hook does,
but after the .debs
are written to the $BUILDRESULT directory.
That way, the Packages file could be updated with the new .deb files.
I need to do this as I need the previous package installed on my system so I
can create the input files for pbuilder.
As it is, I have to do this by hand, and it's easy to forget, although not a
huge inconvenience.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pbuilder depends on:
ii coreutils 8.13-3
ii debconf [debconf-2.0] 1.5.41
ii debianutils 4.1
ii debootstrap 1.0.38
ii wget 1.13.4-1
Versions of packages pbuilder recommends:
ii devscripts 2.11.2
ii fakeroot 1.18.2-1
ii sudo-trinity [sudo] 1.7.2p7-1
Versions of packages pbuilder suggests:
ii cowdancer <none>
ii gdebi-core 0.8.3
ii pbuilder-uml 0.204
-- debconf information:
pbuilder/rewrite: false
pbuilder/mirrorsite: http://ftp.ie.debian.org/debian/
pbuilder/nomirror:
More information about the Pbuilder-maint
mailing list