[Reproducible-builds] Bug#835259: quvi: please make the build reproducible

Chris Lamb lamby at debian.org
Tue Aug 23 21:25:14 UTC 2016


Source: quvi
Version: 0.9.4-1.1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Hi,

Whilst working on the Reproducible Builds effort [0], I noticed
that quvi 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 --------------
--- a/debian/patches/reproducible-build.patch	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/reproducible-build.patch	2016-08-23 22:19:53.726012404 +0100
@@ -0,0 +1,21 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-23
+
+--- quvi-0.9.4.orig/configure.ac
++++ quvi-0.9.4/configure.ac
+@@ -47,7 +47,13 @@ AC_DEFINE_UNQUOTED([CFLAGS], "$CFLAGS",
+ AC_DEFINE_UNQUOTED([CC], "$CC", [Define to compiler])
+ 
+ AC_PATH_PROG([DATE], [date], [no])
+-AS_IF([test x"$DATE" != "xno"], [build_time=`$DATE +"%F %T %z"`])
++AS_IF([test x"$DATE" != "xno"], [
++  if test x"$SOURCE_DATE_EPOCH" = "x"; then
++    build_time=`$DATE +"%F %T %z"`
++  else
++    build_time=`$DATE --utc --date="@$SOURCE_DATE_EPOCH" +"%F %T %z"`
++  fi
++])
+ AC_DEFINE_UNQUOTED([BUILD_TIME], ["$build_time"], [We have build time])
+ 
+ AC_PATH_PROG([A2X], [a2x], [no])
--- a/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series	2016-08-23 22:19:52.638000828 +0100
@@ -0,0 +1 @@
+reproducible-build.patch


More information about the Reproducible-builds mailing list