Bug#860213: drumkv1: please make the build reproducible
Chris Lamb
lamby at debian.org
Wed Apr 12 21:05:48 UTC 2017
Source: drumkv1
Version: 0.8.0-2
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0], we noticed
that drumkv1 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 --------------
diff --git a/configure.ac b/configure.ac
index 791de8d..6a9798f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,6 +9,9 @@ AC_CONFIG_FILES(Makefile drumkv1.spec src/src_core.pri src/src_jack.pri src/src_
AC_CACHE_VAL([ac_cv_build_date],
[ac_cv_build_date=$(date +"%b %d %Y %H:%M %z")])
ac_build_date="$ac_cv_build_date"
+if test -n "$SOURCE_DATE_EPOCH"; then
+ ac_build_date="`LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH +'%b %d %Y %H:%M %z`"
+fi
AC_DEFINE_UNQUOTED(CONFIG_BUILD_DATE, ["$ac_build_date"], [Build date and time.])
# Build version string.
More information about the Reproducible-bugs
mailing list