[pbuilder] 01/01: pdebuild-internal: Expand DEBBUILDOPTS outside su to match pbuilder-buildpackage behaviour

James Clarke jrtc27 at moszumanska.debian.org
Sun Jul 9 19:07:08 UTC 2017


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

jrtc27 pushed a commit to branch master
in repository pbuilder.

commit 1611fd424e783ffa4a4138bafae93d6220e6bea9
Author: James Clarke <jrtc27 at debian.org>
Date:   Sun Jul 9 20:06:57 2017 +0100

    pdebuild-internal: Expand DEBBUILDOPTS outside su to match pbuilder-buildpackage behaviour
---
 pdebuild-internal | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pdebuild-internal b/pdebuild-internal
index b795867..b6bd601 100644
--- a/pdebuild-internal
+++ b/pdebuild-internal
@@ -124,9 +124,10 @@ useradd -g pbgroup -u "${BUILDRESULTUID}" -d "${HOME}" -o pbuser
 executehooks "A"
 
 # do build with that user.
-# $DEBBUILDOPTS is evaluated inside the su and chroot.
+# $DEBBUILDOPTS is expanded here, but split inside the su, to ensure the
+# options are de-quoted (and de-escaped) like pbuilder-buildpackage.
 export DEBBUILDOPTS
-CMD="env PATH=$PATH dpkg-buildpackage -rfakeroot -us -uc "'${DEBBUILDOPTS}'
+CMD="env PATH=$PATH dpkg-buildpackage -rfakeroot -us -uc $DEBBUILDOPTS"
 echo "I: Running $CMD"
 # This command should be ran with current directory as bind-mounted
 # package source directory

-- 
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