Bug#1120881: python-genson: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Nov 17 20:31:59 GMT 2025
Source: python-genson
Version: 1.3.0-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
python-genson could not be built reproducibly.
This is because it ships a different binary package depending on
whether the testsuite is run or not.
Specifically, it does not remove the "schema" directory that is added
via PYBUILD_BEFORE_TEST. A patch is attached that will remove this
directory, but if the binary package really does need this directory
at runtime for whatever reason (e.g. for autopkgtests), then the
package needs to ensure that this directory exists regardless of whether
nocheck is specified.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-11-17 10:29:56.794070898 -0800
--- b/debian/rules 2025-11-17 10:32:21.805384771 -0800
@@ -6,6 +6,8 @@
export PYBUILD_TEST_ARGS= -k 'not test_no_input'
export PYBUILD_BEFORE_TEST = \
cp -rv {dir}/genson/schema {build_dir}/$(PYBUILD_NAME)
+export PYBUILD_AFTER_TEST = \
+ rm -rfv {build_dir}/$(PYBUILD_NAME)/schema
%:
dh $@ --buildsystem=pybuild
More information about the Reproducible-bugs
mailing list