Package: python-osprofiler
Version: 0.3.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 python-osprofiler could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-osprofiler-0.3.0.old/debian/rules python-osprofiler-0.3.0/debian/rules
--- python-osprofiler-0.3.0.old/debian/rules	2014-09-04 23:16:33.000000000 -0300
+++ python-osprofiler-0.3.0/debian/rules	2015-06-11 22:14:36.801069933 -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)
 
@@ -45,7 +49,7 @@ override_dh_clean:
 	rm -rf build
 
 override_dh_sphinxdoc:
-	sphinx-build -b html doc/source debian/python-osprofiler-doc/usr/share/doc/python-osprofiler-doc/html
+	sphinx-build $(SPHINXOPTS) -b html doc/source debian/python-osprofiler-doc/usr/share/doc/python-osprofiler-doc/html
 	dh_sphinxdoc -O--buildsystem=python_distutils
 
 # Commands not to run
_______________________________________________
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