Source: golang-github-ulikunitz-xz
Version: 0.5.15-1
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-ulikunitz-xz could not be built reproducibly.

This is because the testsuite generates an "example.xz" file that is
not cleaned up and ends up in the binary package, meaning that if the
tests are skipped (eg. via "nocheck"), then the package varies by its
contents.

Patch attached that removes this file. Of course, if the file is needed
at runtime, 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-10 11:31:18.520636942 -0800
--- b/debian/rules      2025-12-10 12:03:35.237809398 -0800
@@ -8,5 +8,8 @@
        rm -rfv debian/*/usr/bin
        dh_install
 
+execute_after_dh_auto_test:
+       find obj-*/ -type f -name example.xz -delete
+
 %:
        dh $@ --buildsystem=golang --with=golang

Reply via email to