Source: brian
Version: 1.4.1-2
Severity: wishlist
Tags: patch
Usertags: timestamps


While working on the "reproducible builds" effort [1], we have noticed
that brian could not be built reproducibly.

The attached patch removes extra timestamps from the build system.
Once applied, brian can be built reproducibly in our current experimental


-- 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 brian-1.4.1.old/debian/rules brian-1.4.1/debian/rules
--- brian-1.4.1.old/debian/rules	2014-07-30 12:30:01.000000000 -0300
+++ brian-1.4.1/debian/rules	2015-06-10 10:43:01.075701742 -0300
@@ -5,6 +5,9 @@ ifeq (,$(findstring get-orig-source, $(M
 export  http_proxy=
+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)"
 PACKAGE_NAME = python-brian
@@ -38,7 +41,7 @@ override_dh_auto_install:
 ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
 	mkdir -p docs_sphinx/_static # to avoid crashes with older sphinx (e.g. on jaunty)
 	export PYTHONPATH=$$(/bin/ls -d $(INSTALL_PATH)/usr/lib/$(PYTHON)/*-packages); \
-	{ cd docs_sphinx; sphinx-build -a -E -b html . ../docs; }
+	{ cd docs_sphinx; sphinx-build -a -E $(SPHINXOPTS) -b html . ../docs; }
 	-rmdir docs_sphinx/_static	# remove directory possibly created above
 	rm docs/_static/jquery.js
 	rm -r docs/.doctrees
Reproducible-builds mailing list

Reply via email to