Bug#860211: qtractor: please make the build reproducible

Chris Lamb lamby at debian.org
Wed Apr 12 21:05:44 UTC 2017


Source: qtractor
Version: 0.8.0-1
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 qtractor could not be built reproducibly.

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 10d502e..25234b8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -10,6 +10,9 @@ AC_CONFIG_FILES(src/qtractor_vst_scan.pri)
 AC_CACHE_VAL([ac_cv_build_date],
    [ac_cv_build_date=$(date +"%b %d %Y %H:%M %z")])
 ac_build_date="$ac_cv_build_date"
+if test -n "$SOURCE_DATE_EPOCH"; then
+   ac_build_date="`LC_ALL=C date --utc --date=@$SOURCE_DATE_EPOCH +'%b %d %Y %H:%M %z`"
+fi
 AC_DEFINE_UNQUOTED(CONFIG_BUILD_DATE, ["$ac_build_date"], [Build date and time.])
 
 # Build version string.


More information about the Reproducible-bugs mailing list