From f9e62c00fd85edd8f1512cf7eda31d2ad78d9856 Mon Sep 17 00:00:00 2001 From: Junichi Uekawa Date: Wed, 21 Sep 2011 11:48:56 +0900 Subject: Ignore LD_PRELOAD when inside 'pbuilder build' building something. This should alleviate problems encountered when fakeroot / cowdancer interacts badly with whatever that's going in. This will probably break fakechroot, so it needs some kind of configuration, but fixes problem with lighttpd. --- pbuilder-buildpackage | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pbuilder-buildpackage') diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index 9d0cce9..b711934 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -33,10 +33,12 @@ fi; if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then # Command to SU to user. - # COWNDACNER_IGNORE: Normal users don't have write access to build environment, so cowdancer shouldn't have to run. + # 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. # su -p : switch to user preserving env vars, we need most of them. - SUTOUSER="env COWDANCER_IGNORE=yes LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME" + SUTOUSER="env LD_PRELOAD= LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME" DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot" EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot" log "I: using fakeroot in build." -- cgit v1.2.3