Source: pyepr Version: 0.8.2-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 pyepr could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, pyepr can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds -- System Information: Debian Release: stretch/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -urNp pyepr-0.8.2.old/debian/rules pyepr-0.8.2/debian/rules --- pyepr-0.8.2.old/debian/rules 2015-01-11 07:42:19.000000000 -0200 +++ pyepr-0.8.2/debian/rules 2015-06-09 11:30:08.693850870 -0300 @@ -4,6 +4,11 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +LAST_CHANGE=$(shell dpkg-parsechangelog -S Date) +BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)") +SPHINXOPTS := -D today=\"$(BILD_DATE)\" +SPHINXOPTS += -D html_last_updated_fmt=\"$(BUILD_DATE)\" + # Get the supported Python versions #PY2VERS=$(shell pyversions -vr) PY3VERS=$(shell py3versions -vr) @@ -89,7 +94,7 @@ endif override_dh_installdocs: ifeq (,$(findstring nodoc,$(DEB_BUILD_OPTIONS))) - $(MAKE) -C doc html + $(MAKE) -C doc html SPHINXOPTS="$(SPHINXOPTS)" else mkdir -p doc/html endif