From 4ca7abf03efafef671ed8898055c711003c6664e Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 15 Feb 2022 13:34:39 -0500 Subject: [PATCH] configure: Generate version from date of last commit not current date Using the date at build time prevents the build from being reproducible later. In order to facilitate reproducible builds, this commit changes the logic to derive the version from the date of the last commit. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 6e00c0c0..608ad02c 100644 --- a/configure.ac +++ b/configure.ac @@ -1,5 +1,5 @@ AC_INIT([plymouth], - m4_esyscmd_s([date +%y.%V.$(git rev-list $(git describe --abbrev=0)..HEAD --count) || echo 0]), + m4_esyscmd_s([date +%y.%V.$(git rev-list $(git describe --abbrev=0)..HEAD --count) -d "@$(git log -1 --pretty=format:%ct)" || echo 0]), [https://gitlab.freedesktop.org/plymouth/plymouth/issues]) AC_CONFIG_SRCDIR(src/main.c) AC_CONFIG_HEADER(config.h)