Bug#1122022: golang-github-artyom-mtab: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Dec 5 21:23:15 GMT 2025


Source: golang-github-artyom-mtab
Version: 1.0.0-2
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
golang-github-artyom-mtab could not be built reproducibly.

This is because the execute_before_dh_auto_test target moved a file
called mounts.testfile into place, but did not remove it afterwards
and it ends up being shipped in the binary package... but, of course,
only if the tests are run, otherwise execute_before_dh_auto_test is
skipped. This means the package contents differ depending on whether
nocheck is specified.

Patch attached that removes this file in a corresponding
execute_after_dh_auto_test.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-05 08:55:10.201302536 -0800
--- b/debian/rules	2025-12-05 08:56:28.041134616 -0800
@@ -5,3 +5,6 @@
 
 execute_before_dh_auto_test:
 	cp mounts.testfile _build/src/github.com/artyom/mtab
+
+execute_after_dh_auto_test:
+	rm _build/src/github.com/artyom/mtab/mounts.testfile


More information about the Reproducible-bugs mailing list