Package: oslo.messaging
Version: 1.8.1-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 oslo.messaging could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp oslo.messaging-1.8.1.old/debian/rules oslo.messaging-1.8.1/debian/rules
--- oslo.messaging-1.8.1.old/debian/rules	2015-04-27 10:22:53.000000000 -0300
+++ oslo.messaging-1.8.1/debian/rules	2015-06-11 12:19:38.436133925 -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)"
+
 include /usr/share/openstack-pkg-tools/pkgos.make
 
 export OSLO_PACKAGE_VERSION=$(VERSION)
@@ -18,6 +22,6 @@ endif
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-	sphinx-build -b html doc/source $(CURDIR)/debian/python-oslo.messaging/usr/share/doc/python-oslo.messaging/html
+	sphinx-build $(SPHINXOPTS) -b html doc/source $(CURDIR)/debian/python-oslo.messaging/usr/share/doc/python-oslo.messaging/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 endif

Reply via email to