[buildd-tools-devel] Bug#807744: Bug#807744: sbuild: aptitude 0.7.5-2 breaks sbuild upon install-deps
Mattia Rizzolo
mattia at debian.org
Thu Dec 24 09:13:29 UTC 2015
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).
--
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/c18de39e/attachment.sig>
More information about the Buildd-tools-devel
mailing list