Package: python-repoze.what
Version: 1.0.9-5
Severity: wishlist
Tags: patch
Usertags: timestamps


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

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

diff -ruNp python-repoze.what-1.0.9.old/debian/rules python-repoze.what-1.0.9/debian/rules
--- python-repoze.what-1.0.9.old/debian/rules	2014-05-21 20:51:49.000000000 -0300
+++ python-repoze.what-1.0.9/debian/rules	2015-06-11 23:04:06.080217487 -0300
@@ -1,6 +1,9 @@
 #!/usr/bin/make -f
 PYTHONS:=$(shell pyversions -vr)
+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)"
 	dh $@ --buildsystem=python_distutils --with python2,sphinxdoc
@@ -14,7 +17,7 @@ override_dh_auto_install:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-	sphinx-build -b html docs/source $(CURDIR)/debian/python-repoze.what/usr/share/doc/python-repoze.what/html
+	sphinx-build $(SPHINXOPTS) -b html docs/source $(CURDIR)/debian/python-repoze.what/usr/share/doc/python-repoze.what/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
Reproducible-builds mailing list

Reply via email to