Your message dated Sat, 15 Oct 2016 00:14:47 +0200
with message-id <20161014221447.a5d54wnw4slo5ioq@fama>
and subject line python-pypump: [PATCH] please make the build reproducible
has caused the Debian Bug report #788505,
regarding python-pypump: [PATCH] please make the build reproducible
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
788505: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=788505
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: python-pypump
Version: 0.6-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 python-pypump could not be built reproducibly.

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

 [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp python-pypump-0.6.old/debian/rules python-pypump-0.6/debian/rules
--- python-pypump-0.6.old/debian/rules	2015-05-13 14:48:10.000000000 -0300
+++ python-pypump-0.6/debian/rules	2015-06-11 22:30:19.454056240 -0300
@@ -2,6 +2,10 @@
 PYTHONS:=$(shell pyversions -vr)
 PYTHON3S:=$(shell py3versions -vr)
 
+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)\"
+
 %:
 	dh $@ --buildsystem=python_distutils --with python2,python3,sphinxdoc
 
@@ -12,7 +16,7 @@ override_dh_clean:
 
 override_dh_auto_build:
 	dh_auto_build
-	make -C docs html
+	make -C docs html SPHINXOPTS="$(SPHINXOPTS)"
 
 	# # This version pypump-shell needs the path $HOME/.config/
 	# # to exist for it to build correctly, so I'm adding it

--- End Message ---
--- Begin Message ---
Thanks to SOURCE_DATE_EPOCH support in sphinx and dh_sphinxdoc,
there is nothing left to do for me :~)

--- End Message ---
_______________________________________________
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to