Package: pyevolve
Version: 0.6~rc1+svn398+dfsg-6
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 pyevolve could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds

diff -urNp pyevolve-0.6~rc1+svn398+dfsg.old/debian/rules pyevolve-0.6~rc1+svn398+dfsg/debian/rules
--- pyevolve-0.6~rc1+svn398+dfsg.old/debian/rules	2014-08-17 18:18:20.000000000 -0300
+++ pyevolve-0.6~rc1+svn398+dfsg/debian/rules	2015-06-10 21:59:54.232801405 -0300
@@ -15,6 +15,8 @@ SVNREV = $(shell dpkg-parsechangelog -l$
 SVNURL = https://pyevolve.svn.sourceforge.net/svnroot/pyevolve/trunk/
 export UPNAME UPVER SVNURL SVNREV
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 %:
 	dh  $@ --with python2,sphinxdoc --buildsystem=pybuild
@@ -28,7 +30,7 @@ override_dh_auto_clean:
 # Override needed for building documentation; jquery link
 override_dh_auto_build:
 	dh_auto_build
-	cd docs && sphinx-build -E -a -b html ./source ./html
+	cd docs && sphinx-build -E -a -b html -D today="$(BUILD_DATE)" ./source ./html
 
 # Run the autopkgtest as unit test
 override_dh_auto_test:

Reply via email to