Source: golang-github-artyom-mtab
Version: 1.0.0-2
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-artyom-mtab could not be built reproducibly.
This is because the execute_before_dh_auto_test target moved a file
called mounts.testfile into place, but did not remove it afterwards
and it ends up being shipped in the binary package... but, of course,
only if the tests are run, otherwise execute_before_dh_auto_test is
skipped. This means the package contents differ depending on whether
nocheck is specified.
Patch attached that removes this file in a corresponding
execute_after_dh_auto_test.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2025-12-05 08:55:10.201302536 -0800
--- b/debian/rules 2025-12-05 08:56:28.041134616 -0800
@@ -5,3 +5,6 @@
execute_before_dh_auto_test:
cp mounts.testfile _build/src/github.com/artyom/mtab
+
+execute_after_dh_auto_test:
+ rm _build/src/github.com/artyom/mtab/mounts.testfile