[Pkg-privacy-maintainers] Bug#1122821: golang-goptlib: please make the build reproducible

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


Source: golang-goptlib
Version: 1.6.0-3
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-goptlib could not be built reproducibly.

This because the packaging moves the test_autocookie into place for
the tests, but does not remove it afterwards and it ends up being
shipped in the binary package. This means that if the tests are
skipped (via nocheck), then the package will not contain that file.

Patch attached that removes this file after running the tests.

 [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:51:55.589811331 -0800
--- b/debian/rules	2025-12-12 11:56:54.936375251 -0800
@@ -2,6 +2,8 @@
 # -*- makefile -*-
 #export DH_VERBOSE=1
 
+GOPTLIB_DIR = _build/src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib
+
 %:
 	dh $@ --builddirectory=_build --buildsystem=golang --with=golang
 
@@ -13,5 +15,6 @@
 	dh_auto_install
 
 override_dh_auto_test:
-	cp test_authcookie _build/src/gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/goptlib
+	cp test_authcookie $(GOPTLIB_DIR)
 	dh_auto_test
+	rm $(GOPTLIB_DIR)/test_authcookie


More information about the Pkg-privacy-maintainers mailing list