From a6d437c40e515a9a960d4c72c531ef838a70490a Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Fri, 17 Nov 2017 03:38:59 +0100 Subject: [PATCH] horst: remove build time to fix reproducible builds Build timestamp are not reproducible [0]. [0] https://reproducible-builds.org/docs/timestamps/ Signed-off-by: Alexander Couzens --- net/horst/Makefile | 2 +- .../patches/0001-reproducible-builds.patch | 26 +++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 net/horst/patches/0001-reproducible-builds.patch diff --git a/net/horst/Makefile b/net/horst/Makefile index c18e7454e2..6805199e51 100644 --- a/net/horst/Makefile +++ b/net/horst/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=horst PKG_VERSION:=5.1 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://github.com/br101/horst/archive/v$(PKG_VERSION)/ diff --git a/net/horst/patches/0001-reproducible-builds.patch b/net/horst/patches/0001-reproducible-builds.patch new file mode 100644 index 0000000000..541d16f745 --- /dev/null +++ b/net/horst/patches/0001-reproducible-builds.patch @@ -0,0 +1,26 @@ +Index: horst-5.1/conf_options.c +=================================================================== +--- horst-5.1.orig/conf_options.c ++++ horst-5.1/conf_options.c +@@ -519,7 +519,7 @@ void config_parse_file_and_cmdline(int a + conf_filename = optarg; + break; + case 'v': +- printf("%s (build date: %s %s)\n", VERSION, __DATE__, __TIME__); ++ printf("%s\n", VERSION); + exit(0); + case 'h': + case '?': +Index: horst-5.1/display-help.c +=================================================================== +--- horst-5.1.orig/display-help.c ++++ horst-5.1/display-help.c +@@ -36,7 +36,7 @@ void update_help_win(WINDOW *win) + print_centered(win, 2, COLS, "HORST - Horsts OLSR Radio Scanning Tool (or)"); + print_centered(win, 3, COLS, "HORST - Highly Optimized Radio Scanning Tool"); + +- print_centered(win, 5, COLS, "Version " VERSION " (build date " __DATE__ " " __TIME__ ")"); ++ print_centered(win, 5, COLS, "Version " VERSION); + print_centered(win, 6, COLS, "(C) 2005-2016 Bruno Randolf, Licensed under the GPLv2"); + + mvwprintw(win, 8, 2, "Known IEEE802.11 Packet Types:");