From 8be6ba40bc749d4b1b12ad28fc88a28312b6b9b74e43a69b2370f222d27b1313 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 5 Jan 2015 12:38:33 +0000 Subject: [PATCH] Accepting request 267269 from home:mlin7442:branches:devel:tools:compiler fix tests with bison3 OBS-URL: https://build.opensuse.org/request/show/267269 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/flex?expand=0&rev=16 --- flex-compatible-with-bison3.patch | 54 +++++++++++++++++++++++++++++++ flex.changes | 6 ++++ flex.spec | 9 ++++-- 3 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 flex-compatible-with-bison3.patch diff --git a/flex-compatible-with-bison3.patch b/flex-compatible-with-bison3.patch new file mode 100644 index 0000000..def7ef9 --- /dev/null +++ b/flex-compatible-with-bison3.patch @@ -0,0 +1,54 @@ +--- flex-2.5.37.orig/tests/test-bison-yylloc/parser.y ++++ flex-2.5.37/tests/test-bison-yylloc/parser.y +@@ -22,6 +22,7 @@ + */ + + %parse-param { void* scanner } ++%lex-param { void* scanner } + + /* + How to compile: +@@ -34,7 +35,6 @@ + #include "config.h" + + #define YYERROR_VERBOSE 1 +-#define YYLEX_PARAM scanner + + extern int testget_lineno(void*); + +@@ -52,7 +52,7 @@ int process_text(char* s) { + + %} + +-%pure_parser ++%pure-parser + + %union { + int lineno; +--- flex-2.5.37.orig/tests/test-bison-yylval/parser.y ++++ flex-2.5.37/tests/test-bison-yylval/parser.y +@@ -26,6 +26,7 @@ + bison --defines --output-file="parser.c" --name-prefix="test" parser.y + */ + %parse-param { void* scanner } ++%lex-param { void* scanner } + %{ + #include + #include +@@ -33,7 +34,6 @@ + #include "config.h" + + #define YYERROR_VERBOSE 1 +-#define YYLEX_PARAM scanner + + + /* A dummy function. A check against seg-faults in yylval->str. */ +@@ -49,7 +49,7 @@ int process_text(char* s) { + + %} + +-%pure_parser ++%pure-parser + + %union { + long unused; diff --git a/flex.changes b/flex.changes index 0baaf1d..fa5c0ab 100644 --- a/flex.changes +++ b/flex.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jan 5 11:35:08 UTC 2015 - mlin@suse.com + +- Add flex-compatible-with-bison3.patch + * fix tests with bison3, see http://sourceforge.net/p/flex/flex/ci/c376be574e99b5f64a7dad71cfc7c0b1f71b747b/ + ------------------------------------------------------------------- Mon Feb 18 16:51:32 UTC 2013 - schwab@suse.de diff --git a/flex.spec b/flex.spec index 9bc727f..90cb9a4 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ # # spec file for package flex # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -44,7 +44,9 @@ Patch1: flex-2.5.34-fPIC.patch Patch2: flex-2.5.37-notex.patch # PATCH-FIX-UPSTREAM fix tests for new bison Patch3: http://www.linuxfromscratch.org/patches/lfs/7.2/flex-2.5.37-bison-2.6.1-1.patch -Patch4: config-guess-sub-update.patch +# PATCH-FIX-UPSTREAM flex-2.5.37-bison3.patch mlin@suse.com - fix tests for bison3 +Patch4: flex-compatible-with-bison3.patch +Patch5: config-guess-sub-update.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -56,7 +58,8 @@ patterns in text. %patch1 %patch2 -p1 %patch3 -p1 -%patch4 +%patch4 -p1 +%patch5 %build autoreconf -fi