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

Patch attached.

 [0] https://reproducible-builds.org/


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      la...@debian.org / chris-lamb.co.uk
       `-
--- a/debian/patches/0005-reproducible_build.patch      1970-01-01 
12:00:00.000000000 +1200
--- b/debian/patches/0005-reproducible_build.patch      2017-02-13 
18:11:27.177170815 +1300
@@ -0,0 +1,16 @@
+Description: Make the build reproducible
+Author: Chris Lamb <la...@debian.org>
+Last-Update: 2017-02-13
+
+--- samplv1-0.8.0.orig/configure.ac
++++ samplv1-0.8.0/configure.ac
+@@ -9,6 +9,9 @@ AC_CONFIG_FILES(Makefile samplv1.spec sr
+ 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.
--- a/debian/patches/series     2017-02-13 18:00:01.650517919 +1300
--- b/debian/patches/series     2017-02-13 18:08:10.515264800 +1300
@@ -1,2 +1,3 @@
 0002-fix_hardening.patch
 0004-fix_install_path.patch
+0005-reproducible_build.patch
_______________________________________________
pkg-multimedia-maintainers mailing list
pkg-multimedia-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-multimedia-maintainers

Reply via email to