Bug#1150916: golang-github-anacrolix-log: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Oct 14 18:11:18 BST 2026


Source: golang-github-anacrolix-log
Version: 0.17.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-anacrolix-log could not be built reproducibly.

This is because the call to remove (what ends up as) the /usr/bin/log-main
file was in execute_after_dh_auto_test, which is not executed if the
tests are skipped. This means that it is possible for the file not
to be removed, and thus the package is unreproducible.

Patch attached that removes this in execute_before_dh_auto_install
which is (a) always run; and (b) runs immediately after dh_auto_test.
(There is another solution using one of dh-golang environment vars
if you prefer.)

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-10-14 09:51:25.610529515 -0700
--- b/debian/rules	2026-10-14 10:07:55.816852118 -0700
@@ -3,5 +3,5 @@
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang
 
-execute_after_dh_auto_test:
+execute_before_dh_auto_install:
 	rm -rf _build/bin/log-main


More information about the Reproducible-bugs mailing list