Package: glance Version: 2015.1.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 glance could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, glance can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp glance-2015.1.0.old/debian/rules glance-2015.1.0/debian/rules --- glance-2015.1.0.old/debian/rules 2015-04-30 18:46:13.000000000 -0300 +++ glance-2015.1.0/debian/rules 2015-06-11 09:29:37.859893246 -0300 @@ -6,6 +6,11 @@ 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)") +SPHINXOPTS := -D today="$(BUILD_DATE)" +SPHINXOPTS += -D html_last_updated_fmt="$(BUILD_DATE)" + %: dh $@ --buildsystem=python_distutils --with python2,sphinxdoc,systemd @@ -25,13 +30,13 @@ override_dh_auto_build: override_dh_sphinxdoc: ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) - sphinx-build -b html doc/source $(CURDIR)/debian/python-glance-doc/usr/share/doc/python-glance-doc/html + sphinx-build $(SPHINXOPTS) -b html doc/source $(CURDIR)/debian/python-glance-doc/usr/share/doc/python-glance-doc/html dh_sphinxdoc -O--buildsystem=python_distutils endif override_dh_installman: ifeq (,$(findstring nodocs, $(DEB_BUILD_OPTIONS))) - sphinx-build -b man doc/source doc/build/man + sphinx-build $(SPHINXOPTS) -b man doc/source doc/build/man dh_installman -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