Bug#863117: scilab: please make the build reproducible

Chris Lamb lamby at debian.org
Mon May 22 06:59:29 UTC 2017


Source: scilab
Version: 5.5.2-4
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-bugs at 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
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
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


More information about the debian-science-maintainers mailing list