Package: tempest
Version: 4-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 tempest could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp tempest-4.old/debian/rules tempest-4/debian/rules
--- tempest-4.old/debian/rules	2015-05-04 17:36:16.000000000 -0300
+++ tempest-4/debian/rules	2015-06-24 01:04:07.999253774 -0300
@@ -5,6 +5,9 @@ include /usr/share/openstack-pkg-tools/p
 
 export OSLO_PACKAGE_VERSION=$(VERSION)
 
+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
 
@@ -52,6 +55,6 @@ endif
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-	PYTHONPATH=. sphinx-build -b html doc/source $(CURDIR)/debian/tempest/usr/share/doc/tempest/html
+	PYTHONPATH=. sphinx-build -D html_last_updated_fmt="$(BUILD_DATE)" -b html doc/source $(CURDIR)/debian/tempest/usr/share/doc/tempest/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 endif
_______________________________________________
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