Bug#1082796: python-mt-940: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Sep 26 14:59:28 BST 2024


Source: python-mt-940
Version: 4.30.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], we noticed that
python-mt-940 could not be built reproducibly.

This is because it ships test coverage in HTML format in the binary
package that contains timestamps.

A patch is attached that simply removes this coverage entirely after
running the tests.

However, the coverage was being installed into the incorrect
directory /usr/lib/python3/dist-packages/htmlcov, so if you would
prefer to keep the test coverage, you would of course need to
install it into a more appropriate location also.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2024-09-26 06:35:01.043556873 -0700
--- b/debian/rules	2024-09-26 06:56:18.013446724 -0700
@@ -2,6 +2,7 @@
 
 export PYBUILD_NAME=mt-940
 export PYBUILD_TEST_ARGS={dir}/mt940_tests/
+export PYBUILD_AFTER_TEST=rm -rfv {build_dir}/htmlcov
 
 # try to prevent unsanctioned downloads
 export  http_proxy=http://127.0.0.1:9/


More information about the Reproducible-bugs mailing list