[Pkg-voip-commits] [kamailio] 01/02: add kamcmd patch for reproducible builds
Victor Seva Lopez
maniac-guest at moszumanska.debian.org
Wed Aug 12 09:00:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
maniac-guest pushed a commit to branch master
in repository kamailio.
commit 3c416e8a7c926219ff548c90ef46f5fe299eedeb
Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: Wed Aug 12 08:46:03 2015 +0200
add kamcmd patch for reproducible builds
---
debian/patches/kamcmd_version_nodate.patch | 36 ++++++++++++++++++++++++++++++
debian/patches/series | 1 +
2 files changed, 37 insertions(+)
diff --git a/debian/patches/kamcmd_version_nodate.patch b/debian/patches/kamcmd_version_nodate.patch
new file mode 100644
index 0000000..709aba4
--- /dev/null
+++ b/debian/patches/kamcmd_version_nodate.patch
@@ -0,0 +1,36 @@
+From 19359772acf1cbd9dedb244c1fe327ec47b7dc9c Mon Sep 17 00:00:00 2001
+From: Victor Seva <linuxmaniac at torreviejawireless.org>
+Date: Wed, 12 Aug 2015 08:16:52 +0200
+Subject: [PATCH] kamcmd: support VERSION_NODATE and VERSION_DATE for
+ reproducible builds
+
+support added e03d1279f49709e0d320478fa1ff7c27161c30ed
+
+Related: #60
+---
+ utils/kamcmd/kamcmd.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/utils/kamcmd/kamcmd.c b/utils/kamcmd/kamcmd.c
+index 974127c..a49bb3a 100644
+--- a/utils/kamcmd/kamcmd.c
++++ b/utils/kamcmd/kamcmd.c
+@@ -87,7 +87,15 @@
+
+ static char id[]="$Id$";
+ static char version[]= NAME " " VERSION;
++#ifdef VERSION_NODATE
++static char compiled[] = "";
++#else
++#ifdef VERSION_DATE
++static char compiled[]= VERSION_DATE;
++#else
+ static char compiled[]= __TIME__ " " __DATE__;
++#endif
++#endif
+ static char help_msg[]="\
+ Usage: " NAME " [options][-s address] [ cmd ]\n\
+ Options:\n\
+--
+2.5.0
+
diff --git a/debian/patches/series b/debian/patches/series
index 9de3a45..ccb014b 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -25,3 +25,4 @@ no_lib64_on_64_bits.patch
no_INSTALL_file.patch
fix_export.patch
no_tls_certs_generate.patch
+kamcmd_version_nodate.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/kamailio.git
More information about the Pkg-voip-commits
mailing list