[Buildd-tools-devel] Bug#376020: sbuild: APT_OPTIONS and
DEBIAN_FRONTEND are dropped inside the chroot when running dpkg
Roger Leigh
rleigh at debian.org
Thu Jun 29 18:09:08 UTC 2006
Package: sbuild
Version: 0.47
Severity: important
When running a command in the chroot, sudo is run a second time inside
the chroot:
/usr/bin/sudo /usr/sbin/chroot /home/rleigh/build/chroot-unstable
/usr/bin/sudo -H /bin/sh -c '/usr/bin/dpkg --purge libncurses5-dev m4
dictionaries-common-dev dictionaries-common wamerican texi2html wbritish
bison texinfo 2>&1 </dev/null'
This means that
root ALL=(ALL) ALL
Defaults:root env_keep+="APT_CONFIG DEBIAN_FRONTEND"
needs adding to /etc/sudoers inside the chroot to prevent the
environment being stripped.
Ideally, we should be able to replace the use of sudo with su (inside
the chroot) when using sudo on the host system. See Sbuild/Chroot.pm,
lines 250-256.
Regards,
Roger
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (990, 'unstable')
Architecture: powerpc (ppc)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.17
Locale: LANG=en_GB.UTF8, LC_CTYPE=en_GB.UTF8 (charmap=UTF-8)
Versions of packages sbuild depends on:
ii adduser 3.91 Add and remove users and groups
ii apt 0.6.44.2 Advanced front-end for dpkg
ii dpkg-dev 1.13.22 package building tools for Debian
ii exim4 4.62-2 metapackage to ease exim MTA (v4)
ii exim4-daemon-light [mail-tran 4.62-2 lightweight exim MTA (v4) daemon
ii grep-dctrl 2.9.0 Grep Debian package information -
ii perl 5.8.8-6 Larry Wall's Practical Extraction
ii perl-modules 5.8.8-6 Core Perl modules
ii sudo 1.6.8p12-4 Provide limited super user privile
Versions of packages sbuild recommends:
ii debootstrap 0.3.3 Bootstrap a basic Debian system
ii fakeroot 1.5.8 Gives a fake root environment
ii schroot 0.99.1-1 Execute commands in a chroot envir
-- no debconf information
More information about the Buildd-tools-devel
mailing list