Bug#1122388: golang-github-ulikunitz-xz: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Dec 10 20:19:01 GMT 2025
Source: golang-github-ulikunitz-xz
Version: 0.5.15-1
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-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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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
More information about the Reproducible-bugs
mailing list