Excerpt from bison 3.0 NEWS file:
*** Obsolete features
'''Support for YYLEX_PARAM and YYPARSE_PARAM is removed''' (deprecated in Bison
1.875): use %lex-param, %parse-param, or %param.
--- /dev/null
+--- ruby-1.9.3-p448/parse.y~ 2013-04-11 04:21:43.000000000 +0200
++++ ruby-1.9.3-p448/parse.y 2013-08-18 20:36:49.832045588 +0200
+@@ -277,8 +277,6 @@
+ static int parser_yyerror(struct parser_params*, const char*);
+ #define yyerror(msg) parser_yyerror(parser, (msg))
+
+-#define YYLEX_PARAM parser
+-
+ #define lex_strterm (parser->parser_lex_strterm)
+ #define lex_state (parser->parser_lex_state)
+ #define cond_stack (parser->parser_cond_stack)
+@@ -610,7 +608,8 @@
+ #endif
+ %}
+
+-%pure_parser
++%pure-parser
++%lex-param {struct parser_params *parser}
+ %parse-param {struct parser_params *parser}
+
+ %union {
%bcond_without batteries # Don't include rubygems, json, rake, minitest
%bcond_with bootstrap # build bootstrap version
-%define rel 1
+%define rel 1
%define ruby_version 1.9
%define basever 1.9.3
%define patchlevel 448
# Make mkmf verbose by default
Patch6: mkmf-verbose.patch
Patch7: strip-ccache.patch
+Patch8: bison3.patch
URL: http://www.ruby-lang.org/
BuildRequires: autoconf >= 2.60
BuildRequires: automake
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
# must be regenerated with new bison
%{__rm} parse.{c,h}