Package: python-pysaml2
Version: 2.4.0-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-pysaml2 could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-pysaml2-2.4.0.old/debian/rules python-pysaml2-2.4.0/debian/rules
--- python-pysaml2-2.4.0.old/debian/rules	2015-05-15 13:02:00.000000000 -0300
+++ python-pysaml2-2.4.0/debian/rules	2015-06-24 01:40:37.133414431 -0300
@@ -6,6 +6,9 @@ PYTHONS:=$(shell pyversions -vr)
 UPSTREAM_GIT = git://github.com/rohe/pysaml2.git
 -include /usr/share/openstack-pkg-tools/pkgos.make
 
+LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
+BUILD_DATE  = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+
 %:
 	dh $@ --buildsystem=python_distutils --with python2,sphinxdoc
 
@@ -41,7 +44,7 @@ override_dh_clean:
 	rm -rf build
 
 override_dh_sphinxdoc:
-	sphinx-build -b html doc debian/python-pysaml2-doc/usr/share/doc/python-pysaml2-doc/html
+	sphinx-build -D today="$(BUILD_DATE)" -b html doc debian/python-pysaml2-doc/usr/share/doc/python-pysaml2-doc/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 
 # Commands not to run
_______________________________________________
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