Bug#1121142: pyasn: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Nov 21 18:30:15 GMT 2025
Source: pyasn
Version: 1.6.2-1
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
pyasn could not be built reproducibly.
This was because it ships a different binary package depending
on whether the tests are run or not, which was caused in turn by the
testsuite not cleaning up the "data" directory, and some (or all)
of that was ending up in the binary package ... but only if the tests
were run.
Patch attached. However, if the binary package really does need these
files at runtime (eg. for autopkgtests), then the packaging will need
rejigging.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2025-11-21 10:08:37.337686728 -0800
--- b/debian/rules 2025-11-21 10:09:31.137257672 -0800
@@ -5,6 +5,7 @@
export PYBUILD_NAME=pyasn
export PYBUILD_BEFORE_TEST=ln -s {dir}/data {build_dir}
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/data
%:
dh $@ --with python3 --buildsystem=pybuild
More information about the Reproducible-bugs
mailing list