strip-nd FTBFS in reproducible infra

HW42 hw42 at ipsumj.de
Sun Sep 11 01:46:00 UTC 2016


Chris Lamb:
>> Then I'd have expected it to fail also in the buildds...
> 
> Oh, it *doesn't* fail in the buildds? Weird.
> 
> Still, given that it's *this* particular test that fails it's almost
> certainly something along the lines I previously suggested (this test
> is deliberately designed to test a fix that appeared in 0.026) just
> via a different vector.

It uses the the local file and not the system-wide installed files (at
least for the zip/jar handler).

> Will hopefully can have a look later unless someone with actual Perl
> knowledge can jump in.

The problem is TZ != "UTC". The strip-nondeterminism and
dh_strip_nondeterminism tools set TZ to "UTC" so it doesn't show up in
regular use. But the test doesn't do this.

This can be fixed with:

diff --git a/t/fixtures.t b/t/fixtures.t
index ca18f45..41872bd 100644
--- a/t/fixtures.t
+++ b/t/fixtures.t
@@ -46,6 +46,7 @@ my %STAT = (
 	12 => "blocks (actual number of system-specific blocks allocated on disk)",
 );
 
+$ENV{'TZ'} = 'UTC';
 $File::StripNondeterminism::canonical_time = 1423159771;
 
 my @fixtures = glob('t/fixtures/*/*.in');

But maybe it would be better to fix the library interface to not need
this hack (but this might be complicated because it (maybe) needs to be
fixed in libarchive).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 825 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20160911/163db3f3/attachment.sig>


More information about the Reproducible-builds mailing list