Source: scilab Version: 5.5.2-4 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi, Whilst working on the Reproducible Builds effort [0], we noticed that scilab could not be built reproducibly as it embeds the current year into the generated binaries. Patch attached. [0] https://reproducible-builds.org/ Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/configure.ac b/configure.ac index 433059f..813e488 100644 --- a/configure.ac +++ b/configure.ac @@ -1882,6 +1882,9 @@ if test ! -f modules/core/src/c/banier.c; then fi CURRENT_YEAR=`date "+%Y"` +if test -n "$SOURCE_DATE_EPOCH"; then + CURRENT_YEAR=`date --utc --date="@$SOURCE_DATE_EPOCH" "+%Y"` +fi DETECTED_YEAR=`grep "Copyright (c) 2011-" modules/core/src/c/banier.c|sed -e "s/.*Copyright (c) 2011-\([[0-9]]*\).*/\1/g"` if test "$CURRENT_YEAR" != "$DETECTED_YEAR"; then