Bug#677666: pbuilder: using BUILDUSERNAME does not change USER
Hendrik Tews
hendrik at askra.de
Fri Jun 15 21:08:44 UTC 2012
Package: pbuilder
Version: 0.211
Severity: important
Hi,
when I use BUILDUSERNAME=pbuilder, pbuilder changes to user
pbuilder, but does not change the value of USER. This yields a
build failure for packages that check via $USER that they are not
configured as root, for example ocaml-cry (#670733).
When I place id and env into the configure script of ocaml-cry at
line 2870, I see
+ id
uid=56789(pbuilder) gid=56789(pbuilder) groups=56789(pbuilder),1234(pbuilderccache)
+ env
USER=root
SUDO_USER=tews
USERNAME=root
shortly later the configure script fails, because it must not run
as root.
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 3.2.0-2-686-pae (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages pbuilder depends on:
ii coreutils 8.13-3.2
ii debconf [debconf-2.0] 1.5.43
ii debianutils 4.3.1
ii debootstrap 1.0.40
ii dpkg-dev 1.16.3
ii wget 1.13.4-3
Versions of packages pbuilder recommends:
ii devscripts 2.11.8
ii fakeroot 1.18.3-1
ii sudo 1.8.3p2-1.1
Versions of packages pbuilder suggests:
pn cowdancer 0.70
pn gdebi-core 0.8.5
pn pbuilder-uml <none>
-- debconf information:
pbuilder/mirrorsite: http://ftp.de.debian.org/debian/
pbuilder/nomirror:
pbuilder/rewrite: false
More information about the Pbuilder-maint
mailing list