diff options
author | Junichi Uekawa <dancer@netfort.gr.jp> | 2011-09-21 11:48:56 +0900 |
---|---|---|
committer | Junichi Uekawa <dancer@netfort.gr.jp> | 2011-09-21 11:48:56 +0900 |
commit | f9e62c00fd85edd8f1512cf7eda31d2ad78d9856 (patch) | |
tree | e1a2d8fb5a9be2bc189b650dac9481825679be7b /pbuilder-buildpackage | |
parent | 4ce89b7445b803f01184a67b507b42d059cba87e (diff) | |
download | pbuilder-f9e62c00fd85edd8f1512cf7eda31d2ad78d9856.tar pbuilder-f9e62c00fd85edd8f1512cf7eda31d2ad78d9856.tar.gz |
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.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-x | pbuilder-buildpackage | 6 |
1 files changed, 4 insertions, 2 deletions
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." |