[Reproducible-builds] Bug#834956: ircd-irc2: please make the build reproducible

Chris Lamb lamby at debian.org
Sat Aug 20 23:07:38 UTC 2016


Source: ircd-irc2
Version: 2.11.2p3~dfsg-4
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-irc2 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/debian/patches/02_reproducible_build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/02_reproducible_build.patch	2016-08-21 00:06:08.338196876 +0100
@@ -0,0 +1,21 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-20
+
+--- ircd-irc2-2.11.2p3~dfsg.orig/ircd/version.c.SH.in
++++ ircd-irc2-2.11.2p3~dfsg/ircd/version.c.SH.in
+@@ -20,7 +20,13 @@ sumhash="`(cd ../ircd; @SUM@ hash.c)`"
+ sumsmisc="`(cd ../ircd; @SUM@ s_misc.c)`"
+ sumircd="`(cd ../ircd; @SUM@ ircd.c)`"
+ 
+-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 \
--- a/debian/patches/series	2016-08-20 23:50:45.260647520 +0100
--- b/debian/patches/series	2016-08-20 23:55:07.311345098 +0100
@@ -1 +1,2 @@
 01_manpages.patch
+02_reproducible_build.patch


More information about the Reproducible-builds mailing list