Package: mpi4py Version: 1.3.1+hg20131106-2 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 mpi4py could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, mpi4py can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp mpi4py-1.3.1+hg20131106.old/debian/rules mpi4py-1.3.1+hg20131106/debian/rules --- mpi4py-1.3.1+hg20131106.old/debian/rules 2014-11-24 12:21:30.000000000 -0200 +++ mpi4py-1.3.1+hg20131106/debian/rules 2015-06-11 09:35:09.259901065 -0300 @@ -8,6 +8,9 @@ PY3VERS = $(shell py3versions -vr) CYTHON_VER := $(shell dpkg -l cython 2>/dev/null | awk '/^ii/{print $$3;}' || echo 0) RECONF = $(shell dpkg --compare-versions $(CYTHON_VER) ge 0.19.1 && echo ",autoreconf" || echo "") +LAST_CHANGE = $(shell dpkg-parsechangelog -S Date) +BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") + # Specify a specific version of MPI to use in the build, otherwise # just use the default. # MPI=.openmpi @@ -40,7 +43,7 @@ override_dh_auto_build: : # Build documentation now PYTHONPATH=`/bin/ls -d $(CURDIR)/build/lib.*$(PY2)` \ - make -C docs/source/usrman/ html + make -C docs/source/usrman/ html SPHINXOPTS="-D today=\"$(BUILD_DATE)\"" override_dh_auto_install: dh_auto_install