Source: grapefruit
Version: 0.1~a3+dfsg-1
Severity: wishlist
Tags: patch
Usertags: timestamps


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.


-- 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/debian/rules	2013-08-12 05:55:26.000000000 -0300
+++	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
-	PYTHONPATH=$(shell pwd) make -C doc/ html
+	PYTHONPATH=$(shell pwd) make -C doc/ html SPHINXOPTS="$(SPHINXOPTS)"
 	dh_install -X SOURCES.txt
Reproducible-builds mailing list

Reply via email to