From 4e500f91dd79c2982c185bc047d9c1d19121de9b Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 3 Dec 2017 05:42:28 +0100 Subject: [PATCH] open-plc-utils: remove build timestamp Build timestamps prevent reproducible builds [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- utils/open-plc-utils/Makefile | 4 +- .../patches/100-remove-build-timestamp.patch | 37 +++++++++++++++++++ 2 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 utils/open-plc-utils/patches/100-remove-build-timestamp.patch diff --git a/utils/open-plc-utils/Makefile b/utils/open-plc-utils/Makefile index 2123502c09..092025ec91 100644 --- a/utils/open-plc-utils/Makefile +++ b/utils/open-plc-utils/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=open-plc-utils -PKG_VERSION:=2017-01-15 +PKG_VERSION:=2017-12-03 PKG_RELEASE:=$(PKG_SOURCE_VERSION) PKG_SOURCE_PROTO:=git @@ -16,7 +16,7 @@ PKG_SOURCE_URL:=https://github.com/qca/open-plc-utils.git PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE_VERSION:=18b7e2a9a17f043fe8ac8b457680aafb1c249c55 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz -PKG_MIRROR_HASH:=fd898954f3a7f4f1f1b02a61b748546d648e323642c004353aeb4b337dbaa5dc +PKG_MIRROR_HASH:=8ccbee8a6eb9a9be97bab74e02033cdb57456ae5f78fd3b19a3661352b89e259 PKG_MAINTAINER:=Florian Fainelli diff --git a/utils/open-plc-utils/patches/100-remove-build-timestamp.patch b/utils/open-plc-utils/patches/100-remove-build-timestamp.patch new file mode 100644 index 0000000000..57d5eeeaa7 --- /dev/null +++ b/utils/open-plc-utils/patches/100-remove-build-timestamp.patch @@ -0,0 +1,37 @@ +Index: open-plc-utils-2017-01-15/docbook/version.h.html +=================================================================== +--- open-plc-utils-2017-01-15.orig/docbook/version.h.html 2017-01-13 19:44:27.000000000 +0100 ++++ open-plc-utils-2017-01-15/docbook/version.h.html 2017-12-03 03:46:31.119387280 +0100 +@@ -40,7 +40,6 @@ + #define PROJECT "open-plc-utils" + #define VERSION "0.0.6" + #define RELEASE "OSRQCA-929" +-#define COMPILE __TIME__ " " __DATE__ + #define CONTACT "cmaier@qca.qualcomm.com" + #define LICENSE "Clear BSD" + +Index: open-plc-utils-2017-01-15/tools/version.c +=================================================================== +--- open-plc-utils-2017-01-15.orig/tools/version.c 2017-01-13 19:44:27.000000000 +0100 ++++ open-plc-utils-2017-01-15/tools/version.c 2017-12-03 03:45:57.358690651 +0100 +@@ -30,7 +30,6 @@ + printf (RELEASE " "); + printf ("ISO C "); +- printf (COMPANY " "); ++ printf (COMPANY "\n"); +- printf (COMPILE "\n"); + return; + } + +Index: open-plc-utils-2017-01-15/tools/version.h +=================================================================== +--- open-plc-utils-2017-01-15.orig/tools/version.h 2017-01-13 19:44:27.000000000 +0100 ++++ open-plc-utils-2017-01-15/tools/version.h 2017-12-03 03:46:08.902929217 +0100 +@@ -20,7 +20,6 @@ + #define PROJECT "open-plc-utils" + #define VERSION "0.0.6" + #define RELEASE "OSRQCA-929" +-#define COMPILE __TIME__ " " __DATE__ + #define CONTACT "https://github.com/qca/open-plc-utils" + #define LICENSE "Clear BSD" +