Source: analizo
Version: 1.25.5-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
analizo could not be built reproducibly.

This is because the testsuite bumps the modification time of a number
of directories to the current time (which later get clamped *back* to
SOURCE_DATE_EPOCH), so if the tests are skipped via nocheck, then these
directories will retain their original, upstream timestamp.

Also, the testsuite additionally did not tidy up after itself completely,
leading to a similar issue whereby the binary package differed if the
tests were run or not.

Patch attached that ensures these directories always have the same
timestamp, regardless of whether the tests are run, and additionally
tidies up the aforementioned files.


 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- a/debian/rules      2026-12-04 17:22:46.368389121 +0000
--- b/debian/rules      2026-12-04 17:41:42.470703158 +0000
@@ -7,6 +7,12 @@
        dh $@
 
 override_dh_auto_install:
+       # If we ran the tests, we adjusted the mtimes of these dirs, so always
+       # force them to a fixed time for reproducibility
+       find t/samples/ -type d -print0 | xargs -0r touch 
-d@$(SOURCE_DATE_EPOCH)
        dh_auto_install
        $(RM) -rv $(TMP)/usr/share/perl5/Test
        $(RM) -v  $(TMP)/usr/share/perl5/profile.pl
+
+execute_after_dh_auto_test:
+       rm -f t/samples/animals/*.csv

Reply via email to