Source: mage
Version: 1.17.1+ds-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nochecj
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
mage could not be built reproducibly.
This is because the testsuite generates a mage_output_file.go file,
so that if the tests are skipped (ie. via nocheck), then the binary
package will differ.
Patch attached that removes this file after the testsuite is run.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-04-08 14:43:59.936642062 -0400
--- b/debian/rules 2026-04-08 14:48:02.906894017 -0400
@@ -8,6 +8,9 @@
B = $(CURDIR)/debian/tmp/usr/bin
M = $(CURDIR)/debian/tmp/usr/share/man/man1
+execute_after_dh_auto_test:
+ find _build -name mage_output_file.go -delete
+
ifeq (,$(filter nodoc,$(DEB_BUILD_PROFILES)))
execute_before_dh_installman-arch:
mkdir -pv $(M)