[buildd-tools-devel] Bug#807744: sbuild: aptitude 0.7.5-2 breaks sbuild upon install-deps

Mattia Rizzolo mattia at debian.org
Thu Dec 24 13:08:41 UTC 2015


On Thu, Dec 24, 2015 at 12:48:57PM +0100, Johannes Schauer wrote:
> Quoting Manuel A. Fernandez Montecelo (2015-12-24 12:43:51)
> > 2015-12-24 09:13 Mattia Rizzolo:
> > >On Thu, Dec 24, 2015 at 09:17:29AM +0100, Johannes Schauer wrote:
> > >> the following patch should fix this:
> > >>
> > >> diff --git a/lib/Sbuild/ResolverBase.pm b/lib/Sbuild/ResolverBase.pm
> > >> index db54289..1e71abf 100644
> > >> --- a/lib/Sbuild/ResolverBase.pm
> > >> +++ b/lib/Sbuild/ResolverBase.pm
> > >> @@ -1368,6 +1368,8 @@ sub get_aptitude_command_internal {
> > >>      debug2("APT Command: ", join(" ", @aptcommand), "\n");
> > >>
> > >>      $options->{'INTCOMMAND'} = \@aptcommand;
> > >> +
> > >> +    $options->{'ENV'}{'XDG_CACHE_HOME'} = '/tmp';
> > >>  }
> > >>
> > >>  sub run_aptitude_command {
> > >>
> > >>
> > >> Though I'm not sure how wise it is to use /tmp as aptitude's location for its
> > >> cache...
> > >
> > >So nice in pbuilder we had another problem with aptitude, and the fix
> > >was the same.
> > >
> > >BTW, I used '/root' as XDG_CACHE_HOME.  On second though '/root/.cache'
> > >would have been better, but *shrugs*, I don't think people are going to
> > >do so much stuff in buildd chroots (even if I'll probably switch it in a
> > >later release).
> > 
> > aptitude 0.7.5-3 (released a few days ago, after IRC conversations with
> > Mattia) contains a patch that means that the cache files/dirs (for
> > downloaded metadata) should be created only when using changelog
> > operations (which sbuild never invokes, I suppose); and even in that
> > case, aptitude emits errors but does not stop performing the operation.

oh, cool!
Yeah, I recall the conversation, but I totally missed the upload,
thanks!

-- 
regards,
                        Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18  4D18 4B04 3FCD B944 4540      .''`.
more about me:  http://mapreri.org                              : :'  :
Launchpad user: https://launchpad.net/~mapreri                  `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia  `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151224/36179e59/attachment.sig>


More information about the Buildd-tools-devel mailing list