Package: python-psutil Version: 2.1.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 python-psutil could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, python-psutil can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-psutil-2.1.1.old/debian/rules python-psutil-2.1.1/debian/rules --- python-psutil-2.1.1.old/debian/rules 2014-05-02 15:57:54.000000000 -0300 +++ python-psutil-2.1.1/debian/rules 2015-06-11 22:19:08.349355883 -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)\" + PY2VERS := $(shell pyversions -s) PY3VERS := $(shell py3versions -s) @@ -15,7 +19,7 @@ override_dh_auto_build: for python in $(PY2VERS) $(PY3VERS); do \ $$python setup.py build; \ done - $(MAKE) -C docs html + $(MAKE) -C docs html SPHINXOPTS="$(SPHINXOPTS)" override_dh_auto_install: set -e ; \