configure.ac |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit d2b0c48ca0f0ba8ef3049ebcd5f93ae420c22c46
Author:     Thorsten Behrens <thorsten.behr...@allotropia.de>
AuthorDate: Fri Nov 3 02:57:53 2023 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Sun Nov 5 21:24:11 2023 +0100

    reprobuild: don't use any build-time dependent values
    
    Even taking the current year from the build system makes a build
    non-reproducible (if you run it again the next year).
    
    Change-Id: I4a2ef0fe997c20d1c8ec954378f46adb5aad04df
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/158870
    Tested-by: Jenkins
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/configure.ac b/configure.ac
index f6ea33f4cfc7..cb2f975bdd97 100644
--- a/configure.ac
+++ b/configure.ac
@@ -519,7 +519,8 @@ AC_DEFINE_UNQUOTED(LIBO_VERSION_MINOR,$LIBO_VERSION_MINOR)
 AC_DEFINE_UNQUOTED(LIBO_VERSION_MICRO,$LIBO_VERSION_MICRO)
 AC_DEFINE_UNQUOTED(LIBO_VERSION_PATCH,$LIBO_VERSION_PATCH)
 
-LIBO_THIS_YEAR=`date +%Y`
+git_date=`git log -1 --pretty=format:"%cd" --date=format:'%Y' 2>&/dev/null`
+LIBO_THIS_YEAR=${git_date:-2023}
 AC_DEFINE_UNQUOTED(LIBO_THIS_YEAR,$LIBO_THIS_YEAR)
 
 # replace backslashes, to get a valid c++ string

Reply via email to