Source: golang-goptlib
Version: 1.6.0-3
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]

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
     `. `'`      [email protected] / chris-lamb.co.uk
       `-
--- 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

Reply via email to