Source: hy Version: 0.11.0-4 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi, Whilst working on the "reproducible builds" effort [0], we noticed that hy could not be built reproducibly. The attached patch removes varying timestamps from the build system. Alternatively (and preferably) please just drop this timestamp - it's probably dubious legally-speaking anyway. [0] https://wiki.debian.org/ReproducibleBuilds Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
--- a/debian/patches/reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/reproducible_build.patch 2015-12-26 03:42:06.069491737 +0000 @@ -0,0 +1,20 @@ +--- hy-0.11.0.orig/docs/conf.py ++++ hy-0.11.0/docs/conf.py +@@ -14,6 +14,7 @@ + import os + import sys + import time ++import datetime + sys.path.append(os.path.abspath("..")) + + import hy +@@ -46,7 +47,8 @@ master_doc = 'index' + + # General information about the project. + project = u'hy' +-copyright = u'2013-%s, Paul Tagliamonte' % time.strftime('%Y') ++build_date = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) ++copyright = u'2013-%s, Paul Tagliamonte' % build_date.year + + # The version info for the project you're documenting, acts as replacement for + # |version| and |release|, also used in various other places throughout the --- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 --- b/debian/patches/series 2015-12-26 03:42:03.185440315 +0000 @@ -0,0 +1 @@ +reproducible_build.patch