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

Johannes Schauer josch at debian.org
Thu Dec 24 08:17:29 UTC 2015


Control: tag -1 + patch

Hi,

On Sat, 12 Dec 2015 11:26:20 +0100 Luca Falavigna <dktrkranz at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20151224/b013a96c/attachment.sig>


More information about the Buildd-tools-devel mailing list