diff options
author | dancer <dancer> | 2005-06-25 06:27:42 +0000 |
---|---|---|
committer | dancer <dancer> | 2005-06-25 06:27:42 +0000 |
commit | 6a6401128d9b2600b5a191e956e18d17de5c9792 (patch) | |
tree | 6c97d3c01a3d4dc71e17c61d3b4095146d9b3533 | |
parent | 6e9ce73824d8dd5ebc5fa67cf52824cba738f95c (diff) | |
download | pbuilder-6a6401128d9b2600b5a191e956e18d17de5c9792.tar pbuilder-6a6401128d9b2600b5a191e956e18d17de5c9792.tar.gz |
+2005-06-25 Junichi Uekawa <dancer@debian.org>
+
+ * pbuilder-user-mode-linux: use configured PATH instead of hard-coded PATH.
+
+ * pbuilder-buildpackage: preserve PATH in su,
+ pass -p option. This fixes the problem with env-var preservation.
+
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | pbuilder-buildpackage | 2 | ||||
-rwxr-xr-x | pbuilder-user-mode-linux | 2 |
4 files changed, 10 insertions, 3 deletions
@@ -1,3 +1,10 @@ +2005-06-25 Junichi Uekawa <dancer@debian.org> + + * pbuilder-user-mode-linux: use configured PATH instead of hard-coded PATH. + + * pbuilder-buildpackage: preserve PATH in su, + pass -p option. This fixes the problem with env-var preservation. + 2005-06-20 Junichi Uekawa <dancer@debian.org> * pbuilderrc: set PATH in the configuration file. diff --git a/debian/changelog b/debian/changelog index b1395a8..45a5229 100644 --- a/debian/changelog +++ b/debian/changelog @@ -22,7 +22,7 @@ pbuilder (0.128) UNRELEASED; urgency=low * Bug fix: "pbuilder: Support for preserving environment PATH", thanks to Brian Nelson (Closes: #306448). - -- Junichi Uekawa <dancer@debian.org> Mon, 20 Jun 2005 19:39:28 +0900 + -- Junichi Uekawa <dancer@debian.org> Sat, 25 Jun 2005 15:27:08 +0900 pbuilder (0.127) unstable; urgency=low diff --git a/pbuilder-buildpackage b/pbuilder-buildpackage index eb6a342..2d6a7b2 100755 --- a/pbuilder-buildpackage +++ b/pbuilder-buildpackage @@ -32,7 +32,7 @@ if [ ! -f "$PACKAGENAME" ]; then fi; if [ -n "$BUILDUSERNAME" -a -n "$BUILDUSERID" ]; then - SUTOUSER="su $BUILDUSERNAME -- " + SUTOUSER="su -p $BUILDUSERNAME -- " DEBBUILDOPTS="$DEBBUILDOPTS -rfakeroot" EXTRAPACKAGES="${EXTRAPACKAGES} fakeroot" echo "I: using fakeroot in build." diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index ed60584..6d8c1d8 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -106,7 +106,7 @@ chmod a+x ${UML_CHROOT_MOUNTPOINT}/tmp/chrootshell chroot ${UML_CHROOT_MOUNTPOINT} /tmp/chrootshell #some variables need to be set from outside values, possibly -export PATH=/sbin:/bin:/usr/sbin:/usr/bin +export PATH="$PATH" export TMPDIR=/tmp unset EXTRAOPT || true declare -a EXTRAOPT |