Bug#1120871: tkgate: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Nov 17 20:30:50 GMT 2025


Source: tkgate
Version: 2.1+repack-8
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nocheck
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it ships a different binary package depending on
whether the testsuite is run or not.

Specifically, running the tests bumps the modification time of the
test/tkgate directory (as files are created inside), and so the binary
package has different directory metadata depending on whether the tests
are run or not.

A patch is attached that will set the mtime of this directory to the
value of SOURCE_DATE_EPOCH regardless of whether the tests are run or
not.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-17 10:29:33.646433826 -0800
--- b/debian/rules	2025-11-17 11:15:48.388865759 -0800
@@ -23,3 +23,5 @@
 	cd test/ && sh runtests.sh
 	find test/ -name *.out | xargs rm -f
 
+execute_before_dh_auto_install:
+	touch -d@$(SOURCE_DATE_EPOCH) test/tkgate


More information about the debian-science-maintainers mailing list