Package: pbuilder Version: 0.181 Severity: wishlist Tags: patch --- Please enter the report below this line. ---
Many sponsors will build packages twice in a row to ensure the archive will be reuildable. Adding a pbuilder option to do this would make it easier for people to test for this and improve the quality of the archive. This option would restart the build in the same chroot with the post-build source from the first build. --- System information. --- Architecture: i386 Kernel: Linux 2.6.24-19-generic Debian Release: lenny/sid 500 hardy-updates archive.ubuntu.com 500 hardy-security security.ubuntu.com 500 hardy-backports us.archive.ubuntu.com 500 hardy-backports archive.ubuntu.com 500 hardy archive.ubuntu.com --- Package information. --- Depends (Version) | Installed =============================-+-============= coreutils (>= 4.5.8-1) | 6.10-3ubuntu2 debianutils (>= 1.13.1) | 2.28.2-0ubuntu1 debootstrap | 1.0.9~hardy1 OR cdebootstrap | gcc | 4:4.2.3-1ubuntu6 wget | 1.10.2-3ubuntu1 -- aka nxvl Key fingerprint = BCE4 27A0 D03E 55DE DA2D BE06 891D 8DEE 6545 97FE gpg --keyserver keyserver.ubuntu.com --recv-keys 654597FE
--- pbuilder 2008-05-24 18:54:05.000000000 -0400 +++ pbuilder 2008-08-02 19:13:18.000000000 -0400 @@ -34,6 +34,10 @@ shift ; /usr/lib/pbuilder/pbuilder-updatebuildenv "$@" ;; + --build-twice-in-a-row|build-twice-in-a-row) + shift ; + /usr/lib/pbuilder/pbuilder-buildpackage --twice "$@" + ;; --build|build) shift ; /usr/lib/pbuilder/pbuilder-buildpackage "$@" --- pbuilder-buildpackage 2008-05-24 18:54:05.000000000 -0400 +++ pbuilder-buildpackage 2008-08-02 19:13:07.000000000 -0400 @@ -25,6 +25,11 @@ . /usr/lib/pbuilder/pbuilder-runhooks . /usr/lib/pbuilder/pbuilder-buildpackage-funcs +if [ "$1" = --twice]; then + TWICE=True + shift; +fi + PACKAGENAME="$1" if [ ! -f "$PACKAGENAME" ]; then echo "Command line parameter [$PACKAGENAME] is not a valid .dsc file name" >&2 @@ -117,8 +122,14 @@ if [ -z "$DEBEMAIL" ]; then DPKG_COMMANDLINE="cd tmp/buildd/*/; dpkg-buildpackage -us -uc $DEBBUILDOPTS" + if [ -z "$TWICE" ]; then + DPKG_COMMANDLINE="$DPKG_COMMANDLINE; dpkg-buildpackage -us -uc $DEBBUILDOPTS" + fi else DPKG_COMMANDLINE="cd tmp/buildd/*/; dpkg-buildpackage -us -uc \"-m$DEBEMAIL\" $DEBBUILDOPTS" + if [ -z "$TWICE" ]; then + DPKG_COMMANDLINE="$DPKG_COMMANDLINE; dpkg-buildpackage -us -uc \"-m$DEBEMAIL\" $DEBBUILDOPTS" + fi fi (
signature.asc
Description: This is a digitally signed message part