Source: drumkv1
Version: 0.8.0-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
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
`. `'` [email protected] / chris-lamb.co.uk
`-
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.