From 0d1becc2e958f92b36d98e147f7623d0831bedbb8fe8f05a16203e040bc15db5 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Mon, 30 Jan 2017 09:45:32 +0000 Subject: [PATCH] Accepting request 451880 from home:bmwiedemann:branches:Base:System Add reproducible.patch to allow for reproducible builds OBS-URL: https://build.opensuse.org/request/show/451880 OBS-URL: https://build.opensuse.org/package/show/Base:System/mawk?expand=0&rev=18 --- mawk.changes | 5 +++++ mawk.spec | 5 ++++- reproducible.patch | 13 +++++++++++++ 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 reproducible.patch diff --git a/mawk.changes b/mawk.changes index 0d5d135..fd24e46 100644 --- a/mawk.changes +++ b/mawk.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Jan 23 04:57:42 UTC 2017 - bwiedemann@suse.com + +- Add reproducible.patch to allow for reproducible builds + ------------------------------------------------------------------- Mon Nov 9 23:13:17 UTC 2015 - p.drouand@gmail.com diff --git a/mawk.spec b/mawk.spec index 59ed354..58e06f9 100644 --- a/mawk.spec +++ b/mawk.spec @@ -1,7 +1,7 @@ # # spec file for package mawk # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 Guido Berhoerster. # # All modifications and additions to the file contributed by third parties @@ -29,6 +29,8 @@ Url: http://invisible-island.net/mawk/mawk.html Source0: ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz Source1: ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc Source2: %{name}.keyring +# PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare +Patch0: reproducible.patch BuildRequires: update-alternatives Requires(post): update-alternatives Requires(preun): update-alternatives @@ -43,6 +45,7 @@ provides a small number of extensions. %prep %setup -q -n mawk-%{_upver}-%{_datever} +%patch0 -p1 chmod 755 examples/* %build diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..eb89952 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +Index: mawk-1.3.4-20150503/makescan.c +=================================================================== +--- mawk-1.3.4-20150503.orig/makescan.c ++++ mawk-1.3.4-20150503/makescan.c +@@ -96,7 +96,7 @@ scan_print(void) + register int r; /* row */ + + printf("/*\n * %cMawkId%c\n * generated by makescan.c\n * date: %s */\n", +- '$', '$', ctime(&now)); ++ '$', '$', "Sun Jan 1 00:00:01 2017"); + printf("#include \"scancode.h\"\n"); + printf("/* *INDENT-OFF* */\n"); + printf("char scan_code[256] = {\n");