Bug#1133008: mage: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Apr 8 19:51:22 BST 2026
Source: mage
Version: 1.17.1+ds-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: nochecj
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
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
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- 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)
More information about the Reproducible-bugs
mailing list