Bug#1122820: golang-github-go-macaron-toolbox: please make the build reproducible

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


Source: golang-github-go-macaron-toolbox
Version: 0.0~git20170220.0.6766b8f-7
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-go-macaron-toolbox could not be built reproducibly.

This is because whilst the packaging cleans up some files generated
by the testsuite (via a call to find), it does not remove the now empty
directory that contains them. This means that if the tests are
skipped (via nocheck), then the binary package will not contain that
empty directory.

A patch is attached, but it may be cleaner and clearer to simply
remove that entire profile/ directory.

 [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:13.022754737 -0800
--- b/debian/rules	2025-12-12 11:59:23.124562284 -0800
@@ -6,3 +6,4 @@
 override_dh_auto_install:
 	dh_auto_install
 	find debian/ -type f \( -name '*.memprof' -or -name '*.pprof' \) -delete
+	find debian/ -type d -empty -delete


More information about the Reproducible-bugs mailing list