From 126afbfd2e03b9db6515dd76db85660461b601f8 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 6 Dec 2017 02:48:03 +0100 Subject: [PATCH] asterisk-chan-sccp: remove BUILD_USER BUILD_DATE Build timestamps prevent reproducible builds [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- net/asterisk-chan-sccp/Makefile | 2 +- .../patches/100-reproducible-builds.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 net/asterisk-chan-sccp/patches/100-reproducible-builds.patch diff --git a/net/asterisk-chan-sccp/Makefile b/net/asterisk-chan-sccp/Makefile index 77c776e..7180fb1 100644 --- a/net/asterisk-chan-sccp/Makefile +++ b/net/asterisk-chan-sccp/Makefile @@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=chan-sccp PKG_VERSION:=v4.3.0-20171123 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz PKG_SOURCE_URL:=https://github.com/chan-sccp/chan-sccp.git diff --git a/net/asterisk-chan-sccp/patches/100-reproducible-builds.patch b/net/asterisk-chan-sccp/patches/100-reproducible-builds.patch new file mode 100644 index 0000000..f10a750 --- /dev/null +++ b/net/asterisk-chan-sccp/patches/100-reproducible-builds.patch @@ -0,0 +1,13 @@ +Index: chan-sccp-v4.3.0-20171123/src/chan_sccp.c +=================================================================== +--- chan-sccp-v4.3.0-20171123.orig/src/chan_sccp.c ++++ chan-sccp-v4.3.0-20171123/src/chan_sccp.c +@@ -186,7 +186,7 @@ boolean_t sccp_postPBX_load(void) + #else + snprintf(SCCP_REVISIONSTR, sizeof(SCCP_REVISIONSTR), "%s", SCCP_REVISION); + #endif +- snprintf(SCCP_VERSIONSTR, sizeof(SCCP_VERSIONSTR), "Skinny Client Control Protocol (SCCP). Release: %s %s - %s (built by '%s' on '%s')\n", SCCP_VERSION, SCCP_BRANCH, SCCP_REVISIONSTR, BUILD_USER, BUILD_DATE); ++ snprintf(SCCP_VERSIONSTR, sizeof(SCCP_VERSIONSTR), "Skinny Client Control Protocol (SCCP). Release: %s %s - %s\n", SCCP_VERSION, SCCP_BRANCH, SCCP_REVISIONSTR); + + GLOB(module_running) = TRUE; + pbx_rwlock_unlock(&GLOB(lock)); -- 2.30.2