Bug#1137017: golang-github-shirou-gopsutil: please make the build reproducible

Chris Lamb lamby at debian.org
Mon May 18 18:26:55 BST 2026


Source: golang-github-shirou-gopsutil
Version: 4.26.4-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-shirou-gopsutil could not be built reproducibly.

This is because the symlinks generated in debian/rules are not deleted
afterwards and they end up in the binary package. This means that if
the tests are skipped, these symlinks are not generated and, therefore,
are not in the binary package and thus the package is not reproducible.

Patch attached that cleans them up in an execute_after_dh_auto_test
target; probably not very useful in the binary package anyway.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2026-05-18 10:03:46.013624777 -0700
--- b/debian/rules	2026-05-18 10:13:40.037402040 -0700
@@ -28,3 +28,8 @@
 	ln -s /foo $(BUILT_SOURCE)/process/testdata/linux/1/fd/0
 	ln -s /bar $(BUILT_SOURCE)/process/testdata/linux/1/fd/1
 	ln -s /baz $(BUILT_SOURCE)/process/testdata/linux/1/fd/2
+
+execute_after_dh_auto_test:
+	rm $(BUILT_SOURCE)/process/testdata/linux/1/fd/0
+	rm $(BUILT_SOURCE)/process/testdata/linux/1/fd/1
+	rm $(BUILT_SOURCE)/process/testdata/linux/1/fd/2


More information about the Reproducible-bugs mailing list