Bug#835807: pygtksourceview: please make the build reproducible

Chris Lamb lamby at debian.org
Sun Aug 28 12:50:50 UTC 2016


Source: pygtksourceview
Version: 2.10.1-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that pygtksourceview could not be built reproducibly.

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
--- a/debian/control	2016-08-28 13:38:51.513719814 +0100
--- b/debian/control	2016-08-28 13:49:34.175782147 +0100
@@ -18,7 +18,8 @@
                xsltproc,
                docbook-xsl,
                gtk-doc-tools (>= 1.4),
-               python-gtk2-doc
+               python-gtk2-doc,
+	       dh-autoreconf
 X-Python-Version: >= 2.6
 Standards-Version: 3.9.2
 
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2016-08-28 13:42:39.047875396 +0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-28
+
+--- pygtksourceview-2.10.1.orig/docs/Makefile.am
++++ pygtksourceview-2.10.1/docs/Makefile.am
+@@ -66,7 +66,7 @@ $(HTML_DATA): build_stamp
+ if ENABLE_DOCS
+ 
+ reference/builddate.xml: $(REFERENCE_DEPS)
+-	$(PYTHON) -c 'import datetime; print datetime.date.today()' > $@
++	$(PYTHON) -c 'import os, time, datetime; print datetime.datetime.utcfromtimestamp(int(os.environ.get("SOURCE_DATE_EPOCH", time.time()))).date()' > $@
+ 
+ build_stamp: $(REFERENCE_DEPS)reference/builddate.xml
+ 	xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2016-08-28 13:42:37.735862945 +0100
@@ -0,0 +1 @@
+reproducible-build.patch
--- a/debian/rules	2016-08-28 13:38:51.513719814 +0100
--- b/debian/rules	2016-08-28 13:49:43.779872057 +0100
@@ -7,6 +7,7 @@
 include /usr/share/cdbs/1/class/gnome.mk
 include /usr/share/gnome-pkg-tools/1/rules/uploaders.mk
 -include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk
+include /usr/share/cdbs/1/rules/autoreconf.mk
 
 DEB_COMPRESS_EXCLUDE += .py
 


More information about the Reproducible-builds mailing list