Source: python-sshsig
Version: 0.2.2-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: nocheck
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
python-sshsig 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 "testdata" and "compat" directories
that are added via PYBUILD_BEFORE_TEST. A patch is attached that will
remove these directories after running the tests, but if the binary package
really does need them 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 or not.
Patch attached.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2025-11-17 10:30:09.902198515 -0800
--- b/debian/rules 2025-11-17 11:23:33.858584138 -0800
@@ -2,6 +2,7 @@
export PYBUILD_NAME=sshsig
export PYBUILD_BEFORE_TEST=cp -r {dir}/testdata {build_dir}/ && cp -r
{dir}/compat {build_dir}/
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/testdata {build_dir}/compat
export PYBUILD_TEST_ARGS=-v
%: