aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-buildpackage
diff options
context:
space:
mode:
authorJunichi Uekawa <dancer@netfort.gr.jp>2011-09-21 09:05:05 +0900
committerJunichi Uekawa <dancer@netfort.gr.jp>2011-09-21 09:05:05 +0900
commit4ce89b7445b803f01184a67b507b42d059cba87e (patch)
treef63a9013ccffd94e9bcee389af8e0c469b6dc106 /pbuilder-buildpackage
parent111f408015e1fb718e436965b642852a50a35440 (diff)
downloadpbuilder-4ce89b7445b803f01184a67b507b42d059cba87e.tar
pbuilder-4ce89b7445b803f01184a67b507b42d059cba87e.tar.gz
lighttpd test fails with cowdancer loaded. (closes: #640684)
Do not load cowdancer when su to normal user privilege; cowdancer protection isn't needed there.
Diffstat (limited to 'pbuilder-buildpackage')
-rwxr-xr-xpbuilder-buildpackage6
1 files changed, 5 insertions, 1 deletions
diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage
index b8e2446..9d0cce9 100755
--- a/pbuilder-buildpackage
+++ b/pbuilder-buildpackage
@@ -32,7 +32,11 @@ if [ ! -f "$PACKAGENAME" ]; then
fi;
if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then
- SUTOUSER="env LOGNAME=$BUILDUSERNAME su -p $BUILDUSERNAME"
+ # Command to SU to user.
+ # COWNDACNER_IGNORE: Normal users don't have write access to build environment, so cowdancer shouldn't have to run.
+ # 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"
DEBBUILDOPTS="${DEBBUILDOPTS:+$DEBBUILDOPTS }-rfakeroot"
EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot"
log "I: using fakeroot in build."