Source: ircd-ircu
Version: 2.10.12.10.dfsg1-1.1
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], I noticed
that ircd-ircu could not be built reproducibly.

Patch attached.

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


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/ircd/version.c.SH 2016-08-22 20:22:46.861630224 +0100
--- b/ircd/version.c.SH 2016-08-22 20:27:14.677622664 +0100
@@ -14,7 +14,13 @@
 
 generation=`expr $generation + 1`
 
-creation=`date | \
+if test -n "$SOURCE_DATE_EPOCH"
+then
+  now=`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`
+else
+  now=`date`
+fi
+creation=`echo $now | \
 awk '{if (NF == 6) \
         { print $1 " " $2 " " $3 " " $6 " at " $4 " " $5 } \
 else \

Reply via email to