[buildd-tools-devel] Bug#588818: Bug#588818: sbuild: DEBIAN_FRONTEND=noninteractive missing when using the aptitude resolver

Roger Leigh rleigh at codelibre.net
Mon Jul 12 22:28:22 UTC 2010


tags 588818 + patch
thanks

On Mon, Jul 12, 2010 at 05:46:50PM +0200, Cyril Brulebois wrote:
> as mentioned earlier, DEBIAN_FRONTEND doesn't get set to noninteractive
> when using the aptitude resolver. The internal one uses run_apt, which
> takes care of setting a sane(r) environment, while the aptitude one
> calls aptitude directly, w/o setting DEBIAN_FRONTEND=noninteractive in
> the environment.
> 
> That broke building a package pulling some debconf-using
> build-dependencies, and interrupting the build broke the chroots,
> meaning manual cleanup. Hence the severity.

I've attached a proof of concept patch to fix this.  Please could
you give it a try?  It's possible it needs a bit of tweaking; I'm
afraid I'm pushed for time so it's untested tonight.

Essentially, we add explicit support for Aptitude to Sbuild::Chroot
so that there are pipe_aptitude_command etc. methods just like
pipe_apt_command.  These take care of setting up common aptitude
options and work just as for apt-get.  Note I'm not sure if it
respects all of the apt-get options such as Dir::State, DPkg::Options
and DPkg::Run-Directory which are essential for $chroot_mode="split".
If you could verify that works too, I would appreciate it.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux             http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?       http://gutenprint.sourceforge.net/
   `-    GPG Public Key: 0x25BFB848   Please GPG sign your mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild-aptitude-support.patch
Type: text/x-diff
Size: 5516 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100712/283bda13/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100712/283bda13/attachment.pgp>


More information about the Buildd-tools-devel mailing list