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

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp oslo-config-1.9.3.old/debian/rules oslo-config-1.9.3/debian/rules
--- oslo-config-1.9.3.old/debian/rules	2015-04-27 06:02:17.000000000 -0300
+++ oslo-config-1.9.3/debian/rules	2015-06-11 11:22:23.656052882 -0300
@@ -5,6 +5,10 @@ PYTHON3S:=$(shell py3versions -vr)
 
 UPSTREAM_GIT = git://github.com/openstack/oslo.config.git
 
+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)
 
@@ -40,7 +44,7 @@ endif
 
 override_dh_sphinxdoc:
 ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS)))
-	sphinx-build -b html doc/source $(CURDIR)/debian/python-oslo.config-doc/usr/share/doc/python-oslo.config-doc/html
+	sphinx-build $(SPHINXOPTS) -b html doc/source $(CURDIR)/debian/python-oslo.config-doc/usr/share/doc/python-oslo.config-doc/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