[Pbuilder-maint] Bug#341453: pbuilder: PATH not preserved when either BUILDUSERID or BUILDUSERNAME isn't set

Mike Hommey mh at glandium.org
Wed Nov 30 17:55:45 UTC 2005


Package: pbuilder
Version: 0.139
Severity: normal
Tags: patch

When either BUILDUSERID or BUILDUSERNAME isn't set (which is the default
configuration), exporting PATH is useless because SUTOUSER, being su in
that case doesn't preserve environment.

Patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.14-1-686
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8)

Versions of packages pbuilder depends on:
ii  cdebootstrap                  0.3.9      Bootstrap a Debian system
ii  coreutils                     5.93-5     The GNU core utilities
ii  debianutils                   2.15.1     Miscellaneous utilities specific t
ii  debootstrap                   0.3.3      Bootstrap a basic Debian system
ii  gcc                           4:4.0.2-1  The GNU C compiler
ii  wget                          1.10.2-1   retrieves files from the web

Versions of packages pbuilder recommends:
ii  devscripts                    2.9.9      Scripts to make the life of a Debi
ii  fakeroot                      1.5.5      Gives a fake root environment
ii  sudo                          1.6.8p9-3  Provide limited super user privile

-- no debconf information
-------------- next part --------------
--- /usr/lib/pbuilder/pbuilder-buildpackage	2005-11-16 23:35:46.000000000 +0100
+++ /tmp/pbuilder-buildpackage	2005-11-30 18:52:09.064875696 +0100
@@ -39,7 +39,7 @@
     echo "I: using fakeroot in build."
 else
     # run the build in root
-    SUTOUSER="su "
+    SUTOUSER="su -p"
     BUILDUSERID=0
     BUILDUSERNAME=root
 fi


More information about the Pbuilder-maint mailing list