You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.4 KiB

  1. From a785cc3db0c4e8eb8ebbf784b833a40d2c42ec3e Mon Sep 17 00:00:00 2001
  2. From: Werner Koch <wk@gnupg.org>
  3. Date: Tue, 25 Aug 2015 21:11:05 +0200
  4. Subject: [PATCH] Add configure option --enable-build-timestamp.
  5. * configure.ac (BUILD_TIMESTAMP): Set to "<none>" by default.
  6. --
  7. This is based on
  8. libgpg-error commit d620005fd1a655d591fccb44639e22ea445e4554
  9. but changed to be disabled by default. Check there for some
  10. background.
  11. Signed-off-by: Werner Koch <wk@gnupg.org>
  12. ---
  13. configure.ac | 11 ++++++++++-
  14. 1 file changed, 10 insertions(+), 1 deletion(-)
  15. diff --git a/configure.ac b/configure.ac
  16. index 48e217947287..2acfa3630cac 100644
  17. --- a/configure.ac
  18. +++ b/configure.ac
  19. @@ -2272,7 +2272,16 @@ changequote([,])dnl
  20. BUILD_FILEVERSION="${BUILD_FILEVERSION}mym4_revision_dec"
  21. AC_SUBST(BUILD_FILEVERSION)
  22. -BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
  23. +AC_ARG_ENABLE([build-timestamp],
  24. + AC_HELP_STRING([--enable-build-timestamp],
  25. + [set an explicit build timestamp for reproducibility.
  26. + (default is the current time in ISO-8601 format)]),
  27. + [if test "$enableval" = "yes"; then
  28. + BUILD_TIMESTAMP=`date -u +%Y-%m-%dT%H:%M+0000 2>/dev/null || date`
  29. + else
  30. + BUILD_TIMESTAMP="$enableval"
  31. + fi],
  32. + [BUILD_TIMESTAMP="<none>"])
  33. AC_SUBST(BUILD_TIMESTAMP)
  34. AC_DEFINE_UNQUOTED(BUILD_TIMESTAMP, "$BUILD_TIMESTAMP",
  35. [The time this package was configured for a build])
  36. --
  37. 2.15.1