Source: hovercraft
Version: 2.7-11
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
hovercraft could not be built reproducibly.
This is because to run the tests, debian/rules copies some tests into
position; however, it does not delete them afterwards and they then
end up in the binary package.
This means that if the tests are skipped (ie. via "nocheck"), then the
package will have different contents.
Patch attached that removes these (copies of the) tests after running
them.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/rules 2026-01-20 11:01:12.493372787 -0800
--- b/debian/rules 2026-01-20 11:04:55.382387508 -0800
@@ -4,6 +4,7 @@
export PYBUILD_NAME=hovercraft
export PYBUILD_INSTALL_ARGS=--install-scripts=/usr/share/hovercraft
--install-lib=/usr/share/hovercraft
export PYBUILD_BEFORE_TEST=cp -r {dir}/tests/ {build_dir}/
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/tests/
export PYBUILD_TEST_ARGS=tests/test_*.py
DEBDATE := $(shell dpkg-parsechangelog -Sdate | date -u +%F -f -)