Source: alot
Version: 0.3.6-1
Severity: wishlist
Tags: patch
Usertags: timestamps


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

The attached patch removes extra timestamps from the build system
when creating the source archive. Once applied, alot 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 -rupN alot-0.3.6.old/debian/rules alot-0.3.6/debian/rules
--- alot-0.3.6.old/debian/rules	2014-08-22 06:52:14.000000000 -0300
+++ alot-0.3.6/debian/rules	2015-05-07 11:35:52.565732248 -0300
@@ -1,4 +1,6 @@
 #!/usr/bin/make -f
+LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
+BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 	dh $@ --with python2,sphinxdoc
@@ -6,7 +8,7 @@
 	rm -rf $(CURDIR)/docs/build
-	$(MAKE) -C docs html man
+	$(MAKE) -C docs html man SPHINXOPTS="-D today=\"$(BUILD_DATE)\""
 	dh_auto_install -- --install-lib=/usr/share/alot/
Reproducible-builds mailing list

Reply via email to