Source: yersinia
Version: 0.7.3-2
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi,

Whilst working on the "reproducible builds" effort [0], we noticed
that yersinia could not be built reproducibly.

Patch attached. Please send it upstream if possible.

 [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 02:00:00.000000000 
+0200
--- b/debian/patches/reproducible_build.patch   2016-07-15 18:13:23.933606372 
+0200
@@ -0,0 +1,19 @@
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2016-07-15
+
+--- yersinia-0.7.3.orig/configure.in
++++ yersinia-0.7.3/configure.in
+@@ -839,6 +839,13 @@ info_kern="`uname -s`"
+ info_kern_ver="`uname -r`"
+ info_platform="`uname -m`"
+ 
++if test -n "$SOURCE_DATE_EPOCH"; then
++      info_date="`LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH '+%a 
%d-%b-%Y %H:%M'`"
++      info_kern="`lsb_release --short --id`"
++      info_kern_ver="`lsb_release --short --id`"
++      info_platform="`uname --short --id`"
++fi
++
+ AC_DEFINE_UNQUOTED(INFO_KERN, "$info_kern")
+ AC_DEFINE_UNQUOTED(INFO_KERN_VER, "$info_kern_ver")
+ AC_DEFINE_UNQUOTED(INFO_PLATFORM, "$info_platform")
--- a/debian/patches/series     1970-01-01 02:00:00.000000000 +0200
--- b/debian/patches/series     2016-07-15 18:13:12.665242744 +0200
@@ -0,0 +1 @@
+reproducible_build.patch
_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to