Gentoo Archives: gentoo-commits

From: "Lars Wendler (polynomial-c)" <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-libs/gstreamer/files: gstreamer-make-grammar.y-work-with-bison-3.patch
Date: Tue, 29 Apr 2014 07:02:10
Message-Id: 20140429070204.904642004C@flycatcher.gentoo.org
1 polynomial-c 14/04/29 07:02:04
2
3 Added: gstreamer-make-grammar.y-work-with-bison-3.patch
4 Log:
5 Fix compilation with >=sys-devel/bison-3.0 (bug #478676)
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC)
8
9 Revision Changes Path
10 1.1 media-libs/gstreamer/files/gstreamer-make-grammar.y-work-with-bison-3.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gstreamer/files/gstreamer-make-grammar.y-work-with-bison-3.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-libs/gstreamer/files/gstreamer-make-grammar.y-work-with-bison-3.patch?rev=1.1&content-type=text/plain
14
15 Index: gstreamer-make-grammar.y-work-with-bison-3.patch
16 ===================================================================
17 From 90622bb35544655cf641e3ab65cf35a6d01869bc Mon Sep 17 00:00:00 2001
18 From: Kerrick Staley <kerrick@×××××××××××××.com>
19 Date: Tue, 20 Aug 2013 23:59:29 -0700
20 Subject: [PATCH] Make grammar.y work with Bison 3
21
22 YYLEX_PARAM is no longer supported in Bison 3.
23 ---
24 gst/parse/grammar.y | 2 +-
25 1 file changed, 1 insertion(+), 1 deletion(-)
26
27 diff --git a/gst/parse/grammar.y b/gst/parse/grammar.y
28 index 8a9019c..f533389 100644
29 --- a/gst/parse/grammar.y
30 +++ b/gst/parse/grammar.y
31 @@ -26,7 +26,6 @@
32 */
33
34 #define YYERROR_VERBOSE 1
35 -#define YYLEX_PARAM scanner
36
37 #define YYENABLE_NLS 0
38
39 @@ -659,6 +658,7 @@ static int yyerror (void *scanner, graph_t *graph, const char *s);
40 %right '.'
41 %left '!' '='
42
43 +%lex-param { void *scanner }
44 %parse-param { void *scanner }
45 %parse-param { graph_t *graph }
46 %pure-parser
47 --
48 1.8.3.4