[Reproducible-builds] Bug#834159: mp4v2: please make the build reproducible
Chris Lamb
lamby at debian.org
Fri Aug 12 15:37:53 UTC 2016
Source: mp4v2
Version: 2.0.0~dfsg0-4
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], we noticed
that mp4v2 could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/patches/0003-Reproducible_build.patch 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/0003-Reproducible_build.patch 2016-08-12 16:33:47.428664839 +0100
@@ -0,0 +1,20 @@
+Description: Make the build reproducible
+Author: Chris Lamb <lamby at debian.org>
+Last-Update: 2016-08-12
+
+--- mp4v2-2.0.0~dfsg0.orig/configure.ac
++++ mp4v2-2.0.0~dfsg0/configure.ac
+@@ -137,7 +137,12 @@ PROJECT_repo_uuid="PRJ_repo_uuid"
+ PROJECT_repo_rev="PRJ_repo_rev"
+ PROJECT_repo_date="PRJ_repo_date"
+ PROJECT_repo_type="PRJ_repo_type"
+-PROJECT_build="`date`"
++
++if test -n "$SOURCE_DATE_EPOCH"; then
++ PROJECT_build="`LC_ALL=C date --utc --date="@$SOURCE_DATE_EPOCH"`"
++else
++ PROJECT_build="`date`"
++fi
+
+ test -z "$PROJECT_version_hex" && PROJECT_version_hex="0x0000000000000000LL"
+ test -z "$PROJECT_version_major" && PROJECT_version_major="0"
--- a/debian/patches/series 2016-08-12 16:20:23.488736924 +0100
--- b/debian/patches/series 2016-08-12 16:33:46.368649744 +0100
@@ -1,2 +1,3 @@
0001-Fix_mp4tags_corruption.patch
0002-Fix_m4_error.patch
+0003-Reproducible_build.patch
More information about the Reproducible-builds
mailing list