[SCM] drumkv1/master: Patch for reproducible build
umlaeute at users.alioth.debian.org
umlaeute at users.alioth.debian.org
Mon Jun 19 09:01:17 UTC 2017
The following commit has been merged in the master branch:
commit 8e775043c150473e4c5c38143979b9acb584ae0d
Author: IOhannes m zmölnig (Debian/GNU) <umlaeute at debian.org>
Date: Mon Jun 19 10:51:03 2017 +0200
Patch for reproducible build
Thanks: Chris Lamb <lamby at debian.org>
Closes: #860213
diff --git a/debian/patches/reproducible_build.patch b/debian/patches/reproducible_build.patch
new file mode 100644
index 0000000..15cb581
--- /dev/null
+++ b/debian/patches/reproducible_build.patch
@@ -0,0 +1,18 @@
+Description: reproducible build-date
+Author: Chris Lamb
+Reviewed-by: IOhannes m zmölnig
+Last-Update: 2017-06-19
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- drumkv1.orig/configure.ac
++++ drumkv1/configure.ac
+@@ -9,6 +9,9 @@
+ 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.
diff --git a/debian/patches/series b/debian/patches/series
index fa74c69..92ad9e7 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
0002-hardening_fix.patch
0004-fix_install_path.patch
+reproducible_build.patch
--
drumkv1 packaging
More information about the pkg-multimedia-commits
mailing list