SHA256
3
0
forked from pool/flex

Accepting request 267271 from devel:tools:compiler

1

OBS-URL: https://build.opensuse.org/request/show/267271
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/flex?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2015-01-08 22:01:02 +00:00 committed by Git OBS Bridge
commit da58f67f41
3 changed files with 66 additions and 3 deletions

View File

@ -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 <stdio.h>
#include <stdlib.h>
@@ -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;

View File

@ -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 Mon Feb 18 16:51:32 UTC 2013 - schwab@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package flex # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # 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 Patch2: flex-2.5.37-notex.patch
# PATCH-FIX-UPSTREAM fix tests for new bison # 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 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 BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
@ -56,7 +58,8 @@ patterns in text.
%patch1 %patch1
%patch2 -p1 %patch2 -p1
%patch3 -p1 %patch3 -p1
%patch4 %patch4 -p1
%patch5
%build %build
autoreconf -fi autoreconf -fi