aboutsummaryrefslogtreecommitdiff
path: root/pdebuild-internal
diff options
context:
space:
mode:
authordancer <dancer>2005-12-19 14:34:09 +0000
committerdancer <dancer>2005-12-19 14:34:09 +0000
commit53fd34053ba392386c2339d6e5fc4a5cbe24f3dd (patch)
tree45e98c73cd722e6bb78f88ec600025ca3458ee33 /pdebuild-internal
parent74efa6864624242d83642b5f7a0c40463ad46015 (diff)
downloadpbuilder-53fd34053ba392386c2339d6e5fc4a5cbe24f3dd.tar
pbuilder-53fd34053ba392386c2339d6e5fc4a5cbe24f3dd.tar.gz
Document HOME=/tmp/buildd inside chroot.
set HOME=$(pwd)/../ in pdebuid-internal to match pdebuild.
Diffstat (limited to 'pdebuild-internal')
-rw-r--r--pdebuild-internal4
1 files changed, 3 insertions, 1 deletions
diff --git a/pdebuild-internal b/pdebuild-internal
index 220e0d1..c0a9c80 100644
--- a/pdebuild-internal
+++ b/pdebuild-internal
@@ -24,7 +24,7 @@
# Will take longer if your package does not successfully run 'debian/rules clean'
#
-# This script is running inside 'pbuilder execute' as root.
+# This script is running inside chroot under 'pbuilder execute' as root.
set -e
@@ -79,5 +79,7 @@ useradd -g pbgroup -u "${BUILDRESULTUID}" -o pbuser
# what about id -G output? if other groups than the designated is used, we're stuffed.
+export HOME=$(pwd)/../
+
# do build with that user.
echo /usr/bin/dpkg-buildpackage -rfakeroot -us -uc '${DEBBUILDOPTS}' | su pbuser