Package: python-glance-store
Version: 0.4.0-1
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 python-glance-store could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-glance-store-0.4.0.old/debian/rules python-glance-store-0.4.0/debian/rules
--- python-glance-store-0.4.0.old/debian/rules	2015-04-28 10:41:45.000000000 -0300
+++ python-glance-store-0.4.0/debian/rules	2015-06-11 22:10:19.820794747 -0300
@@ -1,5 +1,9 @@
 #!/usr/bin/make -f
 
+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)"
+
 PYTHONS:=$(shell pyversions -vr)
 PYTHON3S:=$(shell py3versions -vr)
 
@@ -40,7 +44,7 @@ override_dh_clean:
 	rm -rf build .testrepository
 
 override_dh_sphinxdoc:
-	sphinx-build -b html doc/source debian/python-glance-store-doc/usr/share/doc/python-glance-store-doc/html
+	sphinx-build $(SPHINXOPTS) -b html doc/source debian/python-glance-store-doc/usr/share/doc/python-glance-store-doc/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 
 # Commands not to run

Reply via email to