Bug#831404: yersinia: please make the build reproducible
Dear Maintainer, > Source: yersinia > Version: 0.7.1-1.1 > Tags: patch There hasn't seem to be any update on this bug in 61 days, in which time the Reproducible Builds effort has come on a long way. :) Would you consider applying this patch and uploading? Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
Bug#831404: yersinia: please make the build reproducible
Hi, > Patch attached. Please send it upstream if possible. Corrected patch attached. Apologies for the noise! Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `- diff --git a/configure.in b/configure.in index 5e45e68..98f895d 100644 --- a/configure.in +++ b/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="`lsb_release --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") diff --git a/debian/control b/debian/control index f5379be..33e1a7b 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: yersinia Section: admin Priority: optional Maintainer: Noël Köthe -Build-Depends: debhelper (>= 9.0.0), autotools-dev, libncurses5-dev (>=5.4), libnet1-dev (>=1.1.2), libpcap0.8-dev, libgtk2.0-dev +Build-Depends: debhelper (>= 9.0.0), autotools-dev, libncurses5-dev (>=5.4), libnet1-dev (>=1.1.2), libpcap0.8-dev, libgtk2.0-dev, lsb-release Standards-Version: 3.9.8 Homepage: http://www.yersinia.net/
Bug#831404: yersinia: please make the build reproducible
Source: yersinia Version: 0.7.3-2 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], 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.0 +0200 --- b/debian/patches/reproducible_build.patch 2016-07-15 18:13:23.933606372 +0200 @@ -0,0 +1,19 @@ +Author: Chris Lamb +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.0 +0200 --- b/debian/patches/series 2016-07-15 18:13:12.665242744 +0200 @@ -0,0 +1 @@ +reproducible_build.patch