Bug#1122232: golang-github-apptainer-sif: please make the build reproducible

Chris Lamb lamby at debian.org
Mon Dec 8 23:52:54 GMT 2025


Source: golang-github-apptainer-sif
Version: 2.20.2-4
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-apptainer-sif could not be built reproducibly.

This was because debian/rules populated the "keys/" and "images/"
directories if the tests are run, but only cleaned up images/. This
means that if the tests are skipped, then the binary package will
have different contents.

A patch is attached that removes keys/ unconditionally, but if the binary
package really needs these files for some reason (eg. autopkgtests)
then the packaging will need rejigging/

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-08 15:39:53.980553385 -0800
--- b/debian/rules	2025-12-08 15:49:43.813404272 -0800
@@ -12,5 +12,6 @@
 	rm -rf debian/*/usr/bin/keys
 	rm -rf debian/*/usr/bin/siftool # this might be an alternative for the siftool package
 	rm -rf debian/*/usr/bin/test # this is nonsense and should not be installed
+	rm -rf debian/*/usr/share/gocode/src/github.com/apptainer/sif/test/keys
 	rm -rf debian/*/usr/share/gocode/src/github.com/apptainer/sif/test/images
 	find debian/*/usr -type d -name testdata -print0 | xargs -0r rm -r


More information about the Reproducible-bugs mailing list