[libgda/LIBGDA_5.2] Use ChangeLog date instead of build date
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_5.2] Use ChangeLog date instead of build date
- Date: Sat, 4 Nov 2017 20:41:37 +0000 (UTC)
commit 582bba38a422a1684395172865c3c62fe2c6dd81
Author: Bernhard M. Wiedemann <bwiedemann suse de>
Date: Mon Oct 23 21:06:42 2017 +0200
Use ChangeLog date instead of build date
in order to make builds reproducible.
See https://reproducible-builds.org/ for why this is good.
And use UTC to be independent of timezones.
Without this patch gda-sql.1 would vary for builds on different days.
Bug #789382
configure.ac | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 630f758..d483b9c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ AC_CHECK_FUNCS(localtime_r localtime_s)
AC_CHECK_HEADER(sys/mman.h,
AC_CHECK_FUNC(mlock, [AC_DEFINE(USE_MLOCK, 1, [Use POSIX memory locking])]))
-GDA_BUILDDATE=`date '+%F'`
+GDA_BUILDDATE=`date -u -r ChangeLog '+%F'`
AC_SUBST(GDA_BUILDDATE, $GDA_BUILDDATE)
dnl **********************
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]