SHA256
1
0
forked from pool/mawk

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
This commit is contained in:
Marcus Meissner 2017-01-30 09:45:32 +00:00 committed by Git OBS Bridge
parent 54c55f6ed5
commit 0d1becc2e9
3 changed files with 22 additions and 1 deletions

View File

@ -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 Mon Nov 9 23:13:17 UTC 2015 - p.drouand@gmail.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package mawk # 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. # Copyright (c) 2010 Guido Berhoerster.
# #
# All modifications and additions to the file contributed by third parties # 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 Source0: ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz
Source1: ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc Source1: ftp://invisible-island.net/mawk/mawk-%{_upver}-%{_datever}.tgz.asc
Source2: %{name}.keyring Source2: %{name}.keyring
# PATCH-FIX-OPENSUSE -- bmwiedemann -- drop timestamp / for build-compare
Patch0: reproducible.patch
BuildRequires: update-alternatives BuildRequires: update-alternatives
Requires(post): update-alternatives Requires(post): update-alternatives
Requires(preun): update-alternatives Requires(preun): update-alternatives
@ -43,6 +45,7 @@ provides a small number of extensions.
%prep %prep
%setup -q -n mawk-%{_upver}-%{_datever} %setup -q -n mawk-%{_upver}-%{_datever}
%patch0 -p1
chmod 755 examples/* chmod 755 examples/*
%build %build

13
reproducible.patch Normal file
View File

@ -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");