Bug#1121070: golang-github-kshedden-statmodel: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Nov 20 14:50:56 GMT 2025


Source: golang-github-kshedden-statmodel
Version: 0.0~git20210519.ee97d3e-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-kshedden-statmodel could not be built reproducibly.

This was because it ships a different binary package depending
on whether the tests are run or not. Specifically, the testsuite
generates a glm.log and glm_test.log file that was being installed
into the binary .deb.

Patch attached that uses DH_GOLANG_EXCLUDES to ensure they are not
shipped.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2025-11-19 12:44:00.315592425 -0800
--- b/debian/rules	2025-11-19 12:47:12.470214439 -0800
@@ -1,7 +1,7 @@
 #!/usr/bin/make -f
 
 # Skip building and installing the examples
-export DH_GOLANG_EXCLUDES := examples
+export DH_GOLANG_EXCLUDES := examples glm.log glm_test.log
 
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang


More information about the Reproducible-bugs mailing list