[Pkg-voip-commits] [asterisk] 02/02: Add patch to (hopefully) build reproducibly

Bernhard Schmidt berni at moszumanska.debian.org
Thu Aug 17 18:52:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

berni pushed a commit to branch master
in repository asterisk.

commit 14a016ce1b0cc1c729697be3e5c1eae47d2a21a7
Author: Bernhard Schmidt <berni at debian.org>
Date:   Thu Aug 17 20:43:37 2017 +0200

    Add patch to (hopefully) build reproducibly
---
 debian/control                    |  1 +
 debian/patches/build-reproducibly | 15 +++++++++++++++
 debian/patches/series             |  1 +
 3 files changed, 17 insertions(+)

diff --git a/debian/control b/debian/control
index 2018b9d..c7d3f37 100644
--- a/debian/control
+++ b/debian/control
@@ -22,6 +22,7 @@ Build-Depends:
  freetds-dev,
  libasound2-dev,
  libavcodec-dev,
+ libavdevice-dev,
  libbluetooth-dev [linux-any],
  libc-client2007e-dev,
  libcap-dev [linux-any],
diff --git a/debian/patches/build-reproducibly b/debian/patches/build-reproducibly
new file mode 100644
index 0000000..6532542
--- /dev/null
+++ b/debian/patches/build-reproducibly
@@ -0,0 +1,15 @@
+--- a/build_tools/make_build_h
++++ b/build_tools/make_build_h
+@@ -5,6 +5,12 @@
+ OS=`uname -s`
+ USER=`id | awk -F")" '{print $1}'| awk -F"(" '{print $2}' | sed 's/\\\\/\\\\\\\\/g'`
+ DATE=`date -u "+%Y-%m-%d %H:%M:%S"`
++if [ -n "${SOURCE_DATE_EPOCH}" ]; then
++	# building reproducibly, faking some data
++	HOSTNAME='buildd.debian.org'
++	USER='nobody'
++	DATE=`date -u "+%Y-%m-%d %H:%M:%S" -d @${SOURCE_DATE_EPOCH}`
++fi
+ cat << END
+ /*
+  * build.h
diff --git a/debian/patches/series b/debian/patches/series
index fa7240c..244b0f3 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -35,3 +35,4 @@ ffmpeg-includes.patch
 radcli-detection.patch
 
 pjsip_unresolved_symbol.patch
+build-reproducibly

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list