From 356dd4ff79e9a83e6757d1d6cbc681ca4fe34004 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Wed, 6 Dec 2017 23:41:43 +0100 Subject: [PATCH] lcdproc: remove build timestamp Build timestamp prevents reproducible builds [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- utils/lcdproc/Makefile | 2 +- .../patches/100-remove-build-timestamp.patch | 35 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 utils/lcdproc/patches/100-remove-build-timestamp.patch diff --git a/utils/lcdproc/Makefile b/utils/lcdproc/Makefile index ff7d6aaf7..0260cf4a4 100644 --- a/utils/lcdproc/Makefile +++ b/utils/lcdproc/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=lcdproc PKG_VERSION:=0.5.9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/lcdproc/lcdproc/releases/download/v$(PKG_VERSION)/ diff --git a/utils/lcdproc/patches/100-remove-build-timestamp.patch b/utils/lcdproc/patches/100-remove-build-timestamp.patch new file mode 100644 index 000000000..33f2c5707 --- /dev/null +++ b/utils/lcdproc/patches/100-remove-build-timestamp.patch @@ -0,0 +1,35 @@ +Index: lcdproc-0.5.9/clients/lcdproc/main.c +=================================================================== +--- lcdproc-0.5.9.orig/clients/lcdproc/main.c 2017-04-21 12:43:48.000000000 +0200 ++++ lcdproc-0.5.9/clients/lcdproc/main.c 2017-12-06 23:36:54.674753530 +0100 +@@ -58,7 +58,6 @@ + int sock = -1; + + char *version = VERSION; +-char *build_date = __DATE__; + + int lcd_wid = 0; + int lcd_hgt = 0; +Index: lcdproc-0.5.9/server/main.c +=================================================================== +--- lcdproc-0.5.9.orig/server/main.c 2017-04-24 22:17:15.000000000 +0200 ++++ lcdproc-0.5.9/server/main.c 2017-12-06 23:36:47.550605856 +0100 +@@ -104,7 +104,6 @@ + char *version = VERSION; + char *protocol_version = PROTOCOL_VERSION; + char *api_version = API_VERSION; +-char *build_date = __DATE__; + + + /**** Configuration variables ****/ +@@ -197,8 +196,8 @@ + + /* Report that server is starting (report will be delayed) */ + report(RPT_NOTICE, "LCDd version %s starting", version); +- report(RPT_INFO, "Built on %s, protocol version %s, API version %s", +- build_date, protocol_version, api_version); ++ report(RPT_INFO, "Protocol version %s, API version %s", ++ protocol_version, api_version); + + clear_settings(); +