[pbuilder] 02/02: buildpackage: ignore the R³ field if the installed dpkg is too old to appropriately deal with it

Mattia Rizzolo mattia at debian.org
Wed Nov 15 17:03:28 UTC 2017


This is an automated email from the git hooks/post-receive script.

mattia pushed a commit to branch master
in repository pbuilder.

commit db7fafd44904470aec2c2dae4e3c4235d1b76b5a
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Wed Nov 15 18:03:16 2017 +0100

    buildpackage: ignore the R³ field if the installed dpkg is too old to appropriately deal with it
    
    Signed-off-by: Mattia Rizzolo <mattia at debian.org>
---
 pbuilder-buildpackage | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index 71eac1e..8c4e802 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -146,7 +146,8 @@ else
 fi
 
 RRR="$(get822field Rules-Requires-Root "$BUILDPLACE/$BUILDDIR/$BUILDSUBDIR/debian/control")"
-if [[ "${RRR,,}" != no ]]; then
+if [[ "${RRR,,}" != no ]] ||
+        dpkg --compare-versions $($CHROOTEXEC dpkg-query -W -f '${Version}' dpkg-dev) lt 1.19.0 ; then
     DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot"
     EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot"
     log.i "using fakeroot in build."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git



More information about the Pbuilder-maint mailing list