[pkg-go] Bug#1122816: golang-github-kr-binarydist: please make the build reproducible

Chris Lamb lamby at debian.org
Fri Dec 12 20:04:53 GMT 2025


Source: golang-github-kr-binarydist
Version: 0.1.0-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-kr-binarydist could not be built reproducibly.

This is because the testsuite does not clean up a number of files it
generates, so that if the tests are skipped (via nocheck), then the
binary package will differ.

A patch is attached that removes these files.


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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-12-12 11:53:37.780373750 -0800
--- b/debian/rules	2025-12-12 12:02:35.225489032 -0800
@@ -14,6 +14,9 @@
 	# Include test fixtures.
 	cp -av testdata $(BUILDDIR)/src/$(DH_GOPKG)/
 
+execute_after_dh_auto_test:
+	rm -fv obj-$(DEB_BUILD_GNU_TYPE)/src/github.com/kr/binarydist/test.*
+
 gen-orig-source:
 	git archive --prefix=$(DEB_SOURCE)-$(DEB_VERSION)/     \
 		upstream/$(subst ~,_,$(DEB_VERSION))           \


More information about the Pkg-go-maintainers mailing list