Source: quvi Version: 0.9.4-1.1 Severity: wishlist Tags: patch User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
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 `. `'` [email protected] / chris-lamb.co.uk `-
--- 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 <[email protected]> +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

