Package: python-pypump
Version: 0.6-1
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

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

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-pypump-0.6.old/debian/rules python-pypump-0.6/debian/rules
--- python-pypump-0.6.old/debian/rules	2015-05-13 14:48:10.000000000 -0300
+++ python-pypump-0.6/debian/rules	2015-06-11 22:30:19.454056240 -0300
@@ -2,6 +2,10 @@
 PYTHONS:=$(shell pyversions -vr)
 PYTHON3S:=$(shell py3versions -vr)
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+SPHINXOPTS := -D today=\"$(BUILD_DATE)\"
+
 %:
 	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
 
@@ -12,7 +16,7 @@ override_dh_clean:
 
 override_dh_auto_build:
 	dh_auto_build
-	make -C docs html
+	make -C docs html SPHINXOPTS="$(SPHINXOPTS)"
 
 	# # This version pypump-shell needs the path $HOME/.config/
 	# # to exist for it to build correctly, so I'm adding it
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to