Source: pastescript
Version: 1.7.5-3
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps

Hi!

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

The attached patch removes extra timestamps from the build system.
Once applied, pastescript 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 pastescript-1.7.5.old/debian/rules pastescript-1.7.5/debian/rules
--- pastescript-1.7.5.old/debian/rules	2012-05-27 16:46:37.000000000 -0300
+++ pastescript-1.7.5/debian/rules	2015-06-09 12:38:27.710010479 -0300
@@ -1,6 +1,11 @@
 #!/usr/bin/make -f
 
 #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="$(BUILD_DATE)"
+SPHINXOPTS += -D html_last_updated_fmt="$(BUILD_DATE)"
 
 PYVERS=$(shell pyversions -vr)
 PKGDIR=$(CURDIR)/debian/python-pastescript
@@ -20,7 +25,7 @@ build-arch:
 build-docs:
 	dh_testdir
 	dh_installdirs
-	PYTHONPATH=. sphinx-build -N -q -E -b html docs/ $(PKGDIR)/usr/share/doc/python-pastescript/docs/
+	PYTHONPATH=. sphinx-build -N -q -E -b html $(SPHINXOPTS) docs/ $(PKGDIR)/usr/share/doc/python-pastescript/docs/
 	touch $@
 
 install: build install-stamp
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to