[Reproducible-builds] Bug#834017: valknut: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Aug 11 13:04:49 UTC 2016
Source: valknut
Version: 0.4.9-2.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], we noticed
that valknut 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.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible_build.patch 2016-08-11 13:56:48.523933869 +0100
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-11
+
+--- valknut-0.4.9.orig/configure.in
++++ valknut-0.4.9/configure.in
+@@ -124,7 +124,12 @@ fi
+
+ AC_MSG_CHECKING([for build date and svn revision])
+
+-SERIAL="`date +%Y%m%d`"
++if test "x${SOURCE_DATE_EPOCH}" = "x"
++then
++ SERIAL="`date +%Y%m%d`"
++else
++ SERIAL="`date --utc --date="@${SOURCE_DATE_EPOCH}" +%Y%m%d`"
++fi
+ AC_SUBST(SERIAL)
+
+ VALKNUT_BUILD_INFO="Build date: $SERIAL"
--- a/debian/patches/series 2016-08-11 13:37:41.482865553 +0100
--- b/debian/patches/series 2016-08-11 13:56:47.279917942 +0100
@@ -1,2 +1,3 @@
manpages.patch
gcc_4.7.patch
+reproducible_build.patch
More information about the Reproducible-builds
mailing list