[Buildd-tools-devel] Bug#271032: sbuild and APT breakage when apt-listbugs or apt-listchanges are installed

Roger Leigh rleigh at whinlatter.ukfsn.org
Wed Feb 15 11:56:28 UTC 2006


Bugs #270357, #271031, #271032, #273212, and #310863 all appear to be
related.  When sbuild (or /usr/share/sbuild/chrapt) are run on the
host system, they use -o options to apt-get/apt-cache in order to make
APT use the configuration from inside the chroot.  However, when
apt-listbugs or apt-listchanges are installed on the host system, they
are still run, which causes breakage when we need APT to run
non-interactively.

The fact that apt-get has (at least in the past) appeared to ignore -o
Dir::Etc::parts=$CHROOT/apt.conf.d, or possibly one of the other
options, seems like this may have been part of the problem, but I
can't now reproduce it.  It's possible these were local configuration
problems.

chrapt, for example:

exec sudo $cmd \
        -o Dir::State=$CHROOT/var/$APTDIR/apt \
        -o Dir::State::status=$CHROOT/var/lib/dpkg/status \
        -o Dir::Cache=$CHROOT/var/cache/apt \
        -o Dir::Etc=$CHROOT/etc/apt \
        -o Dir::Etc::main=$CHROOT/apt.conf \
        -o Dir::Etc::parts=$CHROOT/apt.conf.d \
        -o DPkg::Options::=--root=$CHROOT \
        -o DPkg::Run-Directory=$CHROOT \
        "$@"

(http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/sbuild/bin/chrapt?rev=1.2&content-type=text/x-cvsweb-markup&cvsroot=buildd-tools)

We have recently merged a lot of changes into sbuild from upstream
(version 0.37 in unstable; current CVS is
http://cvs.alioth.debian.org/cgi-bin/cvsweb.cgi/~checkout~/sbuild/sbuild?rev=1.65&cvsroot=buildd-tools),
which I believe fixed these issues in sbuild itself.  With both
apt-listbugs and apt-listchanges installed on the host system, I can't
reproduce these bugs with sbuild or chrapt with 0.37 or CVS.

Please could everyone who experienced this problem try again with the
current sbuild and apt in unstable?  Please let me know whether or not
you can reproduce the problem.


Thanks,
Roger

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gutenprint.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20060215/1766910a/attachment-0009.pgp


More information about the Buildd-tools-devel mailing list