[packages/grok] - added len type fix/update to gperf patch - added bison patch (fixes for bison 3.6.x)

qboosh qboosh at pld-linux.org
Tue Jun 2 19:22:18 CEST 2020


commit e6bd7f110becacdf2daa280ff89ce7548ed5b511
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jun 2 19:22:56 2020 +0200

    - added len type fix/update to gperf patch
    - added bison patch (fixes for bison 3.6.x)

 grok-bison.patch | 35 +++++++++++++++++++++++++++++++++++
 grok-gperf.patch | 10 ++++++++++
 grok.spec        |  2 ++
 3 files changed, 47 insertions(+)
---
diff --git a/grok.spec b/grok.spec
index a9e10b4..8ee2f54 100644
--- a/grok.spec
+++ b/grok.spec
@@ -12,6 +12,7 @@ Group:		Libaries
 Source0:	https://github.com/jordansissel/grok/archive/%{gitref}/%{name}-%{snap}.tar.gz
 # Source0-md5:	1d09b3aa6ebac202680227faa26e742e
 Patch0:		%{name}-gperf.patch
+Patch1:		%{name}-bison.patch
 URL:		https://github.com/jordansissel/grok
 BuildRequires:	bison
 BuildRequires:	flex
@@ -48,6 +49,7 @@ Pliki nagłówkowe do tworzenia programów z użyciem biblioteki grok.
 %prep
 %setup -q -n %{name}-%{gitref}
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__make} \
diff --git a/grok-bison.patch b/grok-bison.patch
new file mode 100644
index 0000000..7d16bc5
--- /dev/null
+++ b/grok-bison.patch
@@ -0,0 +1,35 @@
+--- grok-a52f42b1fa359db2145a70216ec5b4ef43d57b5c/conf.y.orig	2020-06-02 17:16:54.505830255 +0200
++++ grok-a52f42b1fa359db2145a70216ec5b4ef43d57b5c/conf.y	2020-06-02 18:34:09.336057711 +0200
+@@ -2,10 +2,9 @@
+ #include <stdio.h>
+ #include <string.h>
+ 
+-#include "conf.tab.h"
+ #include "grok_config.h"
+ #include "grok_input.h"
+ #include "grok_matchconf.h"
++#include "conf.tab.h"
+ 
+-int yylineno;
+ void yyerror (YYLTYPE *loc, struct config *conf, char const *s) {
+@@ -49,9 +49,9 @@
+ 
+ %token '{' '}' ';' ':' '\n'
+ 
+-%pure-parser
++%define api.pure
++%define parse.error verbose
+ %parse-param {struct config *conf}
+-%error-verbose
+ %locations
+ 
+ %start config
+@@ -128,7 +128,7 @@
+            | match_block_statement
+ 
+ match_block_statement: /* empty */
+-           | "pattern" ':' QUOTEDSTRING { conf_new_match_pattern(conf, $3) }
++           | "pattern" ':' QUOTEDSTRING { conf_new_match_pattern(conf, $3); }
+            | "reaction" ':' QUOTEDSTRING { CURMATCH.reaction = $3; }
+            | "reaction" ':' "none" { CURMATCH.no_reaction = 1; }
+            | "shell" ':' QUOTEDSTRING { CURMATCH.shell = $3; }
diff --git a/grok-gperf.patch b/grok-gperf.patch
index c67e7e9..425390e 100644
--- a/grok-gperf.patch
+++ b/grok-gperf.patch
@@ -9,3 +9,13 @@
  		echo "We require gperf version >= 3.0.3" ; \
  		exit 1; \
  	fi
+--- grok-a52f42b1fa359db2145a70216ec5b4ef43d57b5c/grok_matchconf_macro.h.orig	2017-07-20 23:49:31.000000000 +0200
++++ grok-a52f42b1fa359db2145a70216ec5b4ef43d57b5c/grok_matchconf_macro.h	2020-06-02 17:11:27.029325821 +0200
+@@ -19,6 +19,6 @@
+ #endif
+ 
+ /* this function is generated by gperf */
+-const struct strmacro *patname2macro(const char *str, unsigned int len);
++const struct strmacro *patname2macro(const char *str, size_t len);
+ 
+ #endif /* _GROK_MATCHCONF_MACRO_ */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/grok.git/commitdiff/e6bd7f110becacdf2daa280ff89ce7548ed5b511



More information about the pld-cvs-commit mailing list