Source: python-pauvre
Version: 0.2.2-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org

Hi,

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

This is because it included a generated PDF in the tests which, as it
happens, had a filename based on the current timestamp.

Patch attached that simply doesn't ship this PDF in the binary package
as it's likely not very useful at runtime (and if it is useful it will
be missing if the tests are not run as part of the build).


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


Regards,

--
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/rules      2020-06-12 11:53:25.309309926 +0100
--- b/debian/rules      2020-06-12 12:06:42.779552457 +0100
@@ -7,6 +7,9 @@
 %:
        dh $@ --with python3 --buildsystem=pybuild
 
+execute_after_dh_auto_install:
+       find debian/ -type d -name 'testresults' -print0 | xargs -0r rm -rf
+
 override_dh_auto_test:
 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        PYBUILDDIR="$$(echo "$(CURDIR)"/.pybuild/cpython3_3.*/build)" \

Reply via email to