Bug#885658: python-h2: please make the build reproducible

Chris Lamb lamby at debian.org
Thu Dec 28 22:22:44 UTC 2017


Source: python-h2
Version: 3.0.1-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: randomness
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org

Hi,

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

This is because it installs (useless) files to:

  /usr/​lib/​python2.​7/​dist-​packages/​.​hypothesis

.. which happen to be unreproducible. :)

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/rules	2017-12-28 21:51:08.933004892 +0000
--- b/debian/rules	2017-12-28 22:19:00.662924100 +0000
@@ -2,6 +2,8 @@
 
 export PYBUILD_NAME=h2
 export PYBUILD_TEST_ARGS=-k-test/test_rfc7838.py -k-test/test_invalid_headers.py
+# Don't install Hypothesis example database into binary package.
+export HYPOTHESIS_DATABASE_FILE = $(CURDIR)/debian/hypothesis
 
 %:
 	dh $@ --with python2,python3 --buildsystem=pybuild


More information about the Reproducible-bugs mailing list