[buildd-tools-devel] Bug#775091: sbuild: sbuild-updates creates two files in /tmp on every run

Johannes Schauer josch at debian.org
Sun Sep 13 17:00:11 UTC 2015


Control: tags -1 + pending

Hi,

Quoting Sebastian Ramacher (2015-09-13 18:20:29)
> I'm using the sbuild profile and my /etc/schroot/sbuild/fstab has the
> following diff compared to the one from schroot 1.6.10-1:
> 
> [...]

aha, okay I *finally* see the problem you are seeing, albeit I only get one
extra temporary file. The reason seems to be that the function your patch
touches has been rewritten since the last time and now only creates one
temporary file. This also doesn't make your patch apply anymore. So instead I
went through lib/Sbuild/ResolverBase.pm and tried to make sure that all
instances where File::Temp::tempfile() is being called are followed by
appropriate close() and unlink() calls. You can find the patch I just pushed to
sbuild master attached.

Thanks for finding this issue!

cheers, josch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lib-Sbuild-ResolverBase.pm-close-and-unlink-temporar.patch
Type: text/x-diff
Size: 2324 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20150913/75753a78/attachment-0001.patch>
-------------- 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/20150913/75753a78/attachment-0001.sig>


More information about the Buildd-tools-devel mailing list