Package: linop
Version: 0.8.2-2
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: timestamps

Hi!

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

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp linop-0.8.2.old/debian/rules linop-0.8.2/debian/rules
--- linop-0.8.2.old/debian/rules	2014-04-22 08:10:37.000000000 -0300
+++ linop-0.8.2/debian/rules	2015-06-10 21:39:25.436091821 -0300
@@ -3,11 +3,14 @@
 export DH_VERBOSE=1
 export PYBUILD_NAME=linop
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
 
 override_dh_auto_install-indep:
-	python setup.py build_sphinx -b html
+	python setup.py build_sphinx -b html --today="$(BUILD_DATE)"
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS)))

Reply via email to