Package: pywavelets
Version: 0.2.2-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that pywavelets could not be built reproducibly.

The attached patch removes extra timestamps from the build system.
Once applied, pywavelets can be built reproducibly in our current
experimental framework.

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp pywavelets-0.2.2.old/debian/rules pywavelets-0.2.2/debian/rules
--- pywavelets-0.2.2.old/debian/rules	2013-07-14 07:58:56.000000000 +0000
+++ pywavelets-0.2.2/debian/rules	2015-06-12 12:42:12.719771057 +0000
@@ -12,6 +12,10 @@ PYVERS = $(shell pyversions -vr)
 PACKAGE_NAME = python-pywt
 MODULE_NAME = PyWavelets
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D html_last_updated_fmt=\"$(BUILD_DATE)\"
+
 TESTS = \
 	test_doc.py \
 	test_perfect_reconstruction.py \
@@ -34,7 +38,7 @@ build-stamp: build-docs $(PYVERS:%=build
 	touch $@
 
 build-docs:
-	make -C doc html
+	make -C doc html SPHINXOPTS="$(SPHINXOPTS)"
 	touch $@
 
 build-ext-%:
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to