summaryrefslogtreecommitdiff
path: root/libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch
diff options
context:
space:
mode:
authorDavid Spencer <baildon.research@googlemail.com>2015-05-28 20:14:30 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-01-17 09:40:16 +0700
commit3d820728f46a0f4914c03a585ce0c1da885a9e4c (patch)
tree4de4d3d22d5bfba47f0d6bb3462db0298ae1a935 /libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch
parentbed8d857f8e44718904295cf7c491aab26fc6e7a (diff)
downloadslackbuilds-3d820728f46a0f4914c03a585ce0c1da885a9e4c.tar.gz
libraries/libgnomeprint: Patched to fix build on -current.
Signed-off-by: David Spencer <baildon.research@googlemail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch')
-rw-r--r--libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch39
1 files changed, 39 insertions, 0 deletions
diff --git a/libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch b/libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch
new file mode 100644
index 0000000000..d9fbbdd84f
--- /dev/null
+++ b/libraries/libgnomeprint/libgnomeprint-2.18.8-bison3.patch
@@ -0,0 +1,39 @@
+http://git.pld-linux.org/gitweb.cgi?p=packages/libgnomeprint.git;a=blob;f=bison3.patch
+
+--- libgnomeprint-2.18.8/libgnomeprint/grammar.y.orig 2010-02-09 13:32:51.000000000 +0100
++++ libgnomeprint-2.18.8/libgnomeprint/grammar.y 2013-11-03 21:44:59.859877696 +0100
+@@ -6,8 +6,6 @@
+ #include <libgnomeprint/types.h>
+ #include <libgnomeprint/gnome-print-filter.h>
+
+-#define YYPARSE_PARAM graph
+-
+ static void
+ set_value_from_string (GParamSpec *pspec, GValue *v, const gchar *s)
+ {
+@@ -99,7 +97,7 @@
+ }
+
+ static int yylex (void *lvalp);
+-static int yyerror (const char *s);
++static int yyerror (graph_t *g, const char *s);
+ %}
+
+ %union {
+@@ -117,6 +115,7 @@
+ %type <p> pool
+
+ %pure_parser
++%parse-param { graph_t *graph }
+
+ %start graph
+ %%
+@@ -185,7 +184,7 @@
+ %%
+
+ static int
+-yyerror (const char *s)
++yyerror (graph_t *g, const char *s)
+ {
+ return -1;
+ }