From 59c25a89e0fc4a5a1d570618869e1e39733a71f9 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 3 Dec 2017 13:19:23 +0100 Subject: [PATCH] tcpproxy: remove build timestamp and hostname Build timestamp prevents reproducible builds [0]. Build hostname also breaks reproducible builds. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- net/tcpproxy/Makefile | 3 +- ...move-build-timestamps-build-hostname.patch | 40 +++++++++++++++++++ 2 files changed, 41 insertions(+), 2 deletions(-) create mode 100644 net/tcpproxy/patches/100-remove-build-timestamps-build-hostname.patch diff --git a/net/tcpproxy/Makefile b/net/tcpproxy/Makefile index e4487fb692..0e97965b8a 100644 --- a/net/tcpproxy/Makefile +++ b/net/tcpproxy/Makefile @@ -13,7 +13,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=tcpproxy PKG_VERSION:=1.2 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.spreadspace.org/tcpproxy/releases/ @@ -51,7 +51,6 @@ define Build/Configure echo '#define TCPPROXY_config_h_INCLUDED' >> config.h; \ echo '' >> config.h; \ echo '#define VERSION_STRING_0 "tcpproxy version '`cat $(PKG_BUILD_DIR)/version`'"' >> config.h; \ - echo '#define VERSION_STRING_1 "built on '`hostname`', '`date +"%d.%m.%Y %H:%M:%S %Z"`'"' >> config.h; \ echo '' >> config.h; \ echo '#define TARGET "linux"' >> config.h; \ echo '#define PREFIX "/usr"' >> config.h; \ diff --git a/net/tcpproxy/patches/100-remove-build-timestamps-build-hostname.patch b/net/tcpproxy/patches/100-remove-build-timestamps-build-hostname.patch new file mode 100644 index 0000000000..363ea27f65 --- /dev/null +++ b/net/tcpproxy/patches/100-remove-build-timestamps-build-hostname.patch @@ -0,0 +1,40 @@ +Index: tcpproxy-1.2/src/configure +=================================================================== +--- tcpproxy-1.2.orig/src/configure 2017-12-03 13:12:34.483712208 +0100 ++++ tcpproxy-1.2/src/configure 2017-12-03 13:13:56.677386919 +0100 +@@ -195,9 +195,6 @@ + fi + fi + +-HOSTNAME=`hostname` +-DATE=`date +"%d.%m.%Y %H:%M:%S %Z"` +- + cat > config.h <