[packages/gstreamer0.10] - fix building with bison3

baggins baggins at pld-linux.org
Tue Dec 30 08:08:56 CET 2014


commit 8916cbff30f795b2b1a1e0448cb11ec51fbc8d20
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Dec 30 07:08:44 2014 +0000

    - fix building with bison3

 bison3.patch       | 31 +++++++++++++++++++++++++++++++
 gstreamer0.10.spec |  2 ++
 2 files changed, 33 insertions(+)
---
diff --git a/gstreamer0.10.spec b/gstreamer0.10.spec
index f2383cb..8c07e0b 100644
--- a/gstreamer0.10.spec
+++ b/gstreamer0.10.spec
@@ -10,6 +10,7 @@ Source0:	http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar
 Patch0:		gstreamer-without_ps_pdf.patch
 Patch1:		gstreamer-eps.patch
 Patch2:		gstreamer-inspect-rpm-format.patch
+Patch3:		bison3.patch
 URL:		http://gstreamer.net/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake >= 1:1.11
@@ -105,6 +106,7 @@ Dokumentacja API Gstreamera.
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 %build
 # po/Makefile.in.in is modified
diff --git a/bison3.patch b/bison3.patch
new file mode 100644
index 0000000..f569b1d
--- /dev/null
+++ b/bison3.patch
@@ -0,0 +1,31 @@
+From 60516f4798894f958fc53b470e1283318d0f8706 Mon Sep 17 00:00:00 2001
+From: Kerrick Staley <kerrick at kerrickstaley.com>
+Date: Wed, 21 Aug 2013 06:59:29 +0000
+Subject: parse: make grammar.y work with Bison 3
+
+YYLEX_PARAM is no longer supported in Bison 3.
+
+https://bugzilla.gnome.org/show_bug.cgi?id=706462
+---
+diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
+index 24fc87b..7f9dd16 100644
+--- a/gst/parse/grammar.y
++++ b/gst/parse/grammar.y
+@@ -26,7 +26,6 @@
+  */
+ 
+ #define YYERROR_VERBOSE 1
+-#define YYLEX_PARAM scanner
+ 
+ #define YYENABLE_NLS 0
+ 
+@@ -648,6 +647,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s);
+ %right '.'
+ %left '!' '='
+ 
++%lex-param { void *scanner }
+ %parse-param { void *scanner }
+ %parse-param { graph_t *graph }
+ %pure-parser
+--
+cgit v0.9.0.2-2-gbebe
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gstreamer0.10.git/commitdiff/8916cbff30f795b2b1a1e0448cb11ec51fbc8d20



More information about the pld-cvs-commit mailing list