Source: golang-github-apptainer-sif
Version: 2.20.2-4
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
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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to