Source: golang-github-shirou-gopsutil
Version: 4.26.4-1
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-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
`. `'` [email protected] / chris-lamb.co.uk
`-
--- 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