Source: spopt
Version: 0.6.1-4
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
spopt 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 package will need
rejigging.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2025-11-21 10:08:45.220937678 -0800
--- b/debian/rules 2025-11-21 10:12:22.416285681 -0800
@@ -7,7 +7,8 @@
export HOME=$(CURDIR)
export PYBUILD_NAME=spopt
export PYBUILD_TEST_ARGS=-s -v
-export PYBUILD_BEFORE_TEST=cp -r {dir}/spopt/tests/data
{build_dir}/spopt/tests \
+export PYBUILD_BEFORE_TEST=cp -r {dir}/spopt/tests/data {build_dir}/spopt/tests
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/spopt/tests/data
%:
dh $@ --with sphinxdoc --buildsystem=pybuild