Source: python-caja
Version: 1.10.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed that 
python-caja could not be built reproducibly.

Patch attached.


 [0] https://wiki.debian.org/ReproducibleBuilds


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0001_reproducible-build.patch      1970-01-01 
01:00:00.000000000 +0100
--- b/debian/patches/0001_reproducible-build.patch      2015-12-26 
10:46:22.403357114 +0000
@@ -0,0 +1,11 @@
+--- python-caja-1.10.0.orig/docs/Makefile.am
++++ python-caja-1.10.0/docs/Makefile.am
+@@ -86,7 +86,7 @@ REFERENCE_DEPS =     \
+ if ENABLE_GTK_DOC
+ 
+ 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()))).strftime('%Y-%m-%d')" > $@
+ 
+ $(HTML_FILES): $(REFERENCE_DEPS)
+       xsltproc --nonet --xinclude -o $(BUILDDIR)/html/ \
--- a/debian/patches/series     2015-12-26 09:44:07.654343335 +0000
--- b/debian/patches/series     2015-12-26 10:38:14.782043190 +0000
@@ -1 +1,2 @@
 2001_fix-python-libdir-not-found.patch
+0001_reproducible-build.patch
_______________________________________________
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