Bug#1121074: beangulp: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Nov 20 14:57:41 GMT 2025
Source: beangulp
Version: 0.2.0-4
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
beangulp could not be built reproducibly.
This was because it ships a different binary package depending
on whether the tests are run or not. What was happening is that
some files were being deleted after the testsuite was run, but
that meant that if the testsuite was *not* run then those files
would be shipped in the binary .deb.
Patch attached that moves this cleaning from PYBUILD_AFTER_TEST
to the unconditional PYBUILD_BEFORE_INSTALL.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-11-19 13:09:55.742787459 -0800
--- b/debian/rules 2025-11-19 13:18:47.652624476 -0800
@@ -6,7 +6,7 @@
# To help tests find necessary artifacts
export PYBUILD_BEFORE_TEST=cp -r $(CURDIR)/beangulp/file_type_testdata {build_dir}/beangulp/
# Remove all introduced test artifacts
-export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/beangulp/file_type_testdata
+export PYBUILD_BEFORE_INSTALL=rm -rfv {build_dir}/beangulp/file_type_testdata
export PYBUILD_TEST_ARGS = {dir}/beangulp
More information about the Reproducible-bugs
mailing list