Source: python-pysaml2 Version: 7.4.2-3 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: randomness X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that python-pysaml2 could not be built reproducibly. This is because the tests generate a (nondeterministic) file called eptid.db that is then shipped in the binary package. Incidentally, the file is installed directly to the global /usr/lib/python3/dist-packages directory, which is a likely a bug in itself. (Hm, isn't there a Lintian warning for this?) Anyway, patch attached that removes this file after running the tests. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/rules 2024-03-22 09:31:42.477985685 +0000 --- b/debian/rules 2024-03-22 09:59:35.122321091 +0000 @@ -21,6 +21,9 @@ for i in $$(find . -type d -iname __pycache__) ; do rm -rf $$i ; done dh_auto_clean +execute_after_dh_auto_test: + find .pybuild -type f -name eptid.db -delete + #override_dh_install: # dh_install # set -e ; set -x ; for i in `ls $(CURDIR)/debian/python3-pysaml2/usr/bin/*.py` ; do \