Control: tag -1 + patch

Hi,

On Sat, 12 Dec 2015 11:26:20 +0100 Luca Falavigna <dktrkr...@debian.org> wrote:
> aptitude_0.7.5-2 breaks sbuild during its install-deps stage, when aptitude
> is used as resolver to install build-dependencies.
> 
> This is the offending commit:
> https://anonscm.debian.org/cgit/aptitude/aptitude.git/commit/?h=debian-
> sid&id=a865d7dd4040273eda0c012cfd20862de3c6622f
> 
> This is the portion of the log which exposes the problem:
> Writing extended state information...
> Building tag database...
> E: Could not create directory: /sbuild-nonexistent/.cache:
> boost::filesystem::create_directory: No such file or directory: "/sbuild-
> nonexistent/.cache"

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...

Thanks!

cheers, josch

Attachment: signature.asc
Description: signature

Reply via email to