[Reproducible-builds] Bug#834111: gnunet-gtk: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Aug 11 23:22:06 UTC 2016
Source: gnunet-gtk
Version: 0.10.1-3
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], we noticed
that gnunet-gtk could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/reproducible_build.diff 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.diff 2016-08-12 00:13:10.569507433 +0100
@@ -0,0 +1,19 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-12
+
+--- gnunet-gtk-0.10.1.orig/configure.ac
++++ gnunet-gtk-0.10.1/configure.ac
+@@ -538,7 +538,11 @@ AC_SUBST(GNUNET_PEERINFO_GTK_YEARFROM, [
+ AC_SUBST(GNUNET_STATISTICS_GTK_YEARFROM, [2010], [year of the first release])
+ AC_SUBST(GNUNET_SETUP_GTK_YEARFROM, [2010], [year of the first release])
+
+-thisyear=$(date | sed -e 's/.* \([[[:digit:]]]\+\)$/\1/')
++if test -n "$SOURCE_DATE_EPOCH"; then
++ thisyear=$(date --utc --date="@SOURCE_DATE_EPOCH" +%Y)
++else
++ thisyear=$(date +%Y)
++fi
+ AC_SUBST(GNUNET_FS_GTK_YEARTO, ${thisyear}, [year of the most current release])
+ AC_SUBST(GNUNET_PEERINFO_GTK_YEARTO, ${thisyear}, [year of the most current release])
+ AC_SUBST(GNUNET_STATISTICS_GTK_YEARTO, ${thisyear}, [year of the most current release])
--- a/debian/patches/series 2016-08-12 00:04:58.561295091 +0100
--- b/debian/patches/series 2016-08-12 00:13:09.261496277 +0100
@@ -2,3 +2,4 @@
ac_init_version.diff
dont_copy_license.diff
typos.diff
+reproducible_build.diff
More information about the Reproducible-builds
mailing list