diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-17 20:51:21 +0000 |
---|---|---|
committer | Mattia Rizzolo <mattia@mapreri.org> | 2015-06-17 20:54:56 +0000 |
commit | 32c1cd2878a265297276b3edcc2ed0cbc8c0c81e (patch) | |
tree | ba26c5075e81695eb71e3c0d4800d578edb3dd4e /pbuilder-buildpackage | |
parent | 3d796ccd6294107414d3c5e3d8a219ef39f5a4b8 (diff) | |
download | pbuilder-32c1cd2878a265297276b3edcc2ed0cbc8c0c81e.tar pbuilder-32c1cd2878a265297276b3edcc2ed0cbc8c0c81e.tar.gz |
set the USER env variable to BUILDUSERNAME, to fix FTBFS of some package which check for not being run as root using that variable
Closes: #677666
Thanks: Tim Landscheidt <tim@tim-landscheidt.de> for the initial patch
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 78f028b..d434a43 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -36,8 +36,8 @@ if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then # LD_PRELOAD: Normal users don't have write access to build # environment, so cowdancer shouldn't have to run, and fakeroot # should be running later, so it shouldn't matter. - # LOGNAME: set this to shut up some tools. - SUTOUSER="LD_PRELOAD= LOGNAME=$BUILDUSERNAME /sbin/start-stop-daemon --start --pidfile /dev/null --chuid $BUILDUSERNAME --startas /bin/sh" + # LOGNAME and USER: set this to shut up some tools. + SUTOUSER="LD_PRELOAD= LOGNAME=$BUILDUSERNAME USER=$BUILDUSERNAME /sbin/start-stop-daemon --start --pidfile /dev/null --chuid $BUILDUSERNAME --startas /bin/sh" DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot" EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot" log "I: using fakeroot in build." |