Bug#1121800: golang-github-foxboron-go-uefi: please make the build reproducible
Chris Lamb
lamby at debian.org
Tue Dec 2 22:30:13 GMT 2025
Source: golang-github-foxboron-go-uefi
Version: 0.0~git20250207.69fb7db-2
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-foxboron-go-uefi could not be built reproducibly.
This was because the packaging removes some files in the target called
"execute_before_dh_auto_test", which is skipped if the tests are not
run. This was resulting in different package contents if the tests
were run or not.
Patch attached that moves these removals to the (unconditionally run)
execute_after_dh_auto_build target.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-12-02 11:49:44.151425153 -0800
--- b/debian/rules 2025-12-02 11:51:03.980185054 -0800
@@ -10,7 +10,7 @@
dh $@ --builddirectory=_build --buildsystem=golang
# requires unpackaged github.com/hugelgpuf/vmtest
-execute_before_dh_auto_test:
+execute_after_dh_auto_build:
rm -fv _build/src/github.com/foxboron/go-uefi/tests/integration_test.go
rm -fv _build/src/github.com/foxboron/go-uefi/tests/tests/enroll_keys/enroll_keys_test.go
rm -fv _build/src/github.com/foxboron/go-uefi/tests/tests/modify_dbx/modify_dbx_test.go
More information about the Reproducible-bugs
mailing list