[Reproducible-builds] Bug#835130: ircd-ircu: please make the build reproducible
Chris Lamb
lamby at debian.org
Mon Aug 22 19:30:13 UTC 2016
Source: ircd-ircu
Version: 2.10.12.10.dfsg1-1.1
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 ircd-ircu 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/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 \
More information about the Reproducible-builds
mailing list