Source: seqan
Version: 1.4.1+dfsg-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that seqan
could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/docs/dddoc_html.py b/docs/dddoc_html.py
index 52e5de1..26101a8 100644
--- a/docs/dddoc_html.py
+++ b/docs/dddoc_html.py
@@ -1,5 +1,6 @@
# coding: latin-1
import os
+import time
import datetime
import dddoc
import dddoc_html_trans
@@ -13,6 +14,7 @@ from os import F_OK
# Number of warnings.
WARNING_COUNT = 0
OUT_PATH = 'html'
+BUILD_DATE =
datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH',
time.time())))
################################################################################
@@ -663,7 +665,7 @@ def pageIndexpage(fl, cat):
fl.write('</td></tr>')
fl.write('</table>')
fl.write('<p style="font-size:50%%; color: #909090">Page built @%s</p>' %
- datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S'))
+ BUILD_DATE.strftime('%Y/%m/%d %H:%M:%S'))
fl.write('</body>')
fl.write('</html>')
@@ -760,7 +762,7 @@ def pageContent(fl, data):
fl.write('</td></tr>')
fl.write('</table>')
fl.write('<p style="font-size:50%%; color: #909090">Page built @%s</p>' %
- datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S'))
+ BUILD_DATE.strftime('%Y/%m/%d %H:%M:%S'))
fl.write('</body>')
fl.write('</html>')