Source: grapefruit Version: 0.1~a3+dfsg-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 grapefruit could not be built reproducibly. The attached patch removes extra timestamps from the build system. Once applied, grapefruit 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 grapefruit-0.1~a3+dfsg/debian/rules grapefruit-0.1~a3+dfsg.new/debian/rules --- grapefruit-0.1~a3+dfsg/debian/rules 2013-08-12 05:55:26.000000000 -0300 +++ grapefruit-0.1~a3+dfsg.new/debian/rules 2015-06-09 10:38:28.721730162 -0300 @@ -3,12 +3,18 @@ PYVERS := $(shell pyversions -r) UPSTREAM = $(shell dpkg-parsechangelog | egrep '^Version: ' | cut -d ' ' -f 2- | sed 's/+dfsg.*//') +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 $@ --with python2,sphinxdoc override_dh_auto_build: dh_auto_build - PYTHONPATH=$(shell pwd) make -C doc/ html + PYTHONPATH=$(shell pwd) make -C doc/ html SPHINXOPTS="$(SPHINXOPTS)" override_dh_install: dh_install -X SOURCES.txt