comparison src/configure.ac @ 20713:5ddd4df27068 v8.2.0910

patch 8.2.0910: Vim is not reproducibly buildable Commit: https://github.com/vim/vim/commit/8f1dde5021d9623a951d1ccbc78cf1b1a55ccd7a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 5 23:16:29 2020 +0200 patch 8.2.0910: Vim is not reproducibly buildable Problem: Vim is not reproducibly buildable. Solution: Use the $SOURCE_DATE_EPOCH environment variable in configure. (James McCoy, closes #513) Give a warning about using it.
author Bram Moolenaar <Bram@vim.org>
date Fri, 05 Jun 2020 23:30:04 +0200
parents 4411c2b96af9
children 69055d27e85e
comparison
equal deleted inserted replaced
20712:f65c7bc846b2 20713:5ddd4df27068
58 [AC_MSG_RESULT(yes); slash_comments=yes], 58 [AC_MSG_RESULT(yes); slash_comments=yes],
59 [AC_MSG_RESULT(no)]) 59 [AC_MSG_RESULT(no)])
60 if test "$slash_comments" = no; then 60 if test "$slash_comments" = no; then
61 AC_MSG_FAILURE([Compiler does not support C++ comments]) 61 AC_MSG_FAILURE([Compiler does not support C++ comments])
62 fi 62 fi
63 fi
64
65 dnl If $SOURCE_DATE_EPOCH is present in the environment, use that as the
66 dnl "compiled" timestamp in :version's output. Attempt to get the formatted
67 dnl date using GNU date syntax, BSD date syntax, and finally falling back to
68 dnl just using the current time.
69 if test -n "$SOURCE_DATE_EPOCH"; then
70 DATE_FMT="%b %d %Y %H:%M:%S"
71 BUILD_DATE=$(LC_ALL=C date -u -d "@$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u -r "$SOURCE_DATE_EPOCH" "+$DATE_FMT" 2>/dev/null || LC_ALL=C date -u "+$DATE_FMT")
72 AC_DEFINE_UNQUOTED(BUILD_DATE, ["$BUILD_DATE"])
73 BUILD_DATE_MSG=-"echo -e '=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\nNOTE: build date/time is fixed: $BUILD_DATE\n=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='"
74 AC_SUBST(BUILD_DATE_MSG)
63 fi 75 fi
64 76
65 dnl Check for the flag that fails if stuff are missing. 77 dnl Check for the flag that fails if stuff are missing.
66 78
67 AC_MSG_CHECKING(--enable-fail-if-missing argument) 79 AC_MSG_CHECKING(--enable-fail-if-missing argument)