From 758aa395c617551411f0a4cf37e7e3b4198103c6 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 13 Jul 2010 15:57:53 +0000 Subject: [PATCH 01/72] - Declare yyget_column and yyset_column in reentrant mode. - Resolves: #612465 --- flex-2.5.35-missing-prototypes.patch | 28 ++++++++++++++++++++++++++++ flex.spec | 8 +++++++- 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 flex-2.5.35-missing-prototypes.patch diff --git a/flex-2.5.35-missing-prototypes.patch b/flex-2.5.35-missing-prototypes.patch new file mode 100644 index 0000000..3cd53e7 --- /dev/null +++ b/flex-2.5.35-missing-prototypes.patch @@ -0,0 +1,28 @@ +diff -up flex-2.5.35/flex.skl\~ flex-2.5.35/flex.skl +--- flex-2.5.35/flex.skl~ 2010-07-13 17:18:43.000000000 +0200 ++++ flex-2.5.35/flex.skl 2010-07-13 17:23:49.000000000 +0200 +@@ -960,6 +960,22 @@ m4_ifdef( [[M4_YY_NO_SET_LINENO]],, + void yyset_lineno M4_YY_PARAMS( int line_number M4_YY_PROTO_LAST_ARG ); + ]]) + ++m4_ifdef( [[M4_YY_REENTRANT]], ++[[ ++m4_ifdef( [[M4_YY_NO_GET_COLUMN]],, ++[[ ++int yyget_column M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG ); ++]]) ++]]) ++ ++m4_ifdef( [[M4_YY_REENTRANT]], ++[[ ++m4_ifdef( [[M4_YY_NO_SET_COLUMN]],, ++[[ ++void yyset_column M4_YY_PARAMS( int column_no M4_YY_PROTO_LAST_ARG ); ++]]) ++]]) ++ + %if-bison-bridge + m4_ifdef( [[M4_YY_NO_GET_LVAL]],, + [[ + +Diff finished. Tue Jul 13 17:27:50 2010 diff --git a/flex.spec b/flex.spec index 46b7fcc..fd18fea 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 9%{?dist} +Release: 10%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -9,6 +9,7 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Patch0: flex-2.5.35-sign.patch Patch1: flex-2.5.35-hardening.patch Patch2: flex-2.5.35-gcc44.patch +Patch3: flex-2.5.35-missing-prototypes.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -54,6 +55,7 @@ instead of implementing their own. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -107,6 +109,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Tue Jul 13 2010 Petr Machata - 2.5.35-10 +- Declare yyget_column and yyset_column in reentrant mode. +- Resolves: #612465 + * Wed Jan 20 2010 Petr Machata - 2.5.35-9 - Move libraries into a sub-package of their own. From 0e24cc19d337daac28cbdf67881d9f807f2ec4ea Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 14 Jul 2010 11:24:13 +0000 Subject: [PATCH 02/72] - Forgot that the changes in flex.skl won't propagate to skel.c - Resolves: #612465 --- flex-2.5.35-missing-prototypes.patch | 25 +++++++++++++++++++++++++ flex.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/flex-2.5.35-missing-prototypes.patch b/flex-2.5.35-missing-prototypes.patch index 3cd53e7..5cde066 100644 --- a/flex-2.5.35-missing-prototypes.patch +++ b/flex-2.5.35-missing-prototypes.patch @@ -26,3 +26,28 @@ diff -up flex-2.5.35/flex.skl\~ flex-2.5.35/flex.skl [[ Diff finished. Tue Jul 13 17:27:50 2010 +--- flex-2.5.35/skel.c~ 2010-07-14 13:15:42.000000000 +0200 ++++ flex-2.5.35/skel.c 2010-07-14 13:16:05.000000000 +0200 +@@ -1027,6 +1027,22 @@ + "void yyset_lineno M4_YY_PARAMS( int line_number M4_YY_PROTO_LAST_ARG );", + "]])", + "", ++ "m4_ifdef( [[M4_YY_REENTRANT]],", ++ "[[", ++ "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,", ++ "[[", ++ "int yyget_column M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );", ++ "]])", ++ "]])", ++ "", ++ "m4_ifdef( [[M4_YY_REENTRANT]],", ++ "[[", ++ "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,", ++ "[[", ++ "void yyset_column M4_YY_PARAMS( int column_no M4_YY_PROTO_LAST_ARG );", ++ "]])", ++ "]])", ++ "", + "%if-bison-bridge", + "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,", + "[[", diff --git a/flex.spec b/flex.spec index fd18fea..8c05a1b 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 10%{?dist} +Release: 11%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -109,6 +109,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Wed Jul 14 2010 Petr Machata - 2.5.35-11 +- Forgot that the changes in flex.skl won't propagate to skel.c +- Resolves: #612465 + * Tue Jul 13 2010 Petr Machata - 2.5.35-10 - Declare yyget_column and yyset_column in reentrant mode. - Resolves: #612465 From 12773fc12dbc5fa519a0d8574dbd0a64cd7b2f72 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 28 Jul 2010 14:33:43 +0000 Subject: [PATCH 03/72] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- 2 files changed, 21 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 043f5d8..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: flex -# $Id: Makefile,v 1.2 2007/10/15 18:45:30 notting Exp $ -NAME := flex -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attempt a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) From d6e92f36f38991d55644b96faf455c3bc1332c65 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 17 Aug 2010 15:15:12 +0200 Subject: [PATCH 04/72] Drop the dependency of core package on flex-static --- flex.spec | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/flex.spec b/flex.spec index 8c05a1b..5fa8b2e 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 11%{?dist} +Release: 12%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -16,14 +16,6 @@ BuildRequires: gettext bison m4 Requires(post): /sbin/install-info Requires(preun): /sbin/install-info -# We need to pull in the static library package. That's necessary so -# that packages that just do BuildRequires: flex can still use -lfl. -# I suspect that linking to -lfl is actually rare and those (few) -# packages that do use it could be taught to require the sub-package -# explicitly. So at some point in future, this dependency may be -# dropped. -Requires: flex-static = %{version} - %description The flex program generates scanners. Scanners are programs which can recognize lexical patterns in text. Flex takes pairs of regular @@ -109,6 +101,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Tue Aug 17 2010 Petr Machata - 2.5.35-12 +- Drop the dependency of core package on flex-static. +- Resolves: #624549 + * Wed Jul 14 2010 Petr Machata - 2.5.35-11 - Forgot that the changes in flex.skl won't propagate to skel.c - Resolves: #612465 From bcf541bebd60cf6d6ee781da1b006c8cf6cd2d6b Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Tue, 8 Feb 2011 14:29:49 -0600 Subject: [PATCH 05/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 5fa8b2e..41379ff 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 12%{?dist} +Release: 13%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -101,6 +101,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Tue Feb 08 2011 Fedora Release Engineering - 2.5.35-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + * Tue Aug 17 2010 Petr Machata - 2.5.35-12 - Drop the dependency of core package on flex-static. - Resolves: #624549 From 6feae83743f6cbb0f0670a8ce42a0f2ccce729ee Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Thu, 12 Jan 2012 20:31:31 -0600 Subject: [PATCH 06/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 41379ff..88c81db 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 13%{?dist} +Release: 14%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -101,6 +101,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Fri Jan 13 2012 Fedora Release Engineering - 2.5.35-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + * Tue Feb 08 2011 Fedora Release Engineering - 2.5.35-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild From f936739e357e8d64d81aecd41abe10052cbdc9ca Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 12 Mar 2012 20:30:02 +0100 Subject: [PATCH 07/72] Update .gitignore --- .gitignore | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitignore b/.gitignore index 4f868b4..da4a7e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ flex-2.5.35.tar.bz2 +/flex*/ +*.rpm From 0763a46cf77c92babb11cdc7e5587a36d715650c Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 12 Mar 2012 20:38:15 +0100 Subject: [PATCH 08/72] Rename flex-static to flex-devel - flex-static is still provided for backward compatibility in BuildRequires - Resolves: #674301 --- flex.spec | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/flex.spec b/flex.spec index 88c81db..44a7a04 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 14%{?dist} +Release: 15%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -32,11 +32,13 @@ application development. # We keep the libraries in separate sub-package to allow for multilib # installations of flex. -%package static +%package devel Summary: Libraries for flex scanner generator Group: Development/Tools +Obsoletes: flex-static < 2.5.35-15 +Provides: flex-static -%description static +%description devel This package contains the library with default implementations of `main' and `yywrap' functions that the client binary can choose to use @@ -96,11 +98,16 @@ rm -rf ${RPM_BUILD_ROOT} %{_includedir}/FlexLexer.h %{_infodir}/flex.info* -%files static +%files devel %defattr(-,root,root) %{_libdir}/*.a %changelog +* Mon Mar 12 2012 Petr Machata - 2.5.35-15 +- Rename flex-static to flex-devel so that it gets to repositories of + minor multi-lib arch (i386 on x86_64 etc.) +- Resolves: #674301 + * Fri Jan 13 2012 Fedora Release Engineering - 2.5.35-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild From 1d38037b36c3d121821ca7b770d0529bc8caba35 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 18 Jul 2012 21:37:48 -0500 Subject: [PATCH 09/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 44a7a04..0b6b831 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.35 -Release: 15%{?dist} +Release: 16%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -103,6 +103,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_libdir}/*.a %changelog +* Thu Jul 19 2012 Fedora Release Engineering - 2.5.35-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + * Mon Mar 12 2012 Petr Machata - 2.5.35-15 - Rename flex-static to flex-devel so that it gets to repositories of minor multi-lib arch (i386 on x86_64 etc.) From 9c353052ccd4265e05bacddf0f5609ded25a2435 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 1 Aug 2012 01:16:49 +0200 Subject: [PATCH 10/72] Rebase to 2.5.36 --- .gitignore | 1 + flex-2.5.35-gcc44.patch | 22 ------- flex-2.5.35-hardening.patch | 36 ----------- flex-2.5.35-missing-prototypes.patch | 53 ---------------- flex-2.5.35-sign.patch | 11 ---- flex-2.5.36-bison-2.6.1.patch | 92 ++++++++++++++++++++++++++++ flex.spec | 38 +++++++++--- sources | 2 +- 8 files changed, 122 insertions(+), 133 deletions(-) delete mode 100644 flex-2.5.35-gcc44.patch delete mode 100644 flex-2.5.35-hardening.patch delete mode 100644 flex-2.5.35-missing-prototypes.patch delete mode 100644 flex-2.5.35-sign.patch create mode 100644 flex-2.5.36-bison-2.6.1.patch diff --git a/.gitignore b/.gitignore index da4a7e7..241951b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ flex-2.5.35.tar.bz2 /flex*/ *.rpm +/flex-2.5.36.tar.bz2 diff --git a/flex-2.5.35-gcc44.patch b/flex-2.5.35-gcc44.patch deleted file mode 100644 index 7929fc0..0000000 --- a/flex-2.5.35-gcc44.patch +++ /dev/null @@ -1,22 +0,0 @@ -diff -urNp flex-2.5.35.orig/flex.skl flex-2.5.35/flex.skl ---- flex-2.5.35.orig/flex.skl 2009-04-20 03:09:46.000000000 +0530 -+++ flex-2.5.35/flex.skl 2009-04-20 07:46:58.000000000 +0530 -@@ -217,6 +217,7 @@ m4preproc_include(`flexint.h') - /* begin standard C++ headers. */ - #include - #include -+#include - #include - #include - /* end standard C++ headers. */ -diff -urNp flex-2.5.35.orig/skel.c flex-2.5.35/skel.c ---- flex-2.5.35.orig/skel.c 2009-04-20 03:09:46.000000000 +0530 -+++ flex-2.5.35/skel.c 2009-04-20 07:46:40.000000000 +0530 -@@ -284,6 +284,7 @@ const char *skel[] = { - "/* begin standard C++ headers. */", - "#include ", - "#include ", -+ "#include ", - "#include ", - "#include ", - "/* end standard C++ headers. */", diff --git a/flex-2.5.35-hardening.patch b/flex-2.5.35-hardening.patch deleted file mode 100644 index 7d608ea..0000000 --- a/flex-2.5.35-hardening.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -u flex-2.5.35/scan.c flex-2.5.35/scan.c ---- flex-2.5.35/scan.c -+++ flex-2.5.35/scan.c -@@ -2096,7 +2096,7 @@ - /* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ --#define ECHO fwrite( yytext, yyleng, 1, yyout ) -+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) - #endif - - /* Gets input and stuffs it into "buf". number of characters read, or YY_NULL, -diff -u flex-2.5.35/flex.skl flex-2.5.35/flex.skl ---- flex-2.5.35/flex.skl -+++ flex-2.5.35/flex.skl -@@ -1075,7 +1075,7 @@ - /* This used to be an fputs(), but since the string might contain NUL's, - * we now use fwrite(). - */ --#define ECHO fwrite( yytext, yyleng, 1, yyout ) -+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0) - %endif - %if-c++-only C++ definition - #define ECHO LexerOutput( yytext, yyleng ) -diff -u flex-2.5.35/skel.c flex-2.5.35/skel.c ---- flex-2.5.35/skel.c -+++ flex-2.5.35/skel.c -@@ -1142,7 +1142,7 @@ - "/* This used to be an fputs(), but since the string might contain NUL's,", - " * we now use fwrite().", - " */", -- "#define ECHO fwrite( yytext, yyleng, 1, yyout )", -+ "#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)", - "%endif", - "%if-c++-only C++ definition", - "#define ECHO LexerOutput( yytext, yyleng )", diff --git a/flex-2.5.35-missing-prototypes.patch b/flex-2.5.35-missing-prototypes.patch deleted file mode 100644 index 5cde066..0000000 --- a/flex-2.5.35-missing-prototypes.patch +++ /dev/null @@ -1,53 +0,0 @@ -diff -up flex-2.5.35/flex.skl\~ flex-2.5.35/flex.skl ---- flex-2.5.35/flex.skl~ 2010-07-13 17:18:43.000000000 +0200 -+++ flex-2.5.35/flex.skl 2010-07-13 17:23:49.000000000 +0200 -@@ -960,6 +960,22 @@ m4_ifdef( [[M4_YY_NO_SET_LINENO]],, - void yyset_lineno M4_YY_PARAMS( int line_number M4_YY_PROTO_LAST_ARG ); - ]]) - -+m4_ifdef( [[M4_YY_REENTRANT]], -+[[ -+m4_ifdef( [[M4_YY_NO_GET_COLUMN]],, -+[[ -+int yyget_column M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG ); -+]]) -+]]) -+ -+m4_ifdef( [[M4_YY_REENTRANT]], -+[[ -+m4_ifdef( [[M4_YY_NO_SET_COLUMN]],, -+[[ -+void yyset_column M4_YY_PARAMS( int column_no M4_YY_PROTO_LAST_ARG ); -+]]) -+]]) -+ - %if-bison-bridge - m4_ifdef( [[M4_YY_NO_GET_LVAL]],, - [[ - -Diff finished. Tue Jul 13 17:27:50 2010 ---- flex-2.5.35/skel.c~ 2010-07-14 13:15:42.000000000 +0200 -+++ flex-2.5.35/skel.c 2010-07-14 13:16:05.000000000 +0200 -@@ -1027,6 +1027,22 @@ - "void yyset_lineno M4_YY_PARAMS( int line_number M4_YY_PROTO_LAST_ARG );", - "]])", - "", -+ "m4_ifdef( [[M4_YY_REENTRANT]],", -+ "[[", -+ "m4_ifdef( [[M4_YY_NO_GET_COLUMN]],,", -+ "[[", -+ "int yyget_column M4_YY_PARAMS( M4_YY_PROTO_ONLY_ARG );", -+ "]])", -+ "]])", -+ "", -+ "m4_ifdef( [[M4_YY_REENTRANT]],", -+ "[[", -+ "m4_ifdef( [[M4_YY_NO_SET_COLUMN]],,", -+ "[[", -+ "void yyset_column M4_YY_PARAMS( int column_no M4_YY_PROTO_LAST_ARG );", -+ "]])", -+ "]])", -+ "", - "%if-bison-bridge", - "m4_ifdef( [[M4_YY_NO_GET_LVAL]],,", - "[[", diff --git a/flex-2.5.35-sign.patch b/flex-2.5.35-sign.patch deleted file mode 100644 index fbee18b..0000000 --- a/flex-2.5.35-sign.patch +++ /dev/null @@ -1,11 +0,0 @@ ---- flex-2.5.35/gen.c-orig 2008-04-30 22:51:08.000000000 +0200 -+++ flex-2.5.35/gen.c 2008-04-30 22:51:14.000000000 +0200 -@@ -1890,7 +1890,7 @@ - outn ("\tif ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \\"); - outn ("\t\t{ \\"); - outn ("\t\tint c = '*'; \\"); -- outn ("\t\tint n; \\"); -+ outn ("\t\tunsigned n; \\"); - outn ("\t\tfor ( n = 0; n < max_size && \\"); - outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); - outn ("\t\t\tbuf[n] = (char) c; \\"); diff --git a/flex-2.5.36-bison-2.6.1.patch b/flex-2.5.36-bison-2.6.1.patch new file mode 100644 index 0000000..a9e11aa --- /dev/null +++ b/flex-2.5.36-bison-2.6.1.patch @@ -0,0 +1,92 @@ +diff -up flex-2.5.36/tests/test-bison-yylloc/main.c~ flex-2.5.36/tests/test-bison-yylloc/main.c +--- flex-2.5.36/tests/test-bison-yylloc/main.c~ 2002-06-25 21:37:06.000000000 +0200 ++++ flex-2.5.36/tests/test-bison-yylloc/main.c 2012-07-31 18:53:22.007394045 +0200 +@@ -21,11 +21,10 @@ + * PURPOSE. + */ + ++#define YYPARSE_PARAM scanner + #include "parser.h" + #include "scanner.h" + +-extern int testparse(yyscan_t); +- + int main ( int argc, char** argv ) + { + yyscan_t scanner; +diff -up flex-2.5.36/tests/test-bison-yylloc/parser.y~ flex-2.5.36/tests/test-bison-yylloc/parser.y +--- flex-2.5.36/tests/test-bison-yylloc/parser.y~ 2002-07-25 02:43:47.000000000 +0200 ++++ flex-2.5.36/tests/test-bison-yylloc/parser.y 2012-08-01 01:06:53.093155586 +0200 +@@ -21,6 +21,8 @@ + * PURPOSE. + */ + ++%parse-param { void* scanner } ++ + /* + How to compile: + bison --defines --output-file="parser.c" --name-prefix="test" parser.y +@@ -32,10 +34,8 @@ + #include "config.h" + + #define YYERROR_VERBOSE 1 +-#define YYPARSE_PARAM scanner + #define YYLEX_PARAM scanner + +-int yyerror(char* msg); + extern int testget_lineno(void*); + + +@@ -89,7 +89,7 @@ line: + + %% + +-int yyerror(char* msg) { ++int yyerror(void* scanner, char* msg) { + fprintf(stderr,"%s\n",msg); + return 0; + } +diff -up flex-2.5.36/tests/test-bison-yylval/main.c~ flex-2.5.36/tests/test-bison-yylval/main.c +--- flex-2.5.36/tests/test-bison-yylval/main.c~ 2002-06-25 21:37:06.000000000 +0200 ++++ flex-2.5.36/tests/test-bison-yylval/main.c 2012-08-01 01:10:02.015510280 +0200 +@@ -24,8 +24,6 @@ + #include "parser.h" + #include "scanner.h" + +-extern int testparse(yyscan_t); +- + int main ( int argc, char** argv ) + { + yyscan_t scanner; +diff -up flex-2.5.36/tests/test-bison-yylval/parser.y~ flex-2.5.36/tests/test-bison-yylval/parser.y +--- flex-2.5.36/tests/test-bison-yylval/parser.y~ 2002-06-25 21:37:06.000000000 +0200 ++++ flex-2.5.36/tests/test-bison-yylval/parser.y 2012-08-01 01:13:11.239867147 +0200 +@@ -25,6 +25,7 @@ + How to compile: + bison --defines --output-file="parser.c" --name-prefix="test" parser.y + */ ++%parse-param { void* scanner } + %{ + #include + #include +@@ -32,11 +33,8 @@ + #include "config.h" + + #define YYERROR_VERBOSE 1 +-#define YYPARSE_PARAM scanner + #define YYLEX_PARAM scanner + +-int yyerror(char* msg); +- + + /* A dummy function. A check against seg-faults in yylval->str. */ + int process_text(char* s) { +@@ -76,7 +74,7 @@ starttag: LT TAGNAME GT { process_ + endtag: LTSLASH TAGNAME GT { process_text($2);free($2);} ; + %% + +-int yyerror(char* msg) { ++int yyerror(void* scanner, char* msg) { + fprintf(stderr,"%s\n",msg); + return 0; + } diff --git a/flex.spec b/flex.spec index 0b6b831..fd07a00 100644 --- a/flex.spec +++ b/flex.spec @@ -1,15 +1,12 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.5.35 -Release: 16%{?dist} +Version: 2.5.36 +Release: 1%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 -Patch0: flex-2.5.35-sign.patch -Patch1: flex-2.5.35-hardening.patch -Patch2: flex-2.5.35-gcc44.patch -Patch3: flex-2.5.35-missing-prototypes.patch +Patch0: flex-2.5.36-bison-2.6.1.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -44,12 +41,20 @@ This package contains the library with default implementations of `main' and `yywrap' functions that the client binary can choose to use instead of implementing their own. +%package doc +Summary: Documentation for flex scanner generator +Group: Documentation + +%description doc + +This package contains documentation for flex scanner generator in +plain text and PDF formats. + %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 + +%global flexdocdir %{_datadir}/doc/flex-doc-%{version} %build %configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -57,8 +62,9 @@ make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT install +make DESTDIR=$RPM_BUILD_ROOT docdir=%{flexdocdir} install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir +rm -f $RPM_BUILD_ROOT/%{flexdocdir}/{README.cvs,TODO} ( cd ${RPM_BUILD_ROOT} ln -sf flex .%{_bindir}/lex @@ -102,7 +108,19 @@ rm -rf ${RPM_BUILD_ROOT} %defattr(-,root,root) %{_libdir}/*.a +%files doc +%defattr(-,root,root) +%{_datadir}/doc/flex-doc-%{version} + %changelog +* Tue Jul 31 2012 Petr Machata - 2.5.36-1 +- Rebase to 2.5.36 + - Drop flex-2.5.35-sign.patch, flex-2.5.35-hardening.patch, + flex-2.5.35-gcc44.patch, flex-2.5.35-missing-prototypes.patch + - Add flex-2.5.36-bison-2.6.1.patch + - Add a subpackage doc +- Resolves #842073 + * Thu Jul 19 2012 Fedora Release Engineering - 2.5.35-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild diff --git a/sources b/sources index c7265cd..78722ed 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -10714e50cea54dc7a227e3eddcd44d57 flex-2.5.35.tar.bz2 +5e637290609fd3c2f1f2e75ac2bce1c5 flex-2.5.36.tar.bz2 From 9a65236274f5371d06b741cfd8ca13ca9207c216 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 1 Aug 2012 01:32:22 +0200 Subject: [PATCH 11/72] This part of the patch isn't necessary --- flex-2.5.36-bison-2.6.1.patch | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flex-2.5.36-bison-2.6.1.patch b/flex-2.5.36-bison-2.6.1.patch index a9e11aa..e7cdff6 100644 --- a/flex-2.5.36-bison-2.6.1.patch +++ b/flex-2.5.36-bison-2.6.1.patch @@ -1,11 +1,7 @@ diff -up flex-2.5.36/tests/test-bison-yylloc/main.c~ flex-2.5.36/tests/test-bison-yylloc/main.c --- flex-2.5.36/tests/test-bison-yylloc/main.c~ 2002-06-25 21:37:06.000000000 +0200 +++ flex-2.5.36/tests/test-bison-yylloc/main.c 2012-07-31 18:53:22.007394045 +0200 -@@ -21,11 +21,10 @@ - * PURPOSE. - */ - -+#define YYPARSE_PARAM scanner +@@ -21,8 +21,6 @@ #include "parser.h" #include "scanner.h" From 10db3f4a597591bfa257025b77039527ce42ce81 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 1 Aug 2012 01:40:40 +0200 Subject: [PATCH 12/72] Add a link to upstream tracker for patch 0 --- flex.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/flex.spec b/flex.spec index fd07a00..d68b1ca 100644 --- a/flex.spec +++ b/flex.spec @@ -6,7 +6,10 @@ License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 + +# https://sourceforge.net/tracker/?func=detail&aid=3546447&group_id=97492&atid=618177 Patch0: flex-2.5.36-bison-2.6.1.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 From d59e4fdce9d8e11fa11734eac10ec6bd9eb6b1cb Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 26 Oct 2012 16:36:02 +0200 Subject: [PATCH 13/72] Clarify licensing --- flex.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index d68b1ca..6c99f2f 100644 --- a/flex.spec +++ b/flex.spec @@ -2,7 +2,11 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.36 Release: 1%{?dist} -License: BSD +# parse.c and parse.h are under GPLv3+ with exception which allows +# relicensing. Since flex is shipped under BDS-style license, +# let's assume that the relicensing was done. +# gettext.h (copied from gnulib) is under LGPLv2+ +License: BSD and LGPLv2+ Group: Development/Tools URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 From e634b42c58f7ffcbf2419931ea8cf9e2b0b3b822 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Fri, 26 Oct 2012 16:37:23 +0200 Subject: [PATCH 14/72] Bump for rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 6c99f2f..a3a9236 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.36 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -120,6 +120,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Fri Oct 26 2012 Petr Machata - 2.5.36-2 +- Bump for rebuild + * Tue Jul 31 2012 Petr Machata - 2.5.36-1 - Rebase to 2.5.36 - Drop flex-2.5.35-sign.patch, flex-2.5.35-hardening.patch, From 0e75ec311881b122a3df7b788fd12fc44fce8633 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 13 Feb 2013 15:45:51 -0600 Subject: [PATCH 15/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index a3a9236..a885ed5 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.36 -Release: 2%{?dist} +Release: 3%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -120,6 +120,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Wed Feb 13 2013 Fedora Release Engineering - 2.5.36-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + * Fri Oct 26 2012 Petr Machata - 2.5.36-2 - Bump for rebuild From 9059a932e4b954810a3d2f8a20110170a7f60dd0 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 20 Mar 2013 13:37:21 +0100 Subject: [PATCH 16/72] Rebase to 2.5.37 --- .gitignore | 1 + flex.spec | 7 +++++-- sources | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 241951b..9fe5f19 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ flex-2.5.35.tar.bz2 /flex*/ *.rpm /flex-2.5.36.tar.bz2 +/flex-2.5.37.tar.bz2 diff --git a/flex.spec b/flex.spec index a885ed5..74496fb 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.5.36 -Release: 3%{?dist} +Version: 2.5.37 +Release: 1%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -120,6 +120,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Wed Mar 20 2013 Petr Machata - 2.5.37-1 +- Rebase to 2.5.37 + * Wed Feb 13 2013 Fedora Release Engineering - 2.5.36-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild diff --git a/sources b/sources index 78722ed..6c9ca7d 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 5e637290609fd3c2f1f2e75ac2bce1c5 flex-2.5.36.tar.bz2 +c75940e1fc25108f2a7b3ef42abdae06 flex-2.5.37.tar.bz2 From 83840e9d2bd6564ef31b67c860c2022cdac3e9c4 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Wed, 20 Mar 2013 14:41:18 +0100 Subject: [PATCH 17/72] Drop old release from sources --- sources | 1 - 1 file changed, 1 deletion(-) diff --git a/sources b/sources index 6c9ca7d..fd70a98 100644 --- a/sources +++ b/sources @@ -1,2 +1 @@ -5e637290609fd3c2f1f2e75ac2bce1c5 flex-2.5.36.tar.bz2 c75940e1fc25108f2a7b3ef42abdae06 flex-2.5.37.tar.bz2 From 122421a064ebb2110e674576ad9bb18eac1a28ea Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Thu, 4 Apr 2013 15:43:21 +0200 Subject: [PATCH 18/72] Update config.sub and config.guess to support aarch64 --- flex-2.5.37-aarch64.patch | 36 ++++++++++++++++++++++++++++++++++++ flex.spec | 9 ++++++++- 2 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 flex-2.5.37-aarch64.patch diff --git a/flex-2.5.37-aarch64.patch b/flex-2.5.37-aarch64.patch new file mode 100644 index 0000000..c764bf7 --- /dev/null +++ b/flex-2.5.37-aarch64.patch @@ -0,0 +1,36 @@ +diff -urN flex-2.5.36/config.guess flex-2.5.36-aarch64/config.guess +--- flex-2.5.36/config.guess 2012-06-22 16:02:51.000000000 -0500 ++++ flex-2.5.36-aarch64/config.guess 2013-03-03 04:41:12.069186825 -0600 +@@ -854,6 +868,13 @@ + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; ++ aarch64:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; ++ aarch64_be:Linux:*:*) ++ UNAME_MACHINE=aarch64_be ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + arm*:Linux:*:*) + eval $set_cc_for_build + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ +diff -urN flex-2.5.36/config.sub flex-2.5.36-aarch64/config.sub +--- flex-2.5.36/config.sub 2012-06-22 16:02:51.000000000 -0500 ++++ flex-2.5.36-aarch64/config.sub 2013-03-03 04:41:12.105182658 -0600 +@@ -242,6 +255,7 @@ + # Some are omitted here because they have special meanings below. + 1750a | 580 \ + | a29k \ ++ | aarch64 | aarch64_be \ + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ + | am33_2.0 \ +@@ -322,6 +367,7 @@ + # Recognize the basic CPU types with company name. + 580-* \ + | a29k-* \ ++ | aarch64-* | aarch64_be-* \ + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ diff --git a/flex.spec b/flex.spec index 74496fb..ceec014 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -14,6 +14,9 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 # https://sourceforge.net/tracker/?func=detail&aid=3546447&group_id=97492&atid=618177 Patch0: flex-2.5.36-bison-2.6.1.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=925801 +Patch1: flex-2.5.37-aarch64.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -60,6 +63,7 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 +%patch1 -p1 %global flexdocdir %{_datadir}/doc/flex-doc-%{version} @@ -120,6 +124,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Thu Apr 4 2013 Petr Machata - 2.5.37-2 +- Update config.sub and config.guess to support aarch64 + * Wed Mar 20 2013 Petr Machata - 2.5.37-1 - Rebase to 2.5.37 From d39470d8a5a9e92976e718e2dc96073ff2558b54 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 3 Aug 2013 06:25:03 -0500 Subject: [PATCH 19/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index ceec014..c22a8a6 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 2%{?dist} +Release: 3%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -124,6 +124,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Sat Aug 03 2013 Fedora Release Engineering - 2.5.37-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + * Thu Apr 4 2013 Petr Machata - 2.5.37-2 - Update config.sub and config.guess to support aarch64 From a3088c99e84a49be53663c2662c8c19eb2c50127 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Tue, 3 Sep 2013 19:56:35 +0200 Subject: [PATCH 20/72] Add a patch for "comparison between signed and unsigned" warnings --- flex-2.5.37-types.patch | 41 +++++++++++++++++++++++++++++++++++++++++ flex.spec | 11 ++++++++++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 flex-2.5.37-types.patch diff --git a/flex-2.5.37-types.patch b/flex-2.5.37-types.patch new file mode 100644 index 0000000..560a640 --- /dev/null +++ b/flex-2.5.37-types.patch @@ -0,0 +1,41 @@ +From c53fd2db8c78fef5afd284c3e64da51bc71cf6c3 Mon Sep 17 00:00:00 2001 +From: nomis52 +Date: Sat, 4 Aug 2012 15:03:31 -0400 +Subject: [PATCH] Change variable types to silence compiler warnings; resolves + #3552806 + +Signed-off-by: Will Estes +--- + flex.skl | 2 +- + gen.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/flex.skl b/flex.skl +index 01d8204..7802f45 100644 +--- a/flex.skl ++++ b/flex.skl +@@ -2360,7 +2360,7 @@ YY_BUFFER_STATE yy_scan_bytes YYFARGS2( yyconst char *,yybytes, yy_size_t ,_yyb + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; +- int i; ++ yy_size_t i; + m4_dnl M4_YY_DECL_GUTS_VAR(); + + /* Get memory for full buffer, including space for trailing EOB's. */ +diff --git a/gen.c b/gen.c +index 5a5daef..8d24a86 100644 +--- a/gen.c ++++ b/gen.c +@@ -1972,7 +1972,7 @@ void make_tables () + ("if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )"); + indent_up (); + indent_puts ("{"); +- indent_puts ("int yyl;"); ++ indent_puts ("yy_size_t yyl;"); + do_indent (); + out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n", + yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" : +-- +1.7.6.5 + diff --git a/flex.spec b/flex.spec index c22a8a6..2571020 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 3%{?dist} +Release: 4%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -17,6 +17,9 @@ Patch0: flex-2.5.36-bison-2.6.1.patch # https://bugzilla.redhat.com/show_bug.cgi?id=925801 Patch1: flex-2.5.37-aarch64.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=993447 +Patch2: flex-2.5.37-types.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -64,6 +67,7 @@ plain text and PDF formats. %setup -q %patch0 -p1 %patch1 -p1 +%patch2 -p1 %global flexdocdir %{_datadir}/doc/flex-doc-%{version} @@ -124,6 +128,11 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Tue Sep 3 2013 Petr Machata - 2.5.37-4 +- Add a patch for "comparison between signed and unsigned" warnings + that GCC produces when compiling flex-generated scanners + (flex-2.5.37-types.patch) + * Sat Aug 03 2013 Fedora Release Engineering - 2.5.37-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild From 21e70cdb9f2e29e08094360fa73e3fae23d86486 Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Wed, 16 Apr 2014 15:01:50 -0400 Subject: [PATCH 21/72] Resolves: #1087433 - Add a patch to remove obsolete bison constructs YYLEX_PARAM and YYPARSE_PARAM. Use %lex-param, %parse-param, or %param. --- ...-Do-not-use-obsolete-bison-construct.patch | 79 +++++++++++++++++++ flex.spec | 10 ++- 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch diff --git a/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch b/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch new file mode 100644 index 0000000..eb46be3 --- /dev/null +++ b/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch @@ -0,0 +1,79 @@ +From 35aba3d6e3c99fcd527c677bef8efeb59963fe8a Mon Sep 17 00:00:00 2001 +Message-Id: <35aba3d6e3c99fcd527c677bef8efeb59963fe8a.1397340102.git.srivasta@golden-gryphon.com> +From: Manoj Srivastava +Date: Wed, 9 Apr 2014 00:23:07 -0700 +Subject: [PATCH 1/1] [bison-test-fixes] Do not use obsolete bison constructs in tests. + +In Bison 3.0, support for YYLEX_PARAM and YYPARSE_PARAM has been +removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or +%param. This commit fixes the tests so they still work. + +Signed-off-by: Manoj Srivastava +--- + tests/test-bison-yylloc/parser.y | 4 ++-- + tests/test-bison-yylval/parser.y | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + 50.0% tests/test-bison-yylloc/ + 50.0% tests/test-bison-yylval/ + +diff --git a/tests/test-bison-yylloc/parser.y b/tests/test-bison-yylloc/parser.y +index e8f4e56..224d252 100644 +--- a/tests/test-bison-yylloc/parser.y ++++ b/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; +diff --git a/tests/test-bison-yylval/parser.y b/tests/test-bison-yylval/parser.y +index 0ffdb89..626c5e7 100644 +--- a/tests/test-bison-yylval/parser.y ++++ b/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; +-- +1.9.2 + diff --git a/flex.spec b/flex.spec index 2571020..1256908 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 4%{?dist} +Release: 5%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -20,6 +20,9 @@ Patch1: flex-2.5.37-aarch64.patch # https://bugzilla.redhat.com/show_bug.cgi?id=993447 Patch2: flex-2.5.37-types.patch +#fix test-bison-yylloc and test-bison-yylval test failures +Patch3: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch + BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -68,6 +71,7 @@ plain text and PDF formats. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %global flexdocdir %{_datadir}/doc/flex-doc-%{version} @@ -128,6 +132,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Wed Apr 16 2014 Patsy Franklin - 2.5.37-5 +- Add a patch to remove obsolete bison constructs YYLEX_PARAM and + YYPARSE_PARAM. Use %lex-param, %parse-param, or %param. + * Tue Sep 3 2013 Petr Machata - 2.5.37-4 - Add a patch for "comparison between signed and unsigned" warnings that GCC produces when compiling flex-generated scanners From 509ceeb03a04dff05677ecca5389100d4810b199 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Sat, 7 Jun 2014 07:17:03 -0500 Subject: [PATCH 22/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 1256908..8fbb43c 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 5%{?dist} +Release: 6%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -132,6 +132,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/doc/flex-doc-%{version} %changelog +* Sat Jun 07 2014 Fedora Release Engineering - 2.5.37-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + * Wed Apr 16 2014 Patsy Franklin - 2.5.37-5 - Add a patch to remove obsolete bison constructs YYLEX_PARAM and YYPARSE_PARAM. Use %lex-param, %parse-param, or %param. From bc2fdd62f6505f8ccb6c08854bea88122f0c9d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sun, 20 Jul 2014 00:12:57 +0300 Subject: [PATCH 23/72] Make docdir unversioned where appropriate (#993754) - Install docs to one common package doc dir, drop separate one for -doc - Include COPYING in -devel - Fix bogus dates in %changelog --- flex.spec | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/flex.spec b/flex.spec index 8fbb43c..96a2370 100644 --- a/flex.spec +++ b/flex.spec @@ -1,7 +1,9 @@ +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} + Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 6%{?dist} +Release: 7%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -73,17 +75,15 @@ plain text and PDF formats. %patch2 -p1 %patch3 -p1 -%global flexdocdir %{_datadir}/doc/flex-doc-%{version} - %build -%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS" +%configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT -make DESTDIR=$RPM_BUILD_ROOT docdir=%{flexdocdir} install +make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir -rm -f $RPM_BUILD_ROOT/%{flexdocdir}/{README.cvs,TODO} +rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO} ( cd ${RPM_BUILD_ROOT} ln -sf flex .%{_bindir}/lex @@ -117,7 +117,10 @@ rm -rf ${RPM_BUILD_ROOT} %files -f flex.lang %defattr(-,root,root) -%doc COPYING NEWS README +%dir %{_pkgdocdir} +%{_pkgdocdir}/COPYING +%{_pkgdocdir}/NEWS +%{_pkgdocdir}/README %{_bindir}/* %{_mandir}/man1/* %{_includedir}/FlexLexer.h @@ -125,13 +128,21 @@ rm -rf ${RPM_BUILD_ROOT} %files devel %defattr(-,root,root) +%dir %{_pkgdocdir} +%{_pkgdocdir}/COPYING %{_libdir}/*.a %files doc %defattr(-,root,root) -%{_datadir}/doc/flex-doc-%{version} +%{_pkgdocdir} %changelog +* Sat Jul 19 2014 Ville Skyttä - 2.5.37-7 +- Make docdir unversioned where appropriate (#993754) +- Install docs to one common package doc dir, drop separate one for -doc +- Include COPYING in -devel +- Fix bogus dates in %%changelog + * Sat Jun 07 2014 Fedora Release Engineering - 2.5.37-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild @@ -317,7 +328,7 @@ rm -rf ${RPM_BUILD_ROOT} * Wed Mar 8 2006 Petr Machata - 2.5.4a-37.4 - adding test for #183098 into build process -* Fri Mar 2 2006 Petr Machata - 2.5.4a-37.3 +* Thu Mar 2 2006 Petr Machata - 2.5.4a-37.3 - rebuilt, no changes inside. In hunt for #183098 * Fri Feb 10 2006 Jesse Keating - 2.5.4a-37.2 @@ -326,7 +337,7 @@ rm -rf ${RPM_BUILD_ROOT} * Tue Feb 07 2006 Jesse Keating - 2.5.4a-37.1 - rebuilt for new gcc4.1 snapshot and glibc changes -* Wed Feb 02 2006 Petr Machata 2.5.4a-37 +* Thu Feb 02 2006 Petr Machata 2.5.4a-37 - adding `make bigcheck' into build process. Refreshing initscan.c to make this possible. From c5de0e2acbef597ba30d7ee19cf4605b69bdb67e Mon Sep 17 00:00:00 2001 From: Peter Robinson Date: Sat, 16 Aug 2014 12:36:42 +0000 Subject: [PATCH 24/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 96a2370..4cd5917 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.37 -Release: 7%{?dist} +Release: 8%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -137,6 +137,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Sat Aug 16 2014 Fedora Release Engineering - 2.5.37-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + * Sat Jul 19 2014 Ville Skyttä - 2.5.37-7 - Make docdir unversioned where appropriate (#993754) - Install docs to one common package doc dir, drop separate one for -doc From 9829cc0a31e6b776f01af13694dbab087e09ec0a Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Mon, 13 Apr 2015 11:27:39 -0400 Subject: [PATCH 25/72] Resolves: #1064735 - Rebase to flex-2.5.39 --- .gitignore | 1 + flex.spec | 30 +++++++++++++++--------------- sources | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.gitignore b/.gitignore index 9fe5f19..2fe7db6 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ flex-2.5.35.tar.bz2 *.rpm /flex-2.5.36.tar.bz2 /flex-2.5.37.tar.bz2 +/flex-2.5.39.tar.bz2 diff --git a/flex.spec b/flex.spec index 4cd5917..75e5c02 100644 --- a/flex.spec +++ b/flex.spec @@ -2,8 +2,8 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.5.37 -Release: 8%{?dist} +Version: 2.5.39 +Release: 1%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -13,17 +13,8 @@ Group: Development/Tools URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 -# https://sourceforge.net/tracker/?func=detail&aid=3546447&group_id=97492&atid=618177 -Patch0: flex-2.5.36-bison-2.6.1.patch - -# https://bugzilla.redhat.com/show_bug.cgi?id=925801 -Patch1: flex-2.5.37-aarch64.patch - -# https://bugzilla.redhat.com/show_bug.cgi?id=993447 -Patch2: flex-2.5.37-types.patch - #fix test-bison-yylloc and test-bison-yylval test failures -Patch3: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch +Patch0: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 @@ -71,9 +62,6 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 %build %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -84,6 +72,15 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO} +# For now, excluding the new .la and .so files as we haven't had +# any requests for them and adding them will require a new subpackage. +# The .so files contain 2 optional implementations of main and yywrap +# for developer convenience. They are also available in the .a file +# provided in flex-devel. +find %{buildroot} -name '*.la' -delete +find %{buildroot} -name '*.so' -delete +find %{buildroot} -name '*.so.2' -delete +find %{buildroot} -name '*.so.2.0.0' -delete ( cd ${RPM_BUILD_ROOT} ln -sf flex .%{_bindir}/lex @@ -137,6 +134,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Mon Apr 13 2015 Patsy Franklin - 2.5.39-1 +- Rebase to 2.5.39 + * Sat Aug 16 2014 Fedora Release Engineering - 2.5.37-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild diff --git a/sources b/sources index fd70a98..ec61826 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -c75940e1fc25108f2a7b3ef42abdae06 flex-2.5.37.tar.bz2 +77d44c6bb8c0705e0017ab9a84a1502b flex-2.5.39.tar.bz2 From a842d2a3b546d87454da55f7d64f7e7396e49666 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 17 Jun 2015 06:26:07 +0000 Subject: [PATCH 26/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 75e5c02..2ec7cec 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.39 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -134,6 +134,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Jun 17 2015 Fedora Release Engineering - 2.5.39-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + * Mon Apr 13 2015 Patsy Franklin - 2.5.39-1 - Rebase to 2.5.39 From b4c0265c95521c3360c929683b0044bb237d01b6 Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Fri, 30 Oct 2015 00:36:01 -0400 Subject: [PATCH 27/72] Resolves: #1238860 - Remove obsolete patches. --- flex-2.5.36-bison-2.6.1.patch | 88 ----------------------------------- flex-2.5.37-aarch64.patch | 36 -------------- flex-2.5.37-types.patch | 41 ---------------- flex.spec | 5 +- 4 files changed, 4 insertions(+), 166 deletions(-) delete mode 100644 flex-2.5.36-bison-2.6.1.patch delete mode 100644 flex-2.5.37-aarch64.patch delete mode 100644 flex-2.5.37-types.patch diff --git a/flex-2.5.36-bison-2.6.1.patch b/flex-2.5.36-bison-2.6.1.patch deleted file mode 100644 index e7cdff6..0000000 --- a/flex-2.5.36-bison-2.6.1.patch +++ /dev/null @@ -1,88 +0,0 @@ -diff -up flex-2.5.36/tests/test-bison-yylloc/main.c~ flex-2.5.36/tests/test-bison-yylloc/main.c ---- flex-2.5.36/tests/test-bison-yylloc/main.c~ 2002-06-25 21:37:06.000000000 +0200 -+++ flex-2.5.36/tests/test-bison-yylloc/main.c 2012-07-31 18:53:22.007394045 +0200 -@@ -21,8 +21,6 @@ - #include "parser.h" - #include "scanner.h" - --extern int testparse(yyscan_t); -- - int main ( int argc, char** argv ) - { - yyscan_t scanner; -diff -up flex-2.5.36/tests/test-bison-yylloc/parser.y~ flex-2.5.36/tests/test-bison-yylloc/parser.y ---- flex-2.5.36/tests/test-bison-yylloc/parser.y~ 2002-07-25 02:43:47.000000000 +0200 -+++ flex-2.5.36/tests/test-bison-yylloc/parser.y 2012-08-01 01:06:53.093155586 +0200 -@@ -21,6 +21,8 @@ - * PURPOSE. - */ - -+%parse-param { void* scanner } -+ - /* - How to compile: - bison --defines --output-file="parser.c" --name-prefix="test" parser.y -@@ -32,10 +34,8 @@ - #include "config.h" - - #define YYERROR_VERBOSE 1 --#define YYPARSE_PARAM scanner - #define YYLEX_PARAM scanner - --int yyerror(char* msg); - extern int testget_lineno(void*); - - -@@ -89,7 +89,7 @@ line: - - %% - --int yyerror(char* msg) { -+int yyerror(void* scanner, char* msg) { - fprintf(stderr,"%s\n",msg); - return 0; - } -diff -up flex-2.5.36/tests/test-bison-yylval/main.c~ flex-2.5.36/tests/test-bison-yylval/main.c ---- flex-2.5.36/tests/test-bison-yylval/main.c~ 2002-06-25 21:37:06.000000000 +0200 -+++ flex-2.5.36/tests/test-bison-yylval/main.c 2012-08-01 01:10:02.015510280 +0200 -@@ -24,8 +24,6 @@ - #include "parser.h" - #include "scanner.h" - --extern int testparse(yyscan_t); -- - int main ( int argc, char** argv ) - { - yyscan_t scanner; -diff -up flex-2.5.36/tests/test-bison-yylval/parser.y~ flex-2.5.36/tests/test-bison-yylval/parser.y ---- flex-2.5.36/tests/test-bison-yylval/parser.y~ 2002-06-25 21:37:06.000000000 +0200 -+++ flex-2.5.36/tests/test-bison-yylval/parser.y 2012-08-01 01:13:11.239867147 +0200 -@@ -25,6 +25,7 @@ - How to compile: - bison --defines --output-file="parser.c" --name-prefix="test" parser.y - */ -+%parse-param { void* scanner } - %{ - #include - #include -@@ -32,11 +33,8 @@ - #include "config.h" - - #define YYERROR_VERBOSE 1 --#define YYPARSE_PARAM scanner - #define YYLEX_PARAM scanner - --int yyerror(char* msg); -- - - /* A dummy function. A check against seg-faults in yylval->str. */ - int process_text(char* s) { -@@ -76,7 +74,7 @@ starttag: LT TAGNAME GT { process_ - endtag: LTSLASH TAGNAME GT { process_text($2);free($2);} ; - %% - --int yyerror(char* msg) { -+int yyerror(void* scanner, char* msg) { - fprintf(stderr,"%s\n",msg); - return 0; - } diff --git a/flex-2.5.37-aarch64.patch b/flex-2.5.37-aarch64.patch deleted file mode 100644 index c764bf7..0000000 --- a/flex-2.5.37-aarch64.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -urN flex-2.5.36/config.guess flex-2.5.36-aarch64/config.guess ---- flex-2.5.36/config.guess 2012-06-22 16:02:51.000000000 -0500 -+++ flex-2.5.36-aarch64/config.guess 2013-03-03 04:41:12.069186825 -0600 -@@ -854,6 +868,13 @@ - i*86:Minix:*:*) - echo ${UNAME_MACHINE}-pc-minix - exit ;; -+ aarch64:Linux:*:*) -+ echo ${UNAME_MACHINE}-unknown-linux-gnu -+ exit ;; -+ aarch64_be:Linux:*:*) -+ UNAME_MACHINE=aarch64_be -+ echo ${UNAME_MACHINE}-unknown-linux-gnu -+ exit ;; - arm*:Linux:*:*) - eval $set_cc_for_build - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ -diff -urN flex-2.5.36/config.sub flex-2.5.36-aarch64/config.sub ---- flex-2.5.36/config.sub 2012-06-22 16:02:51.000000000 -0500 -+++ flex-2.5.36-aarch64/config.sub 2013-03-03 04:41:12.105182658 -0600 -@@ -242,6 +255,7 @@ - # Some are omitted here because they have special meanings below. - 1750a | 580 \ - | a29k \ -+ | aarch64 | aarch64_be \ - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ - | am33_2.0 \ -@@ -322,6 +367,7 @@ - # Recognize the basic CPU types with company name. - 580-* \ - | a29k-* \ -+ | aarch64-* | aarch64_be-* \ - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ diff --git a/flex-2.5.37-types.patch b/flex-2.5.37-types.patch deleted file mode 100644 index 560a640..0000000 --- a/flex-2.5.37-types.patch +++ /dev/null @@ -1,41 +0,0 @@ -From c53fd2db8c78fef5afd284c3e64da51bc71cf6c3 Mon Sep 17 00:00:00 2001 -From: nomis52 -Date: Sat, 4 Aug 2012 15:03:31 -0400 -Subject: [PATCH] Change variable types to silence compiler warnings; resolves - #3552806 - -Signed-off-by: Will Estes ---- - flex.skl | 2 +- - gen.c | 2 +- - 2 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/flex.skl b/flex.skl -index 01d8204..7802f45 100644 ---- a/flex.skl -+++ b/flex.skl -@@ -2360,7 +2360,7 @@ YY_BUFFER_STATE yy_scan_bytes YYFARGS2( yyconst char *,yybytes, yy_size_t ,_yyb - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; -- int i; -+ yy_size_t i; - m4_dnl M4_YY_DECL_GUTS_VAR(); - - /* Get memory for full buffer, including space for trailing EOB's. */ -diff --git a/gen.c b/gen.c -index 5a5daef..8d24a86 100644 ---- a/gen.c -+++ b/gen.c -@@ -1972,7 +1972,7 @@ void make_tables () - ("if ( yy_act != YY_END_OF_BUFFER && yy_rule_can_match_eol[yy_act] )"); - indent_up (); - indent_puts ("{"); -- indent_puts ("int yyl;"); -+ indent_puts ("yy_size_t yyl;"); - do_indent (); - out_str ("for ( yyl = %s; yyl < yyleng; ++yyl )\n", - yymore_used ? (yytext_is_array ? "YY_G(yy_prev_more_offset)" : --- -1.7.6.5 - diff --git a/flex.spec b/flex.spec index 2ec7cec..a3f7d0f 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.39 -Release: 2%{?dist} +Release: 3%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -134,6 +134,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Thu Oct 29 2015 Patsy Franklin - 2.5.39-3 +- Remove obsolete patches from git repository. (BZ #1238860) + * Wed Jun 17 2015 Fedora Release Engineering - 2.5.39-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild From c3a70b341f0ba174ebe28dd77ce9194f12a7fff4 Mon Sep 17 00:00:00 2001 From: Dennis Gilmore Date: Wed, 3 Feb 2016 20:35:04 +0000 Subject: [PATCH 28/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index a3f7d0f..2364e88 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.5.39 -Release: 3%{?dist} +Release: 4%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -134,6 +134,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Feb 03 2016 Fedora Release Engineering - 2.5.39-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + * Thu Oct 29 2015 Patsy Franklin - 2.5.39-3 - Remove obsolete patches from git repository. (BZ #1238860) From ffdaf365828d11a13b50ec84f11b03d50abb469e Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Fri, 11 Mar 2016 14:53:33 -0500 Subject: [PATCH 29/72] Resolves: #1281976 - Rebase to flex-2.6.0 - Add a patch to fix yy_less_macro_arg types. --- .gitignore | 1 + flex-2.6.0-yyless.patch | 30 ++++++++++++++++++++++++++++++ flex.spec | 13 ++++++++----- sources | 2 +- 4 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 flex-2.6.0-yyless.patch diff --git a/.gitignore b/.gitignore index 2fe7db6..2c6fdac 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ flex-2.5.35.tar.bz2 /flex-2.5.36.tar.bz2 /flex-2.5.37.tar.bz2 /flex-2.5.39.tar.bz2 +/flex-2.6.0.tar.bz2 diff --git a/flex-2.6.0-yyless.patch b/flex-2.6.0-yyless.patch new file mode 100644 index 0000000..4bb7c3e --- /dev/null +++ b/flex-2.6.0-yyless.patch @@ -0,0 +1,30 @@ +diff -Nrup a/src/flex.skl b/src/flex.skl +--- a/src/flex.skl 2015-11-10 18:28:54.000000000 -0500 ++++ b/src/flex.skl 2016-03-07 23:52:46.527139783 -0500 +@@ -506,7 +506,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], + */ + #define YY_LESS_LINENO(n) \ + do { \ +- int yyl;\ ++ yy_size_t yyl;\ + for ( yyl = n; yyl < yyleng; ++yyl )\ + if ( yytext[yyl] == '\n' )\ + --yylineno;\ +@@ -532,7 +532,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], + do \ + { \ + /* Undo effects of setting up yytext. */ \ +- int yyless_macro_arg = (n); \ ++ yy_size_t yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + *yy_cp = YY_G(yy_hold_char); \ + YY_RESTORE_YY_MORE_OFFSET \ +@@ -2591,7 +2591,7 @@ void yyFlexLexer::LexerError( yyconst ch + do \ + { \ + /* Undo effects of setting up yytext. */ \ +- int yyless_macro_arg = (n); \ ++ yy_size_t yyless_macro_arg = (n); \ + YY_LESS_LINENO(yyless_macro_arg);\ + yytext[yyleng] = YY_G(yy_hold_char); \ + YY_G(yy_c_buf_p) = yytext + yyless_macro_arg; \ diff --git a/flex.spec b/flex.spec index 2364e88..765ed2b 100644 --- a/flex.spec +++ b/flex.spec @@ -2,8 +2,8 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.5.39 -Release: 4%{?dist} +Version: 2.6.0 +Release: 1%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -13,12 +13,11 @@ Group: Development/Tools URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 -#fix test-bison-yylloc and test-bison-yylval test failures -Patch0: 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch +Patch0: flex-2.6.0-yyless.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 -BuildRequires: gettext bison m4 +BuildRequires: gettext bison m4 help2man Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -134,6 +133,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Thu Mar 10 2016 Patsy Franklin - 2.6.0-1 +- Rebase to 2.6.0 +- Pick up an additional patch requested in BZ #1281976 + * Wed Feb 03 2016 Fedora Release Engineering - 2.5.39-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild diff --git a/sources b/sources index ec61826..628235b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -77d44c6bb8c0705e0017ab9a84a1502b flex-2.5.39.tar.bz2 +266270f13c48ed043d95648075084d59 flex-2.6.0.tar.bz2 From 3821e2741c4a7200c8149a2db2185d695c37d825 Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Wed, 27 Jul 2016 13:59:22 -0400 Subject: [PATCH 30/72] Resolves: #1360744 Fix wrong type on num_to_read. --- flex-2.6.0-num_to_read.patch | 36 ++++++++++++++++++++++++++++++++++++ flex.spec | 7 ++++++- 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 flex-2.6.0-num_to_read.patch diff --git a/flex-2.6.0-num_to_read.patch b/flex-2.6.0-num_to_read.patch new file mode 100644 index 0000000..8c1ab69 --- /dev/null +++ b/flex-2.6.0-num_to_read.patch @@ -0,0 +1,36 @@ +diff -Nrup a/src/flex.skl b/src/flex.skl +--- a/src/flex.skl 2016-07-27 11:11:48.528378027 -0400 ++++ b/src/flex.skl 2016-07-27 11:14:03.012351701 -0400 +@@ -1718,7 +1718,7 @@ int yyFlexLexer::yy_get_next_buffer() + + else + { +- yy_size_t num_to_read = ++ int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) +diff -Nrup a/src/scan.c b/src/scan.c +--- a/src/scan.c 2015-11-17 11:17:41.000000000 -0500 ++++ b/src/scan.c 2016-07-27 11:14:18.126674417 -0400 +@@ -4181,7 +4181,7 @@ static int yy_get_next_buffer (void) + + else + { +- yy_size_t num_to_read = ++ int num_to_read = + YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; + + while ( num_to_read <= 0 ) +diff -Nrup a/src/skel.c b/src/skel.c +--- a/src/skel.c 2015-11-17 11:17:39.000000000 -0500 ++++ b/src/skel.c 2016-07-27 11:14:36.362857240 -0400 +@@ -1929,7 +1929,7 @@ const char *skel[] = { + "", + " else", + " {", +- " yy_size_t num_to_read =", ++ " int num_to_read =", + " YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;", + "", + " while ( num_to_read <= 0 )", diff --git a/flex.spec b/flex.spec index 765ed2b..6d67b67 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.0 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -14,6 +14,7 @@ URL: http://flex.sourceforge.net/ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 Patch0: flex-2.6.0-yyless.patch +Patch1: flex-2.6.0-num_to_read.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 @@ -61,6 +62,7 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -133,6 +135,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Jul 27 2016 Patsy Franklin - 2.6.0-2 + Fix wrong type on num_to_read. BZ #1360744 + * Thu Mar 10 2016 Patsy Franklin - 2.6.0-1 - Rebase to 2.6.0 - Pick up an additional patch requested in BZ #1281976 From e12b8361fac0e4be9aa5d3cf5759b8b2805c2040 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Tue, 13 Sep 2016 08:56:11 -0500 Subject: [PATCH 31/72] 2.6.1-1 - Rebase to 2.6.1 (#1318074,#1364943) - update URL (github), drop unused patches (#1238860) --- .gitignore | 1 + ...-Do-not-use-obsolete-bison-construct.patch | 79 ------------------- flex-2.6.0-num_to_read.patch | 36 --------- flex.spec | 14 ++-- sources | 2 +- 5 files changed, 10 insertions(+), 122 deletions(-) delete mode 100644 0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch delete mode 100644 flex-2.6.0-num_to_read.patch diff --git a/.gitignore b/.gitignore index 2c6fdac..bba8076 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ flex-2.5.35.tar.bz2 /flex-2.5.37.tar.bz2 /flex-2.5.39.tar.bz2 /flex-2.6.0.tar.bz2 +/flex-2.6.1.tar.xz diff --git a/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch b/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch deleted file mode 100644 index eb46be3..0000000 --- a/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch +++ /dev/null @@ -1,79 +0,0 @@ -From 35aba3d6e3c99fcd527c677bef8efeb59963fe8a Mon Sep 17 00:00:00 2001 -Message-Id: <35aba3d6e3c99fcd527c677bef8efeb59963fe8a.1397340102.git.srivasta@golden-gryphon.com> -From: Manoj Srivastava -Date: Wed, 9 Apr 2014 00:23:07 -0700 -Subject: [PATCH 1/1] [bison-test-fixes] Do not use obsolete bison constructs in tests. - -In Bison 3.0, support for YYLEX_PARAM and YYPARSE_PARAM has been -removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or -%param. This commit fixes the tests so they still work. - -Signed-off-by: Manoj Srivastava ---- - tests/test-bison-yylloc/parser.y | 4 ++-- - tests/test-bison-yylval/parser.y | 4 ++-- - 2 files changed, 4 insertions(+), 4 deletions(-) - 50.0% tests/test-bison-yylloc/ - 50.0% tests/test-bison-yylval/ - -diff --git a/tests/test-bison-yylloc/parser.y b/tests/test-bison-yylloc/parser.y -index e8f4e56..224d252 100644 ---- a/tests/test-bison-yylloc/parser.y -+++ b/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; -diff --git a/tests/test-bison-yylval/parser.y b/tests/test-bison-yylval/parser.y -index 0ffdb89..626c5e7 100644 ---- a/tests/test-bison-yylval/parser.y -+++ b/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; --- -1.9.2 - diff --git a/flex-2.6.0-num_to_read.patch b/flex-2.6.0-num_to_read.patch deleted file mode 100644 index 8c1ab69..0000000 --- a/flex-2.6.0-num_to_read.patch +++ /dev/null @@ -1,36 +0,0 @@ -diff -Nrup a/src/flex.skl b/src/flex.skl ---- a/src/flex.skl 2016-07-27 11:11:48.528378027 -0400 -+++ b/src/flex.skl 2016-07-27 11:14:03.012351701 -0400 -@@ -1718,7 +1718,7 @@ int yyFlexLexer::yy_get_next_buffer() - - else - { -- yy_size_t num_to_read = -+ int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) -diff -Nrup a/src/scan.c b/src/scan.c ---- a/src/scan.c 2015-11-17 11:17:41.000000000 -0500 -+++ b/src/scan.c 2016-07-27 11:14:18.126674417 -0400 -@@ -4181,7 +4181,7 @@ static int yy_get_next_buffer (void) - - else - { -- yy_size_t num_to_read = -+ int num_to_read = - YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1; - - while ( num_to_read <= 0 ) -diff -Nrup a/src/skel.c b/src/skel.c ---- a/src/skel.c 2015-11-17 11:17:39.000000000 -0500 -+++ b/src/skel.c 2016-07-27 11:14:36.362857240 -0400 -@@ -1929,7 +1929,7 @@ const char *skel[] = { - "", - " else", - " {", -- " yy_size_t num_to_read =", -+ " int num_to_read =", - " YY_CURRENT_BUFFER_LVALUE->yy_buf_size - number_to_move - 1;", - "", - " while ( num_to_read <= 0 )", diff --git a/flex.spec b/flex.spec index 6d67b67..3824420 100644 --- a/flex.spec +++ b/flex.spec @@ -2,19 +2,18 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.6.0 -Release: 2%{?dist} +Version: 2.6.1 +Release: 1%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. # gettext.h (copied from gnulib) is under LGPLv2+ License: BSD and LGPLv2+ Group: Development/Tools -URL: http://flex.sourceforge.net/ -Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2 +URL: https://github.com/westes/flex +Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.xz Patch0: flex-2.6.0-yyless.patch -Patch1: flex-2.6.0-num_to_read.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 @@ -62,7 +61,6 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 -%patch1 -p1 %build %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -135,6 +133,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Tue Sep 13 2016 Rex Dieter - 2.6.1-1 +- Rebase to 2.6.1 (#1318074,#1364943) +- update URL (github), drop unused patches (#1238860) + * Wed Jul 27 2016 Patsy Franklin - 2.6.0-2 Fix wrong type on num_to_read. BZ #1360744 diff --git a/sources b/sources index 628235b..19ee67c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -266270f13c48ed043d95648075084d59 flex-2.6.0.tar.bz2 +cd3c86290fc2676a641aefafeb10848a flex-2.6.1.tar.xz From c92a3e6ae8436adf2239a9f58b0979a06a78b32a Mon Sep 17 00:00:00 2001 From: Patsy Franklin Date: Sun, 25 Sep 2016 15:09:09 -0400 Subject: [PATCH 32/72] Resolves: #1373601 - Fix several type comparison issues including BZ #1373601 --- flex-max_size.patch | 37 ++++++++++++++++++++++++++++++++++++ flex-new_size.patch | 19 +++++++++++++++++++ flex-yy_buf_size.patch | 43 ++++++++++++++++++++++++++++++++++++++++++ flex.spec | 11 ++++++++++- 4 files changed, 109 insertions(+), 1 deletion(-) create mode 100644 flex-max_size.patch create mode 100644 flex-new_size.patch create mode 100644 flex-yy_buf_size.patch diff --git a/flex-max_size.patch b/flex-max_size.patch new file mode 100644 index 0000000..83d6753 --- /dev/null +++ b/flex-max_size.patch @@ -0,0 +1,37 @@ +commit 3946924ed5e77420c453bf841603c7278766093a +Author: rlar +Date: Sun Feb 28 15:20:31 2016 +0100 + + generated code, `max_size' seems to be of type `int', fix casts accordingly + +diff --git a/src/gen.c b/src/gen.c +index 21b27ae..d31aab3 100644 +--- a/src/gen.c ++++ b/src/gen.c +@@ -1875,7 +1875,7 @@ void make_tables (void) + if (!C_plus_plus) { + if (use_read) { + outn ("\terrno=0; \\"); +- outn ("\twhile ( (result = (int) read( fileno(yyin), buf, max_size )) < 0 ) \\"); ++ outn ("\twhile ( (result = (int) read( fileno(yyin), buf, (yy_size_t) max_size )) < 0 ) \\"); + outn ("\t{ \\"); + outn ("\t\tif( errno != EINTR) \\"); + outn ("\t\t{ \\"); +@@ -1891,7 +1891,7 @@ void make_tables (void) + outn ("\tif ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \\"); + outn ("\t\t{ \\"); + outn ("\t\tint c = '*'; \\"); +- outn ("\t\tsize_t n; \\"); ++ outn ("\t\tint n; \\"); + outn ("\t\tfor ( n = 0; n < max_size && \\"); + outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); + outn ("\t\t\tbuf[n] = (char) c; \\"); +@@ -1904,7 +1904,7 @@ void make_tables (void) + outn ("\telse \\"); + outn ("\t\t{ \\"); + outn ("\t\terrno=0; \\"); +- outn ("\t\twhile ( (result = (int) fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \\"); ++ outn ("\t\twhile ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \\"); + outn ("\t\t\t{ \\"); + outn ("\t\t\tif( errno != EINTR) \\"); + outn ("\t\t\t\t{ \\"); diff --git a/flex-new_size.patch b/flex-new_size.patch new file mode 100644 index 0000000..8de8bc3 --- /dev/null +++ b/flex-new_size.patch @@ -0,0 +1,19 @@ +commit 986bb5e29492a927a2ad157505c900f75c97016a +Author: rlar +Date: Sun Feb 28 15:20:31 2016 +0100 + + generated code, here `new_size' is of type `int', fix casts accordingly + +diff --git a/src/flex.skl b/src/flex.skl +index 2c25d21..540ce95 100644 +--- a/src/flex.skl ++++ b/src/flex.skl +@@ -1782,7 +1782,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], + /* Extend the array by 50%, plus the number we really need. */ + int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1); + YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( +- (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size M4_YY_CALL_LAST_ARG ); ++ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG ); + if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); + } diff --git a/flex-yy_buf_size.patch b/flex-yy_buf_size.patch new file mode 100644 index 0000000..7031eb7 --- /dev/null +++ b/flex-yy_buf_size.patch @@ -0,0 +1,43 @@ +commit 33dd868353ab98bc33363d43be5a8b0e7e049072 +Author: rlar +Date: Sun Feb 28 15:20:31 2016 +0100 + + generated code, `yy_buf_size' is of type `int', fix casts accordingly + +diff --git a/src/flex.skl b/src/flex.skl +index 0631725..2c25d21 100644 +--- a/src/flex.skl ++++ b/src/flex.skl +@@ -1732,7 +1732,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], + b->yy_ch_buf = (char *) + /* Include room in for 2 EOB chars. */ + yyrealloc( (void *) b->yy_ch_buf, +- b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG ); ++ (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG ); + } + else + /* Can't grow it, we don't own it. */ +@@ -2102,12 +2102,12 @@ static void yy_load_buffer_state YYFARGS0(void) + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + +- b->yy_buf_size = (yy_size_t)size; ++ b->yy_buf_size = size; + + /* yy_ch_buf has to be 2 characters longer than the size given because + * we need to put in 2 end-of-buffer characters. + */ +- b->yy_ch_buf = (char *) yyalloc( b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG ); ++ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG ); + if ( ! b->yy_ch_buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); + +@@ -2397,7 +2397,7 @@ YY_BUFFER_STATE yy_scan_buffer YYFARGS2( char *,base, yy_size_t ,size) + if ( ! b ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); + +- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ ++ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ + b->yy_buf_pos = b->yy_ch_buf = base; + b->yy_is_our_buffer = 0; + b->yy_input_file = NULL; diff --git a/flex.spec b/flex.spec index 3824420..49de7e9 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -14,6 +14,9 @@ URL: https://github.com/westes/flex Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.xz Patch0: flex-2.6.0-yyless.patch +Patch1: flex-max_size.patch +Patch2: flex-new_size.patch +Patch3: flex-yy_buf_size.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 @@ -61,6 +64,9 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -133,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Sun Sep 25 2016 Patsy Franklin - 2.6.1-2 +- Fix several type comparison issues including BZ #1373601 + * Tue Sep 13 2016 Rex Dieter - 2.6.1-1 - Rebase to 2.6.1 (#1318074,#1364943) - update URL (github), drop unused patches (#1238860) From 26fe0dfe580bba78517ca44cb4bd755be0cde4f5 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Wed, 1 Feb 2017 20:01:52 -0500 Subject: [PATCH 33/72] Add missing %license macro --- flex.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/flex.spec b/flex.spec index 49de7e9..e7e4dd4 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 2%{?dist} +Release: 3%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -120,7 +120,7 @@ rm -rf ${RPM_BUILD_ROOT} %files -f flex.lang %defattr(-,root,root) %dir %{_pkgdocdir} -%{_pkgdocdir}/COPYING +%license COPYING %{_pkgdocdir}/NEWS %{_pkgdocdir}/README %{_bindir}/* @@ -131,7 +131,7 @@ rm -rf ${RPM_BUILD_ROOT} %files devel %defattr(-,root,root) %dir %{_pkgdocdir} -%{_pkgdocdir}/COPYING +%license COPYING %{_libdir}/*.a %files doc @@ -139,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Feb 01 2017 Stephen Gallagher - 2.6.1-3 +- Add missing %%license macro + * Sun Sep 25 2016 Patsy Franklin - 2.6.1-2 - Fix several type comparison issues including BZ #1373601 From cf8a163ba8ea2aaf443fef0e6eb463f39b215420 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 26 Jul 2017 08:29:38 +0000 Subject: [PATCH 34/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index e7e4dd4..ae19ea3 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 3%{?dist} +Release: 4%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -139,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Jul 26 2017 Fedora Release Engineering - 2.6.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + * Wed Feb 01 2017 Stephen Gallagher - 2.6.1-3 - Add missing %%license macro From c8b4c0b5fbb657371da79d56620e157b267099ca Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 2 Aug 2017 20:38:20 +0000 Subject: [PATCH 35/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index ae19ea3..fd4538f 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 4%{?dist} +Release: 5%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -139,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Aug 02 2017 Fedora Release Engineering - 2.6.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + * Wed Jul 26 2017 Fedora Release Engineering - 2.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild From 0ef95e75c4267f90bdc8aec66cfe4ef6e4f3dbad Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 7 Feb 2018 09:48:40 +0000 Subject: [PATCH 36/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index fd4538f..3f93aea 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 5%{?dist} +Release: 6%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -139,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Wed Feb 07 2018 Fedora Release Engineering - 2.6.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + * Wed Aug 02 2017 Fedora Release Engineering - 2.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild From 16384829830f22df4a91778c9b9c96bd6970754e Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Fri, 9 Feb 2018 09:04:29 +0100 Subject: [PATCH 37/72] Escape macros in %changelog Reference: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/Y2ZUKK2B7T2IKXPMODNF6HB2O5T5TS6H/ Signed-off-by: Igor Gnatenko --- flex.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flex.spec b/flex.spec index 3f93aea..14e2487 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 6%{?dist} +Release: 7%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -139,6 +139,9 @@ rm -rf ${RPM_BUILD_ROOT} %{_pkgdocdir} %changelog +* Fri Feb 09 2018 Igor Gnatenko - 2.6.1-7 +- Escape macros in %%changelog + * Wed Feb 07 2018 Fedora Release Engineering - 2.6.1-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -191,7 +194,7 @@ rm -rf ${RPM_BUILD_ROOT} * Wed Apr 16 2014 Patsy Franklin - 2.5.37-5 - Add a patch to remove obsolete bison constructs YYLEX_PARAM and - YYPARSE_PARAM. Use %lex-param, %parse-param, or %param. + YYPARSE_PARAM. Use %%lex-param, %%parse-param, or %%param. * Tue Sep 3 2013 Petr Machata - 2.5.37-4 - Add a patch for "comparison between signed and unsigned" warnings From c7df4d76eee9babecb479e7da9aa120bcef291e8 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 13 Feb 2018 23:22:34 +0100 Subject: [PATCH 38/72] Remove BuildRoot definition None of currently supported distributions need that. It was needed last for EL5 which is EOL now Signed-off-by: Igor Gnatenko --- flex.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/flex.spec b/flex.spec index 14e2487..79f5ecb 100644 --- a/flex.spec +++ b/flex.spec @@ -18,7 +18,6 @@ Patch1: flex-max_size.patch Patch2: flex-new_size.patch Patch3: flex-yy_buf_size.patch -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 help2man Requires(post): /sbin/install-info From 3a93f140805c8c116d429229a100d50beb8d3840 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Wed, 14 Feb 2018 09:06:51 +0100 Subject: [PATCH 39/72] Remove %clean section None of currently supported distributions need that. Last one was EL5 which is EOL for a while. Signed-off-by: Igor Gnatenko --- flex.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/flex.spec b/flex.spec index 79f5ecb..37ee262 100644 --- a/flex.spec +++ b/flex.spec @@ -113,9 +113,6 @@ echo ============TESTING=============== make check echo ============END TESTING=========== -%clean -rm -rf ${RPM_BUILD_ROOT} - %files -f flex.lang %defattr(-,root,root) %dir %{_pkgdocdir} From 2aa1cb2053cbf192a27a5c3aa2ad002e82b251d9 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Wed, 27 Jun 2018 14:05:06 +0200 Subject: [PATCH 40/72] Include quilt tooling and convert patches to be used with quilt This is not a functional change and merely adds quilt scripts and a README explaining their usage. In addition, it rewrites patch levels to be in line with the result of 'quilt refresh -p ab'. No source changes are involved and the source files are identical. --- .gitignore | 1 + README.quilt | 40 ++++++++++++++++++++++++++++++++++++++++ flex-2.6.0-yyless.patch | 13 +++++++------ flex-max_size.patch | 4 ++-- flex-new_size.patch | 4 ++-- flex-yy_buf_size.patch | 8 ++++---- gen-quilt-series.sh | 34 ++++++++++++++++++++++++++++++++++ quilt-patch.sh | 22 ++++++++++++++++++++++ 8 files changed, 112 insertions(+), 14 deletions(-) create mode 100644 README.quilt create mode 100755 gen-quilt-series.sh create mode 100755 quilt-patch.sh diff --git a/.gitignore b/.gitignore index bba8076..c92bc60 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ flex-2.5.35.tar.bz2 /flex-2.5.39.tar.bz2 /flex-2.6.0.tar.bz2 /flex-2.6.1.tar.xz +series diff --git a/README.quilt b/README.quilt new file mode 100644 index 0000000..e53b9b9 --- /dev/null +++ b/README.quilt @@ -0,0 +1,40 @@ +This package supports working with patch files using quilt. + +To regenerate the quilt series file run: +./gen-quilt-series.sh + +Setup environment: +export QUILT_PATCHES=$PWD + +Setup the source: +./quilt-patch.sh [-f] + +Use `-f` if you want to have quilt-patch always remove the existing +source directory before starting. Otherwise you'll be patching on top of +an already patched tree generated perhaps by `*pkg prep`. + +To add a new patch: + +Option 1: Create a new patch: + +cd flex-2.6.1/ +quilt new flex-rh1439367.patch +quilt add tests/test-bison-yylloc/parser.y +# edit tests/test-bison-yylloc/parser.y +# you may add and edit several files in the same fashion + +Option 2: Add an already prepared patch (e.g. from an upstream commit): + +cd flex-2.6.1/ +quilt import -P flex-rh1439367.patch ~/backport/obsolete-bison.patch +quilt push # if this fails, manually deal with conflicts (as in Option 1) + +Finally: +quilt refresh -p ab +cd .. +git add flex-rh1439367.patch +# edit flex.spec to build with the new patch +git add flex.spec +git commit + +You're done! diff --git a/flex-2.6.0-yyless.patch b/flex-2.6.0-yyless.patch index 4bb7c3e..bf7cf6f 100644 --- a/flex-2.6.0-yyless.patch +++ b/flex-2.6.0-yyless.patch @@ -1,7 +1,8 @@ -diff -Nrup a/src/flex.skl b/src/flex.skl ---- a/src/flex.skl 2015-11-10 18:28:54.000000000 -0500 -+++ b/src/flex.skl 2016-03-07 23:52:46.527139783 -0500 -@@ -506,7 +506,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], +Index: b/src/flex.skl +=================================================================== +--- a/src/flex.skl ++++ b/src/flex.skl +@@ -494,7 +494,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], */ #define YY_LESS_LINENO(n) \ do { \ @@ -10,7 +11,7 @@ diff -Nrup a/src/flex.skl b/src/flex.skl for ( yyl = n; yyl < yyleng; ++yyl )\ if ( yytext[yyl] == '\n' )\ --yylineno;\ -@@ -532,7 +532,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], +@@ -520,7 +520,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], do \ { \ /* Undo effects of setting up yytext. */ \ @@ -19,7 +20,7 @@ diff -Nrup a/src/flex.skl b/src/flex.skl YY_LESS_LINENO(yyless_macro_arg);\ *yy_cp = YY_G(yy_hold_char); \ YY_RESTORE_YY_MORE_OFFSET \ -@@ -2591,7 +2591,7 @@ void yyFlexLexer::LexerError( yyconst ch +@@ -2576,7 +2576,7 @@ void yyFlexLexer::LexerError( yyconst ch do \ { \ /* Undo effects of setting up yytext. */ \ diff --git a/flex-max_size.patch b/flex-max_size.patch index 83d6753..133cfc1 100644 --- a/flex-max_size.patch +++ b/flex-max_size.patch @@ -4,8 +4,8 @@ Date: Sun Feb 28 15:20:31 2016 +0100 generated code, `max_size' seems to be of type `int', fix casts accordingly -diff --git a/src/gen.c b/src/gen.c -index 21b27ae..d31aab3 100644 +Index: b/src/gen.c +=================================================================== --- a/src/gen.c +++ b/src/gen.c @@ -1875,7 +1875,7 @@ void make_tables (void) diff --git a/flex-new_size.patch b/flex-new_size.patch index 8de8bc3..8f7fb5c 100644 --- a/flex-new_size.patch +++ b/flex-new_size.patch @@ -4,8 +4,8 @@ Date: Sun Feb 28 15:20:31 2016 +0100 generated code, here `new_size' is of type `int', fix casts accordingly -diff --git a/src/flex.skl b/src/flex.skl -index 2c25d21..540ce95 100644 +Index: b/src/flex.skl +=================================================================== --- a/src/flex.skl +++ b/src/flex.skl @@ -1782,7 +1782,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], diff --git a/flex-yy_buf_size.patch b/flex-yy_buf_size.patch index 7031eb7..fcf1e2e 100644 --- a/flex-yy_buf_size.patch +++ b/flex-yy_buf_size.patch @@ -4,8 +4,8 @@ Date: Sun Feb 28 15:20:31 2016 +0100 generated code, `yy_buf_size' is of type `int', fix casts accordingly -diff --git a/src/flex.skl b/src/flex.skl -index 0631725..2c25d21 100644 +Index: b/src/flex.skl +=================================================================== --- a/src/flex.skl +++ b/src/flex.skl @@ -1732,7 +1732,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], @@ -17,7 +17,7 @@ index 0631725..2c25d21 100644 } else /* Can't grow it, we don't own it. */ -@@ -2102,12 +2102,12 @@ static void yy_load_buffer_state YYFARGS0(void) +@@ -2102,12 +2102,12 @@ static void yy_load_buffer_state YYFARG if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); @@ -32,7 +32,7 @@ index 0631725..2c25d21 100644 if ( ! b->yy_ch_buf ) YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); -@@ -2397,7 +2397,7 @@ YY_BUFFER_STATE yy_scan_buffer YYFARGS2( char *,base, yy_size_t ,size) +@@ -2397,7 +2397,7 @@ YY_BUFFER_STATE yy_scan_buffer YYFARGS2 if ( ! b ) YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); diff --git a/gen-quilt-series.sh b/gen-quilt-series.sh new file mode 100755 index 0000000..6a2fc3a --- /dev/null +++ b/gen-quilt-series.sh @@ -0,0 +1,34 @@ +#!/bin/bash +# Autogenerates the quilt `series` from the patch order in the spec file. +# We don't use `quilt setup` because it makes a huge mess and doesn't work. +component="flex" +rm -f series.new +extra_args="--fuzz=0" +count=0 +# Filter out the patches, and use `_` as our pseudo-IFS to prevent expansion. +for i in `grep '^%patch' flex.spec | sed -e 's,%patch,,g' -e 's, ,_,g'`; do + # Split the patch into number and arguments. + # 1 - Patch number. + # 2-N - Patch arguments. + # Get back our elements by undoing pseudo-IFS change. + elements=(`echo $i | sed -e 's,_, ,g'`) + num=${elements[0]} + args=${elements[@]:1} + # Find the next patch that applies in order and write it out. + # This way we transform the patch # list into a patch file list in order. + grep "Patch${num}: " flex.spec \ + | sed -e 's,Patch.*: ,,g' -e "s,\$, ${args[@]} ${extra_args},g" \ + | sed -e "s,%{name},${component},g" \ + >> series.new + ((count++)) +done +# Double check we processed the correct number of patches. +fcount=`wc -l series.new | sed -e 's, .*$,,g'` +if [ $fcount -ne $count ]; then + echo "Error! Processed patch count doesn't match spec file count ($fcount != $count)." + exit 1 +fi +echo "Processed $count patches." +mv series.new series +echo "Generated quilt ./series file. Please do not commit." +exit 0 diff --git a/quilt-patch.sh b/quilt-patch.sh new file mode 100755 index 0000000..686d320 --- /dev/null +++ b/quilt-patch.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# Patches are in the current directory. +export QUILT_PATCHES=$PWD +# Extract source file name from sources file, +# and assume it's the same name as the directory. +source=`awk -F '[() ]+' '/^[A-Z0-9]+ /{print $2}; /^[0-9a-f]+ /{print $2}' sources` +srcdir=${source%.tar.xz} +if [ "$1" == "-f" ] && [ -d "$srcdir" ]; then + echo Cleaning up $srcdir + rm -rf $srcdir +fi +if [ -d "$srcdir" ]; then + # Don't overwrite existing source directory. + echo "ERROR: Source directory $srcdir already exists. Use -f to force cleanup step." + exit 1 +fi +tar xvf $source +echo "Entering $srcdir" +pushd $srcdir +# Apply all patches. +quilt push -a +popd From 967afaa6d03d053f00d05592a5bdf7cfa5a40fee Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Wed, 27 Jun 2018 14:43:04 +0200 Subject: [PATCH 41/72] Remove g++ signed/unsigned comparison warning in generated scanner Compiling a flex generated scanner with g++ with all warnings turned on (-Wall) produces a warning due to "comparison of integer expressions of different signedness". This change removes the warning by using the same signedness. This bug was a regression inherited from upstream flex during the rebase to flex-2.6.1. The same bug was fixed previously (albeit differently) by commit a3088c99e8. --- flex-yybytes_len.patch | 24 ++++++++++++++++++++++++ flex.spec | 7 ++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 flex-yybytes_len.patch diff --git a/flex-yybytes_len.patch b/flex-yybytes_len.patch new file mode 100644 index 0000000..9d204da --- /dev/null +++ b/flex-yybytes_len.patch @@ -0,0 +1,24 @@ +commit cf4121fa97abac8aeaa5e08b8fc0b2380228494e +Author: rlar +Date: Sat Feb 27 22:46:02 2016 +0100 + + generated code, `_yybytes_len' is of type `int', fix code accordingly + +Index: b/src/flex.skl +=================================================================== +--- a/src/flex.skl ++++ b/src/flex.skl +@@ -2451,11 +2451,11 @@ YY_BUFFER_STATE yy_scan_bytes YYFARGS2( + YY_BUFFER_STATE b; + char *buf; + yy_size_t n; +- yy_size_t i; ++ int i; + m4_dnl M4_YY_DECL_GUTS_VAR(); + + /* Get memory for full buffer, including space for trailing EOB's. */ +- n = (yy_size_t) _yybytes_len + 2; ++ n = (yy_size_t) (_yybytes_len + 2); + buf = (char *) yyalloc( n M4_YY_CALL_LAST_ARG ); + if ( ! buf ) + YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); diff --git a/flex.spec b/flex.spec index 37ee262..e8b73d7 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 7%{?dist} +Release: 8%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -17,6 +17,7 @@ Patch0: flex-2.6.0-yyless.patch Patch1: flex-max_size.patch Patch2: flex-new_size.patch Patch3: flex-yy_buf_size.patch +Patch4: flex-yybytes_len.patch Requires: m4 BuildRequires: gettext bison m4 help2man @@ -66,6 +67,7 @@ plain text and PDF formats. %patch1 -p1 %patch2 -p1 %patch3 -p1 +%patch4 -p1 %build %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -135,6 +137,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Wed Jun 27 2018 Arjun Shankar - 2.6.1-8 +- Remove g++ signed/unsigned comparison warning in generated scanner + * Fri Feb 09 2018 Igor Gnatenko - 2.6.1-7 - Escape macros in %%changelog From 46592962ea508cf4f2e36fb680b6ddb6f7378fb4 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 9 Jul 2018 19:06:44 +0200 Subject: [PATCH 42/72] add BuildRequires: gcc Reference: https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot --- flex.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/flex.spec b/flex.spec index e8b73d7..608bec6 100644 --- a/flex.spec +++ b/flex.spec @@ -20,6 +20,7 @@ Patch3: flex-yy_buf_size.patch Patch4: flex-yybytes_len.patch Requires: m4 +BuildRequires: gcc BuildRequires: gettext bison m4 help2man Requires(post): /sbin/install-info Requires(preun): /sbin/install-info From 7ee751b935acaf1dc5d29900c4a480d24011c80c Mon Sep 17 00:00:00 2001 From: Jason Tibbitts Date: Tue, 10 Jul 2018 00:50:56 -0500 Subject: [PATCH 43/72] Remove needless use of %defattr --- flex.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/flex.spec b/flex.spec index 608bec6..b78754a 100644 --- a/flex.spec +++ b/flex.spec @@ -117,7 +117,6 @@ make check echo ============END TESTING=========== %files -f flex.lang -%defattr(-,root,root) %dir %{_pkgdocdir} %license COPYING %{_pkgdocdir}/NEWS @@ -128,13 +127,11 @@ echo ============END TESTING=========== %{_infodir}/flex.info* %files devel -%defattr(-,root,root) %dir %{_pkgdocdir} %license COPYING %{_libdir}/*.a %files doc -%defattr(-,root,root) %{_pkgdocdir} %changelog From 24741c559e8bfd172e92f0f36323fd177b99909f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 13 Jul 2018 00:38:51 +0000 Subject: [PATCH 44/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index b78754a..5f3bc5d 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 8%{?dist} +Release: 9%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -135,6 +135,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Fri Jul 13 2018 Fedora Release Engineering - 2.6.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + * Wed Jun 27 2018 Arjun Shankar - 2.6.1-8 - Remove g++ signed/unsigned comparison warning in generated scanner From c6ddf9b3288776a33b5b8efbfd6d6a88406926f9 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Mon, 23 Jul 2018 16:58:05 +0200 Subject: [PATCH 45/72] Add gcc-c++ to BuildRequires --- flex.spec | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/flex.spec b/flex.spec index 5f3bc5d..2dafd28 100644 --- a/flex.spec +++ b/flex.spec @@ -20,8 +20,7 @@ Patch3: flex-yy_buf_size.patch Patch4: flex-yybytes_len.patch Requires: m4 -BuildRequires: gcc -BuildRequires: gettext bison m4 help2man +BuildRequires: gettext bison m4 help2man gcc gcc-c++ Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -135,6 +134,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Mon Jul 23 2018 Arjun Shankar - 2.6.1-10 +- Add gcc-c++ as a build-time requirement + * Fri Jul 13 2018 Fedora Release Engineering - 2.6.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild From ffa5f9318b2f8b35691ecc6e04791d9159002695 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Mon, 23 Jul 2018 18:13:55 +0200 Subject: [PATCH 46/72] Bump release The release bump was missed during the previous change. --- flex.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 2dafd28..36b75ac 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.1 -Release: 9%{?dist} +Release: 10%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. From c0c5e9ed4b9876af4c487143a10d0364c940e893 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Mon, 3 Sep 2018 18:20:44 +0200 Subject: [PATCH 47/72] Rebase to 2.6.4 (#1389575) This patch rebases flex to upstream version 2.6.4 and thus drops all backported upstream patches that the package has been carrying so far. One exception is flex-2.6.0-yyless.patch which has no equivalent upstream. I could not track the origin of this patch because flex development moved from SourceForge to GitHub and in the process, sourceforge bug tracker content has been lost. However, RHBZ #1281976 seems to suggest that this patch was included in order to fix a libreswan build failure caused by a flex integer comparison type mismatch bug. I dropped flex-2.6.0-yyless.patch and confirmed that the Fedora libreswan package corresponding to libreswan-3.25 builds successfully despite this patch being dropped. Additionally, flex-2.6.4 FTBFS because it uses reallocarray but does not define _GNU_SOURCE leading to a missing prototype for reallocarray. This commit also includes the upstream patch that fixes this. The patch modifies configure.ac, which necessitates executing autoreconf at build time and thus a corresponding set of new build dependencies. --- .gitignore | 1 + flex-2.6.0-yyless.patch | 31 ----------------------------- flex-max_size.patch | 37 ----------------------------------- flex-new_size.patch | 19 ------------------ flex-rh1389575.patch | 39 +++++++++++++++++++++++++++++++++++++ flex-yy_buf_size.patch | 43 ----------------------------------------- flex-yybytes_len.patch | 24 ----------------------- flex.spec | 27 +++++++++++++------------- quilt-patch.sh | 2 +- sources | 2 +- 10 files changed, 55 insertions(+), 170 deletions(-) delete mode 100644 flex-2.6.0-yyless.patch delete mode 100644 flex-max_size.patch delete mode 100644 flex-new_size.patch create mode 100644 flex-rh1389575.patch delete mode 100644 flex-yy_buf_size.patch delete mode 100644 flex-yybytes_len.patch diff --git a/.gitignore b/.gitignore index c92bc60..b3edfc9 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ flex-2.5.35.tar.bz2 /flex-2.5.39.tar.bz2 /flex-2.6.0.tar.bz2 /flex-2.6.1.tar.xz +/flex-2.6.4.tar.gz series diff --git a/flex-2.6.0-yyless.patch b/flex-2.6.0-yyless.patch deleted file mode 100644 index bf7cf6f..0000000 --- a/flex-2.6.0-yyless.patch +++ /dev/null @@ -1,31 +0,0 @@ -Index: b/src/flex.skl -=================================================================== ---- a/src/flex.skl -+++ b/src/flex.skl -@@ -494,7 +494,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], - */ - #define YY_LESS_LINENO(n) \ - do { \ -- int yyl;\ -+ yy_size_t yyl;\ - for ( yyl = n; yyl < yyleng; ++yyl )\ - if ( yytext[yyl] == '\n' )\ - --yylineno;\ -@@ -520,7 +520,7 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], - do \ - { \ - /* Undo effects of setting up yytext. */ \ -- int yyless_macro_arg = (n); \ -+ yy_size_t yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - *yy_cp = YY_G(yy_hold_char); \ - YY_RESTORE_YY_MORE_OFFSET \ -@@ -2576,7 +2576,7 @@ void yyFlexLexer::LexerError( yyconst ch - do \ - { \ - /* Undo effects of setting up yytext. */ \ -- int yyless_macro_arg = (n); \ -+ yy_size_t yyless_macro_arg = (n); \ - YY_LESS_LINENO(yyless_macro_arg);\ - yytext[yyleng] = YY_G(yy_hold_char); \ - YY_G(yy_c_buf_p) = yytext + yyless_macro_arg; \ diff --git a/flex-max_size.patch b/flex-max_size.patch deleted file mode 100644 index 133cfc1..0000000 --- a/flex-max_size.patch +++ /dev/null @@ -1,37 +0,0 @@ -commit 3946924ed5e77420c453bf841603c7278766093a -Author: rlar -Date: Sun Feb 28 15:20:31 2016 +0100 - - generated code, `max_size' seems to be of type `int', fix casts accordingly - -Index: b/src/gen.c -=================================================================== ---- a/src/gen.c -+++ b/src/gen.c -@@ -1875,7 +1875,7 @@ void make_tables (void) - if (!C_plus_plus) { - if (use_read) { - outn ("\terrno=0; \\"); -- outn ("\twhile ( (result = (int) read( fileno(yyin), buf, max_size )) < 0 ) \\"); -+ outn ("\twhile ( (result = (int) read( fileno(yyin), buf, (yy_size_t) max_size )) < 0 ) \\"); - outn ("\t{ \\"); - outn ("\t\tif( errno != EINTR) \\"); - outn ("\t\t{ \\"); -@@ -1891,7 +1891,7 @@ void make_tables (void) - outn ("\tif ( YY_CURRENT_BUFFER_LVALUE->yy_is_interactive ) \\"); - outn ("\t\t{ \\"); - outn ("\t\tint c = '*'; \\"); -- outn ("\t\tsize_t n; \\"); -+ outn ("\t\tint n; \\"); - outn ("\t\tfor ( n = 0; n < max_size && \\"); - outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); - outn ("\t\t\tbuf[n] = (char) c; \\"); -@@ -1904,7 +1904,7 @@ void make_tables (void) - outn ("\telse \\"); - outn ("\t\t{ \\"); - outn ("\t\terrno=0; \\"); -- outn ("\t\twhile ( (result = (int) fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \\"); -+ outn ("\t\twhile ( (result = (int) fread(buf, 1, (yy_size_t) max_size, yyin)) == 0 && ferror(yyin)) \\"); - outn ("\t\t\t{ \\"); - outn ("\t\t\tif( errno != EINTR) \\"); - outn ("\t\t\t\t{ \\"); diff --git a/flex-new_size.patch b/flex-new_size.patch deleted file mode 100644 index 8f7fb5c..0000000 --- a/flex-new_size.patch +++ /dev/null @@ -1,19 +0,0 @@ -commit 986bb5e29492a927a2ad157505c900f75c97016a -Author: rlar -Date: Sun Feb 28 15:20:31 2016 +0100 - - generated code, here `new_size' is of type `int', fix casts accordingly - -Index: b/src/flex.skl -=================================================================== ---- a/src/flex.skl -+++ b/src/flex.skl -@@ -1782,7 +1782,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], - /* Extend the array by 50%, plus the number we really need. */ - int new_size = YY_G(yy_n_chars) + number_to_move + (YY_G(yy_n_chars) >> 1); - YY_CURRENT_BUFFER_LVALUE->yy_ch_buf = (char *) yyrealloc( -- (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, new_size M4_YY_CALL_LAST_ARG ); -+ (void *) YY_CURRENT_BUFFER_LVALUE->yy_ch_buf, (yy_size_t) new_size M4_YY_CALL_LAST_ARG ); - if ( ! YY_CURRENT_BUFFER_LVALUE->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_get_next_buffer()" ); - } diff --git a/flex-rh1389575.patch b/flex-rh1389575.patch new file mode 100644 index 0000000..9095626 --- /dev/null +++ b/flex-rh1389575.patch @@ -0,0 +1,39 @@ +This patch fixes a flex-2.6.4 build failure on x86_64 and possibly other +architectures where `size_t' is larger than `int'. The failure occurs as +follows: + +A missing `reallocarray' prototype during compilation means that the +compiler assumes an `int' return type. When compiling with `-pie' (standard +for Fedora), addresses on the heap can be larger than `int' can store. Thus, +pointers returned from `reallocarray' are truncated and any read/write to +them leads to a SIGSEGV. + +From 24fd0551333e7eded87b64dd36062da3df2f6380 Mon Sep 17 00:00:00 2001 +From: Explorer09 +Date: Mon, 4 Sep 2017 10:47:33 +0800 +Subject: [PATCH] build: AC_USE_SYSTEM_EXTENSIONS in configure.ac. + +This would, e.g. define _GNU_SOURCE in config.h, enabling the +reallocarray() prototype in glibc 2.26+ on Linux systems with that +version of glibc. + +Fixes #241. +--- + configure.ac | 2 ++ + 1 file changed, 2 insertions(+) + +Index: b/configure.ac +=================================================================== +--- a/configure.ac ++++ b/configure.ac +@@ -25,8 +25,10 @@ + # autoconf requirements and initialization + + AC_INIT([the fast lexical analyser generator],[2.6.4],[flex-help@lists.sourceforge.net],[flex]) ++AC_PREREQ([2.60]) + AC_CONFIG_SRCDIR([src/scan.l]) + AC_CONFIG_AUX_DIR([build-aux]) ++AC_USE_SYSTEM_EXTENSIONS + LT_INIT + AM_INIT_AUTOMAKE([1.11.3 -Wno-portability foreign check-news std-options dist-lzip parallel-tests subdir-objects]) + AC_CONFIG_HEADER([src/config.h]) diff --git a/flex-yy_buf_size.patch b/flex-yy_buf_size.patch deleted file mode 100644 index fcf1e2e..0000000 --- a/flex-yy_buf_size.patch +++ /dev/null @@ -1,43 +0,0 @@ -commit 33dd868353ab98bc33363d43be5a8b0e7e049072 -Author: rlar -Date: Sun Feb 28 15:20:31 2016 +0100 - - generated code, `yy_buf_size' is of type `int', fix casts accordingly - -Index: b/src/flex.skl -=================================================================== ---- a/src/flex.skl -+++ b/src/flex.skl -@@ -1732,7 +1732,7 @@ m4_ifdef( [[M4_YY_USES_REJECT]], - b->yy_ch_buf = (char *) - /* Include room in for 2 EOB chars. */ - yyrealloc( (void *) b->yy_ch_buf, -- b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG ); -+ (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG ); - } - else - /* Can't grow it, we don't own it. */ -@@ -2102,12 +2102,12 @@ static void yy_load_buffer_state YYFARG - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - -- b->yy_buf_size = (yy_size_t)size; -+ b->yy_buf_size = size; - - /* yy_ch_buf has to be 2 characters longer than the size given because - * we need to put in 2 end-of-buffer characters. - */ -- b->yy_ch_buf = (char *) yyalloc( b->yy_buf_size + 2 M4_YY_CALL_LAST_ARG ); -+ b->yy_ch_buf = (char *) yyalloc( (yy_size_t) (b->yy_buf_size + 2) M4_YY_CALL_LAST_ARG ); - if ( ! b->yy_ch_buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_create_buffer()" ); - -@@ -2397,7 +2397,7 @@ YY_BUFFER_STATE yy_scan_buffer YYFARGS2 - if ( ! b ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_buffer()" ); - -- b->yy_buf_size = size - 2; /* "- 2" to take care of EOB's */ -+ b->yy_buf_size = (int) (size - 2); /* "- 2" to take care of EOB's */ - b->yy_buf_pos = b->yy_ch_buf = base; - b->yy_is_our_buffer = 0; - b->yy_input_file = NULL; diff --git a/flex-yybytes_len.patch b/flex-yybytes_len.patch deleted file mode 100644 index 9d204da..0000000 --- a/flex-yybytes_len.patch +++ /dev/null @@ -1,24 +0,0 @@ -commit cf4121fa97abac8aeaa5e08b8fc0b2380228494e -Author: rlar -Date: Sat Feb 27 22:46:02 2016 +0100 - - generated code, `_yybytes_len' is of type `int', fix code accordingly - -Index: b/src/flex.skl -=================================================================== ---- a/src/flex.skl -+++ b/src/flex.skl -@@ -2451,11 +2451,11 @@ YY_BUFFER_STATE yy_scan_bytes YYFARGS2( - YY_BUFFER_STATE b; - char *buf; - yy_size_t n; -- yy_size_t i; -+ int i; - m4_dnl M4_YY_DECL_GUTS_VAR(); - - /* Get memory for full buffer, including space for trailing EOB's. */ -- n = (yy_size_t) _yybytes_len + 2; -+ n = (yy_size_t) (_yybytes_len + 2); - buf = (char *) yyalloc( n M4_YY_CALL_LAST_ARG ); - if ( ! buf ) - YY_FATAL_ERROR( "out of dynamic memory in yy_scan_bytes()" ); diff --git a/flex.spec b/flex.spec index 36b75ac..56148c4 100644 --- a/flex.spec +++ b/flex.spec @@ -2,8 +2,8 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex -Version: 2.6.1 -Release: 10%{?dist} +Version: 2.6.4 +Release: 1%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -11,16 +11,12 @@ Release: 10%{?dist} License: BSD and LGPLv2+ Group: Development/Tools URL: https://github.com/westes/flex -Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.xz +Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.gz -Patch0: flex-2.6.0-yyless.patch -Patch1: flex-max_size.patch -Patch2: flex-new_size.patch -Patch3: flex-yy_buf_size.patch -Patch4: flex-yybytes_len.patch +Patch0: flex-rh1389575.patch Requires: m4 -BuildRequires: gettext bison m4 help2man gcc gcc-c++ +BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool Requires(post): /sbin/install-info Requires(preun): /sbin/install-info @@ -64,12 +60,9 @@ plain text and PDF formats. %prep %setup -q %patch0 -p1 -%patch1 -p1 -%patch2 -p1 -%patch3 -p1 -%patch4 -p1 %build +autoreconf -i %configure --docdir=%{_pkgdocdir} CFLAGS="-fPIC $RPM_OPT_FLAGS" make %{?_smp_mflags} @@ -119,7 +112,7 @@ echo ============END TESTING=========== %dir %{_pkgdocdir} %license COPYING %{_pkgdocdir}/NEWS -%{_pkgdocdir}/README +%{_pkgdocdir}/README.md %{_bindir}/* %{_mandir}/man1/* %{_includedir}/FlexLexer.h @@ -134,6 +127,12 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Mon Sep 03 2018 Arjun Shankar - 2.6.4-1 +- Rebase to 2.6.4 +- Fix build failure due to missing include and `reallocarray' prototype +- Add gettext-devel, automake and libtool to build dependencies, and + execute `autoreconf -i' to regenerate files after patching configure.ac + * Mon Jul 23 2018 Arjun Shankar - 2.6.1-10 - Add gcc-c++ as a build-time requirement diff --git a/quilt-patch.sh b/quilt-patch.sh index 686d320..ff55b53 100755 --- a/quilt-patch.sh +++ b/quilt-patch.sh @@ -4,7 +4,7 @@ export QUILT_PATCHES=$PWD # Extract source file name from sources file, # and assume it's the same name as the directory. source=`awk -F '[() ]+' '/^[A-Z0-9]+ /{print $2}; /^[0-9a-f]+ /{print $2}' sources` -srcdir=${source%.tar.xz} +srcdir=${source%.tar.gz} if [ "$1" == "-f" ] && [ -d "$srcdir" ]; then echo Cleaning up $srcdir rm -rf $srcdir diff --git a/sources b/sources index 19ee67c..67236e5 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -cd3c86290fc2676a641aefafeb10848a flex-2.6.1.tar.xz +SHA512 (flex-2.6.4.tar.gz) = e9785f3d620a204b7d20222888917dc065c2036cae28667065bf7862dfa1b25235095a12fd04efdbd09bfd17d3452e6b9ef953a8c1137862ff671c97132a082e From 61d01ac2729d571c8c33a907255049388cfdaebb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 27 Jan 2019 15:30:36 +0100 Subject: [PATCH 48/72] Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- flex.spec | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/flex.spec b/flex.spec index 56148c4..bf23350 100644 --- a/flex.spec +++ b/flex.spec @@ -17,8 +17,6 @@ Patch0: flex-rh1389575.patch Requires: m4 BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info %description The flex program generates scanners. Scanners are programs which can @@ -91,18 +89,6 @@ find %{buildroot} -name '*.so.2.0.0' -delete %find_lang flex -%post -if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs - /sbin/install-info %{_infodir}/flex.info.gz --dir-file=%{_infodir}/dir ||: -fi - -%preun -if [ $1 = 0 ]; then - if [ -f %{_infodir}/flex.info.gz ]; then # for --excludedocs - /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir ||: - fi -fi - %check echo ============TESTING=============== make check From 71b1cadc9c5f314717b5832d0ab990c80f221910 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 28 Jan 2019 20:17:44 +0100 Subject: [PATCH 49/72] Remove obsolete Group tag References: https://fedoraproject.org/wiki/Changes/Remove_Group_Tag --- flex.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/flex.spec b/flex.spec index bf23350..2d833cd 100644 --- a/flex.spec +++ b/flex.spec @@ -9,7 +9,6 @@ Release: 1%{?dist} # let's assume that the relicensing was done. # gettext.h (copied from gnulib) is under LGPLv2+ License: BSD and LGPLv2+ -Group: Development/Tools URL: https://github.com/westes/flex Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.gz @@ -36,7 +35,6 @@ application development. # installations of flex. %package devel Summary: Libraries for flex scanner generator -Group: Development/Tools Obsoletes: flex-static < 2.5.35-15 Provides: flex-static @@ -48,7 +46,6 @@ instead of implementing their own. %package doc Summary: Documentation for flex scanner generator -Group: Documentation %description doc From f8de7fa8f1b1d8297bb57a565872d1b6f2130867 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 31 Jan 2019 19:50:29 +0000 Subject: [PATCH 50/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 2d833cd..a7fffe5 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 1%{?dist} +Release: 2%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -110,6 +110,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Thu Jan 31 2019 Fedora Release Engineering - 2.6.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + * Mon Sep 03 2018 Arjun Shankar - 2.6.4-1 - Rebase to 2.6.4 - Fix build failure due to missing include and `reallocarray' prototype From b089780d0be6c157ac87e29ed3952d4061009629 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 25 Jul 2019 00:42:58 +0000 Subject: [PATCH 51/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index a7fffe5..7652790 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 2%{?dist} +Release: 3%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -110,6 +110,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Thu Jul 25 2019 Fedora Release Engineering - 2.6.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + * Thu Jan 31 2019 Fedora Release Engineering - 2.6.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild From ad90513c6be11a74624e75cae3a2c3df31543fb8 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 28 Jan 2020 18:39:36 +0000 Subject: [PATCH 52/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 7652790..3a6f25c 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 3%{?dist} +Release: 4%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -110,6 +110,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Tue Jan 28 2020 Fedora Release Engineering - 2.6.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + * Thu Jul 25 2019 Fedora Release Engineering - 2.6.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild From f0b1e7d68b13d787f04321aa691c10c8640f95ff Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Mon, 27 Jul 2020 17:34:32 +0000 Subject: [PATCH 53/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 3a6f25c..a07ca11 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for creating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 4%{?dist} +Release: 5%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -110,6 +110,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Mon Jul 27 2020 Fedora Release Engineering - 2.6.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + * Tue Jan 28 2020 Fedora Release Engineering - 2.6.4-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild From 9adf2296f3603e2ee68328283ad625d080ae1c2a Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Fri, 21 Aug 2020 11:57:37 +0200 Subject: [PATCH 54/72] Re-work and rename flex subpackages, and provide shared libraries This resolves a user request for a shared library (#1327851) and harmonizes package names and content with Debian and SUSE. The following subpackage changes have been made: - Remove and obsolete the flex-devel subpackage containing static libraries - Provide shared libraries in a new subpackage named libfl2 - Provide development files in a new subpackage named libfl-devel - Provide static libraries in a new subpackage named libfl-static --- flex.spec | 76 +++++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 57 insertions(+), 19 deletions(-) diff --git a/flex.spec b/flex.spec index a07ca11..3bc94c0 100644 --- a/flex.spec +++ b/flex.spec @@ -1,9 +1,9 @@ %{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}} -Summary: A tool for creating scanners (text pattern recognizers) +Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 5%{?dist} +Release: 6%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -33,23 +33,54 @@ application development. # We keep the libraries in separate sub-package to allow for multilib # installations of flex. -%package devel -Summary: Libraries for flex scanner generator + +%define somajor 2 + +%package -n libfl%{somajor} +Summary: Libraries for the flex scanner generator + +%description -n libfl%{somajor} +flex is a tool for generating scanners. + +This package contains the shared library with default implementations of +`main' and `yywrap' functions that binaries using flex can choose to link +against instead of implementing on their own. + +%package -n libfl-devel +Summary: Development files for the flex scanner generator +Requires: libfl%{somajor} = %{version}-%{release} + +%description -n libfl-devel +flex is a tool for generating scanners. + +This package contains files required to build programs that use flex +libraries. + +%package -n libfl-static +Summary: Static libraries for the flex scanner generator +# We renamed flex-static to flex-devel in version 2.5.35-15: Obsoletes: flex-static < 2.5.35-15 Provides: flex-static +# We renamed flex-devel to libfl-static in version 2.6.4-6. This clarifies +# the nature of the package and brings us in line with naming used by SUSE +# and Debian: +Obsoletes: flex-devel < 2.6.4-6 +Provides: flex-devel -%description devel +%description -n libfl-static -This package contains the library with default implementations of -`main' and `yywrap' functions that the client binary can choose to use -instead of implementing their own. +flex is a tool for generating scanners. + +This package contains the static library with default implementations of +`main' and `yywrap' functions that binaries using flex can choose to +statically link against instead of implementing their own. %package doc -Summary: Documentation for flex scanner generator +Summary: Documentation for the flex scanner generator %description doc -This package contains documentation for flex scanner generator in +This package contains documentation for the flex scanner generator in plain text and PDF formats. %prep @@ -66,15 +97,8 @@ rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO} -# For now, excluding the new .la and .so files as we haven't had -# any requests for them and adding them will require a new subpackage. -# The .so files contain 2 optional implementations of main and yywrap -# for developer convenience. They are also available in the .a file -# provided in flex-devel. +# Exclude libtool archives (.la) as per Fedora packaging guidelines find %{buildroot} -name '*.la' -delete -find %{buildroot} -name '*.so' -delete -find %{buildroot} -name '*.so.2' -delete -find %{buildroot} -name '*.so.2.0.0' -delete ( cd ${RPM_BUILD_ROOT} ln -sf flex .%{_bindir}/lex @@ -101,7 +125,14 @@ echo ============END TESTING=========== %{_includedir}/FlexLexer.h %{_infodir}/flex.info* -%files devel +%files -n libfl%{somajor} +%{_libdir}/libfl.so.%{somajor}* + +%files -n libfl-devel +%{_includedir}/FlexLexer.h +%{_libdir}/libfl.so + +%files -n libfl-static %dir %{_pkgdocdir} %license COPYING %{_libdir}/*.a @@ -110,6 +141,13 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Fri Aug 21 2020 Arjun Shankar - 2.6.4-6 +- Re-work flex subpackages and provide shared libraries (#1327851): +- Remove and obsolete the flex-devel subpackage containing static libraries +- Provide shared libraries in a new subpackage named libfl2 +- Provide development files in a new subpackage named libfl-devel +- Provide static libraries in a new subpackage named libfl-static + * Mon Jul 27 2020 Fedora Release Engineering - 2.6.4-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild From bfe32fe72b83edec7756c4174b913f47b9cde9c5 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Fri, 18 Dec 2020 22:42:41 +0000 Subject: [PATCH 55/72] Add BuildRequires: make https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot --- flex.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/flex.spec b/flex.spec index 3bc94c0..288fe2f 100644 --- a/flex.spec +++ b/flex.spec @@ -16,6 +16,7 @@ Patch0: flex-rh1389575.patch Requires: m4 BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool +BuildRequires: make %description The flex program generates scanners. Scanners are programs which can From d13f0a58066616f854749da1b196bacb941dfdea Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Tue, 26 Jan 2021 05:40:01 +0000 Subject: [PATCH 56/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 288fe2f..fdd19fb 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 6%{?dist} +Release: 7%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -142,6 +142,9 @@ echo ============END TESTING=========== %{_pkgdocdir} %changelog +* Tue Jan 26 2021 Fedora Release Engineering - 2.6.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + * Fri Aug 21 2020 Arjun Shankar - 2.6.4-6 - Re-work flex subpackages and provide shared libraries (#1327851): - Remove and obsolete the flex-devel subpackage containing static libraries From 8a8070ad74c0fa674f7f2b20a782284f6b69e752 Mon Sep 17 00:00:00 2001 From: Edjunior Machado Date: Mon, 18 Jan 2021 22:11:55 +0100 Subject: [PATCH 57/72] Introduce CI gating --- .fmf/version | 1 + gating.yaml | 19 +++++ plans/ci.fmf | 6 ++ tests/Sanity/smoke-check-flex-runs/Makefile | 63 +++++++++++++++ tests/Sanity/smoke-check-flex-runs/PURPOSE | 3 + .../smoke-check-flex-runs/calc-grammar.y | 36 +++++++++ .../Sanity/smoke-check-flex-runs/calc-lexer.l | 15 ++++ .../count_chars_and_lines.l | 21 +++++ .../expected_calc_output.txt | 3 + tests/Sanity/smoke-check-flex-runs/main.fmf | 15 ++++ tests/Sanity/smoke-check-flex-runs/runtest.sh | 78 +++++++++++++++++++ 11 files changed, 260 insertions(+) create mode 100644 .fmf/version create mode 100644 gating.yaml create mode 100644 plans/ci.fmf create mode 100644 tests/Sanity/smoke-check-flex-runs/Makefile create mode 100644 tests/Sanity/smoke-check-flex-runs/PURPOSE create mode 100644 tests/Sanity/smoke-check-flex-runs/calc-grammar.y create mode 100644 tests/Sanity/smoke-check-flex-runs/calc-lexer.l create mode 100644 tests/Sanity/smoke-check-flex-runs/count_chars_and_lines.l create mode 100644 tests/Sanity/smoke-check-flex-runs/expected_calc_output.txt create mode 100644 tests/Sanity/smoke-check-flex-runs/main.fmf create mode 100755 tests/Sanity/smoke-check-flex-runs/runtest.sh diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/gating.yaml b/gating.yaml new file mode 100644 index 0000000..ce3cdc1 --- /dev/null +++ b/gating.yaml @@ -0,0 +1,19 @@ +--- !Policy +product_versions: + - fedora-* +decision_context: bodhi_update_push_stable +subject_type: koji_build +rules: + - !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional} +--- !Policy +product_versions: + - rhel-8 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} +--- !Policy +product_versions: + - rhel-9 +decision_context: osci_compose_gate +rules: + - !PassingTestCaseRule {test_case_name: baseos-ci.brew-build.tier1.functional} diff --git a/plans/ci.fmf b/plans/ci.fmf new file mode 100644 index 0000000..1ad2c12 --- /dev/null +++ b/plans/ci.fmf @@ -0,0 +1,6 @@ +summary: CI Gating Plan +discover: + how: fmf + directory: tests +execute: + how: beakerlib diff --git a/tests/Sanity/smoke-check-flex-runs/Makefile b/tests/Sanity/smoke-check-flex-runs/Makefile new file mode 100644 index 0000000..3abe871 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/Makefile @@ -0,0 +1,63 @@ +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Makefile of /tools/flex/Sanity/smoke-check-flex-runs +# Description: Show your version. Build a one-file project. +# Author: Vaclav Kadlcik +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2015 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +export TEST=/tools/flex/Sanity/smoke-check-flex-runs +export TESTVERSION=1.0 + +BUILT_FILES= + +FILES=$(METADATA) runtest.sh Makefile PURPOSE count_chars_and_lines.l calc-lexer.l calc-grammar.y expected_calc_output.txt + +.PHONY: all install download clean + +run: $(FILES) build + ./runtest.sh + +build: $(BUILT_FILES) + test -x runtest.sh || chmod a+x runtest.sh + +clean: + rm -f *~ $(BUILT_FILES) + + +include /usr/share/rhts/lib/rhts-make.include + +$(METADATA): Makefile + @echo "Owner: Vaclav Kadlcik " > $(METADATA) + @echo "Name: $(TEST)" >> $(METADATA) + @echo "TestVersion: $(TESTVERSION)" >> $(METADATA) + @echo "Path: $(TEST_DIR)" >> $(METADATA) + @echo "Description: Show your version. Build a one-file project." >> $(METADATA) + @echo "Type: Sanity" >> $(METADATA) + @echo "TestTime: 15m" >> $(METADATA) + @echo "RunFor: flex" >> $(METADATA) + @echo "Requires: flex bison gcc" >> $(METADATA) + @echo "Priority: Normal" >> $(METADATA) + @echo "License: GPLv2+" >> $(METADATA) + @echo "Confidential: no" >> $(METADATA) + @echo "Destructive: no" >> $(METADATA) + @echo "Releases: -RHEL4 -RHELClient5 -RHELServer5" >> $(METADATA) + + rhts-lint $(METADATA) diff --git a/tests/Sanity/smoke-check-flex-runs/PURPOSE b/tests/Sanity/smoke-check-flex-runs/PURPOSE new file mode 100644 index 0000000..ed0f21f --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/PURPOSE @@ -0,0 +1,3 @@ +PURPOSE of /tools/flex/Sanity/smoke-check-flex-runs +Description: Show your version. Build a one-file project. +Author: Vaclav Kadlcik diff --git a/tests/Sanity/smoke-check-flex-runs/calc-grammar.y b/tests/Sanity/smoke-check-flex-runs/calc-grammar.y new file mode 100644 index 0000000..53d4a85 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/calc-grammar.y @@ -0,0 +1,36 @@ +%{ +#include +%} + +%token NUMBER +%token ADD SUB MUL DIV +%token EOL + +%% + +input: + | input EOL { } + | input expression EOL { printf("%d\n", $2); } + ; + +expression: + factor + | expression ADD factor { $$ = $1 + $3; } + | expression SUB factor { $$ = $1 - $3; } + ; + +factor: + NUMBER + | factor MUL NUMBER { $$ = $1 * $3; } + | factor DIV NUMBER { $$ = $1 / $3; } + ; + +%% + +int main(int argc, char ** argv) { + yyparse(); +} + +yyerror(char *s) { + fprintf(stderr, "ERROR: %s\n", s); +} diff --git a/tests/Sanity/smoke-check-flex-runs/calc-lexer.l b/tests/Sanity/smoke-check-flex-runs/calc-lexer.l new file mode 100644 index 0000000..fa9ac41 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/calc-lexer.l @@ -0,0 +1,15 @@ +%option noyywrap +%{ +#include "calc-grammar.tab.h" +%} + +%% +"+" { return ADD; } +"-" { return SUB; } +"*" { return MUL; } +"/" { return DIV; } +[0-9]+ { yylval = atoi(yytext); return NUMBER; } +\n { return EOL; } +[ \t] { /* ignore whitespaces */ } +. { yyerror("unexpected character %c", *yytext); } +%% diff --git a/tests/Sanity/smoke-check-flex-runs/count_chars_and_lines.l b/tests/Sanity/smoke-check-flex-runs/count_chars_and_lines.l new file mode 100644 index 0000000..7b90045 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/count_chars_and_lines.l @@ -0,0 +1,21 @@ +%option noyywrap +%{ +#include + +int chars = 0; +int lines = 0; +%} + +%% + +\n { lines++; chars++; } +. { chars++; } + +%% + +int main(int argc, char ** argv) { + yylex(); + printf("chars: %d\n", chars); + printf("lines: %d\n", lines); + return 0; +} diff --git a/tests/Sanity/smoke-check-flex-runs/expected_calc_output.txt b/tests/Sanity/smoke-check-flex-runs/expected_calc_output.txt new file mode 100644 index 0000000..7baa841 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/expected_calc_output.txt @@ -0,0 +1,3 @@ +STDOUT: 7 +STDOUT: -221 +STDOUT: 42 diff --git a/tests/Sanity/smoke-check-flex-runs/main.fmf b/tests/Sanity/smoke-check-flex-runs/main.fmf new file mode 100644 index 0000000..2b25e69 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/main.fmf @@ -0,0 +1,15 @@ +summary: Show your version. Build a one-file project. +description: '' +contact: +- Vaclav Kadlcik +component: +- flex +test: ./runtest.sh +framework: beakerlib +recommend: +- flex +- bison +- gcc +duration: 15m +extra-summary: /tools/flex/Sanity/smoke-check-flex-runs +extra-task: /tools/flex/Sanity/smoke-check-flex-runs diff --git a/tests/Sanity/smoke-check-flex-runs/runtest.sh b/tests/Sanity/smoke-check-flex-runs/runtest.sh new file mode 100755 index 0000000..68ee8a3 --- /dev/null +++ b/tests/Sanity/smoke-check-flex-runs/runtest.sh @@ -0,0 +1,78 @@ +#!/usr/bin/env bash +# vim: dict+=/usr/share/beakerlib/dictionary.vim cpt=.,w,b,u,t,i,k +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# runtest.sh of /tools/flex/Sanity/smoke-check-flex-runs +# Description: Show your version. Build a one-file project. +# Author: Vaclav Kadlcik +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +# +# Copyright (c) 2015 Red Hat, Inc. +# +# This program is free software: you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation, either version 2 of +# the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be +# useful, but WITHOUT ANY WARRANTY; without even the implied +# warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +# PURPOSE. See the GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see http://www.gnu.org/licenses/. +# +# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +# Include Beaker environment +. /usr/share/beakerlib/beakerlib.sh || exit 1 + +PACKAGE="flex" + +rlJournalStart + rlPhaseStartSetup + rlAssertRpm $PACKAGE + yum -y install bison gcc + rlRun "TmpDir=\$(mktemp -d)" 0 "Creating tmp directory" + rlRun "cp count_chars_and_lines.l calc-lexer.l calc-grammar.y expected_calc_output.txt $TmpDir" + rlRun "pushd $TmpDir" + rlPhaseEnd + + rlPhaseStartTest 'Show version' + + rlRun -t -s 'flex -V' + rlAssertNotGrep '^STDERR:' $rlRun_LOG + rlAssertGrep '^STDOUT: flex [0-9]' $rlRun_LOG + + rlPhaseEnd + + rlPhaseStartTest 'Flex works standalone' + + rlRun 'flex -o count_chars_and_lines.c count_chars_and_lines.l' + rlRun 'gcc -o count_chars_and_lines count_chars_and_lines.c' + rlAssertExists 'count_chars_and_lines' + rlRun -t -s 'echo -e "nazdar\nbazar" | ./count_chars_and_lines' + rlAssertNotGrep '^STDERR:' $rlRun_LOG + rlAssertGrep '^STDOUT: chars: 13$' $rlRun_LOG + rlAssertGrep '^STDOUT: lines: 2$' $rlRun_LOG + + rlPhaseEnd + + rlPhaseStartTest 'Flex works with Bison' + + rlRun 'bison -d calc-grammar.y' + rlRun 'flex calc-lexer.l' + rlRun 'gcc -o calc calc-grammar.tab.c lex.yy.c' + rlAssertExists 'calc' + rlRun -t -s 'echo -e "1 + 2 * 3\n1 - 666 / 3\n42" | ./calc' + rlAssertNotDiffer expected_calc_output.txt $rlRun_LOG + + rlPhaseEnd + + rlPhaseStartCleanup + rlRun "popd" + rlRun "rm -r $TmpDir" 0 "Removing tmp directory" + rlPhaseEnd +rlJournalPrintText +rlJournalEnd From e7d1e0be2590517693c9c541f1b6d9f00641c000 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Thu, 6 May 2021 00:49:44 +0200 Subject: [PATCH 58/72] Remove and obsolete the flex-doc subpackage (#1915609) The flex-doc subpackage hasn't contained any documentation for quite a while. It is supposed to contain the manual in PDF format, but `make && make install' does not produce a PDF. Since info and man pages are provided in the main package itself, this leaves flex-doc redundant. This commit removes and obsoletes the flex-doc subpackage. No Fedora packages are currently dependent on or build-dependent on flex-doc: $ dnf repoquery --whatdepends flex-doc $ dnf repoquery --disablerepo="*" --enablerepo="*-source" --arch=src \ --whatdepends flex-doc Therefore, only an "Obsoletes: flex-doc" line is added, with no accompanying "Provides: flex-doc" line. --- flex.spec | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/flex.spec b/flex.spec index fdd19fb..e7ce7fc 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 7%{?dist} +Release: 8%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -18,6 +18,8 @@ Requires: m4 BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libtool BuildRequires: make +Obsoletes: flex-doc < 2.6.4-8 + %description The flex program generates scanners. Scanners are programs which can recognize lexical patterns in text. Flex takes pairs of regular @@ -61,12 +63,12 @@ libraries. Summary: Static libraries for the flex scanner generator # We renamed flex-static to flex-devel in version 2.5.35-15: Obsoletes: flex-static < 2.5.35-15 -Provides: flex-static +Provides: flex-static = %{version}-%{release} # We renamed flex-devel to libfl-static in version 2.6.4-6. This clarifies # the nature of the package and brings us in line with naming used by SUSE # and Debian: Obsoletes: flex-devel < 2.6.4-6 -Provides: flex-devel +Provides: flex-devel = %{version}-%{release} %description -n libfl-static @@ -76,14 +78,6 @@ This package contains the static library with default implementations of `main' and `yywrap' functions that binaries using flex can choose to statically link against instead of implementing their own. -%package doc -Summary: Documentation for the flex scanner generator - -%description doc - -This package contains documentation for the flex scanner generator in -plain text and PDF formats. - %prep %setup -q %patch0 -p1 @@ -97,7 +91,7 @@ make %{?_smp_mflags} rm -rf $RPM_BUILD_ROOT make DESTDIR=$RPM_BUILD_ROOT install rm -f $RPM_BUILD_ROOT/%{_infodir}/dir -rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO} +rm -f $RPM_BUILD_ROOT/%{_pkgdocdir}/{README.cvs,TODO,AUTHORS,COPYING,ONEWS} # Exclude libtool archives (.la) as per Fedora packaging guidelines find %{buildroot} -name '*.la' -delete @@ -138,10 +132,12 @@ echo ============END TESTING=========== %license COPYING %{_libdir}/*.a -%files doc -%{_pkgdocdir} - %changelog +* Thu May 06 2021 Arjun Shankar - 2.6.4-8 +- Remove and obsolete the flex-doc subpackage; documention is provided in the + main package itself +- Specify versions in "Provides:" lines for flex-static and flex-devel + * Tue Jan 26 2021 Fedora Release Engineering - 2.6.4-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild From 4157a4f3d3576acd52fa2c36f9826b9699174336 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 21 Jul 2021 23:05:27 +0000 Subject: [PATCH 59/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index e7ce7fc..1ba82bc 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 8%{?dist} +Release: 9%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -133,6 +133,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Wed Jul 21 2021 Fedora Release Engineering - 2.6.4-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + * Thu May 06 2021 Arjun Shankar - 2.6.4-8 - Remove and obsolete the flex-doc subpackage; documention is provided in the main package itself From 76db1a4296d20225d190e474fc8818c0f1e988ee Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 20 Jan 2022 03:08:04 +0000 Subject: [PATCH 60/72] - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 1ba82bc..a648749 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 9%{?dist} +Release: 10%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -133,6 +133,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Thu Jan 20 2022 Fedora Release Engineering - 2.6.4-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + * Wed Jul 21 2021 Fedora Release Engineering - 2.6.4-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild From a2246316dcbae02384c9368458777393b60fbc4f Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 21 Jul 2022 03:18:28 +0000 Subject: [PATCH 61/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index a648749..2dde357 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 10%{?dist} +Release: 11%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -133,6 +133,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Thu Jul 21 2022 Fedora Release Engineering - 2.6.4-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + * Thu Jan 20 2022 Fedora Release Engineering - 2.6.4-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild From abdaa050fff6039b68186148201b8b83af727bb9 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 19 Jan 2023 03:34:41 +0000 Subject: [PATCH 62/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 2dde357..71ca4e6 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 11%{?dist} +Release: 12%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -133,6 +133,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Thu Jan 19 2023 Fedora Release Engineering - 2.6.4-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + * Thu Jul 21 2022 Fedora Release Engineering - 2.6.4-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild From 711ba9a8ad3b803be027481e1ce61a45c97a04e4 Mon Sep 17 00:00:00 2001 From: Edjunior Machado Date: Fri, 9 Dec 2022 16:55:43 +0100 Subject: [PATCH 63/72] tests: Fix fmf plan attributes --- plans/ci.fmf | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plans/ci.fmf b/plans/ci.fmf index 1ad2c12..3fd3ab7 100644 --- a/plans/ci.fmf +++ b/plans/ci.fmf @@ -1,6 +1,5 @@ summary: CI Gating Plan discover: how: fmf - directory: tests execute: - how: beakerlib + how: tmt From 12a46b39b610c4c66cc6c863de00d9e054603797 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 19 Jul 2023 19:52:01 +0000 Subject: [PATCH 64/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild Signed-off-by: Fedora Release Engineering --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 71ca4e6..1f10541 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 12%{?dist} +Release: 13%{?dist} # parse.c and parse.h are under GPLv3+ with exception which allows # relicensing. Since flex is shipped under BDS-style license, # let's assume that the relicensing was done. @@ -133,6 +133,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Wed Jul 19 2023 Fedora Release Engineering - 2.6.4-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + * Thu Jan 19 2023 Fedora Release Engineering - 2.6.4-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild From d687d8a4131309aafaed893f27058d3007a6910a Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Mon, 30 Oct 2023 12:14:26 +0100 Subject: [PATCH 65/72] Migrate License field to SPDX identifiers https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2 --- flex.spec | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/flex.spec b/flex.spec index 1f10541..05fc914 100644 --- a/flex.spec +++ b/flex.spec @@ -3,12 +3,13 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 13%{?dist} -# parse.c and parse.h are under GPLv3+ with exception which allows -# relicensing. Since flex is shipped under BDS-style license, -# let's assume that the relicensing was done. -# gettext.h (copied from gnulib) is under LGPLv2+ -License: BSD and LGPLv2+ +Release: 14%{?dist} + +# An SPDX license string check done against flex-2.6.4 using fossology +# found strings corresponding to the licenses noted below across the flex +# source tree. +License: BSD-3-Clause-flex AND GPL-3.0-or-later WITH Autoconf-exception-generic-3.0 AND GPL-3.0-or-later WITH Bison-exception-2.2 AND GPL-3.0-or-later WITH Texinfo-exception AND FSFAP AND FSFUL AND FSFULLR AND FSFULLRWD AND GPL-2.0-or-later AND X11 + URL: https://github.com/westes/flex Source: https://github.com/westes/flex/releases/download/v%{version}/flex-%{version}.tar.gz @@ -133,6 +134,12 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Mon Oct 30 2023 Arjun Shankar - 2.6.4-14 +- Analyse flex sources for license information +- Migrate License field to SPDX identifiers for + https://fedoraproject.org/wiki/Changes/SPDX_Licenses_Phase_2 + (#2222083) + * Wed Jul 19 2023 Fedora Release Engineering - 2.6.4-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild From 2b40fc115363a9dd45a70b1f7b502360382952e6 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Fri, 19 Jan 2024 19:28:13 +0000 Subject: [PATCH 66/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 05fc914..b1719bd 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 14%{?dist} +Release: 15%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -134,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Fri Jan 19 2024 Fedora Release Engineering - 2.6.4-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Mon Oct 30 2023 Arjun Shankar - 2.6.4-14 - Analyse flex sources for license information - Migrate License field to SPDX identifiers for From e2cfee03f981f42a53da6e3b2d02d428ca9b53d2 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 24 Jan 2024 11:43:21 +0000 Subject: [PATCH 67/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index b1719bd..bcba896 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 15%{?dist} +Release: 16%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -134,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Wed Jan 24 2024 Fedora Release Engineering - 2.6.4-16 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + * Fri Jan 19 2024 Fedora Release Engineering - 2.6.4-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From 992cb3242a5cd8648c38d610ddfd0c9bcb4238d7 Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Tue, 23 Apr 2024 17:16:04 +0200 Subject: [PATCH 68/72] Switch to %autosetup --- flex.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/flex.spec b/flex.spec index bcba896..bec4b6d 100644 --- a/flex.spec +++ b/flex.spec @@ -80,8 +80,7 @@ This package contains the static library with default implementations of statically link against instead of implementing their own. %prep -%setup -q -%patch0 -p1 +%autosetup -p1 %build autoreconf -i From 6e3f209ce3390dbc83041818632a75940b52461d Mon Sep 17 00:00:00 2001 From: Arjun Shankar Date: Tue, 23 Apr 2024 15:45:25 +0200 Subject: [PATCH 69/72] Provide flex-doc via the main flex package Commit e7d1e0be2590517693c9c541f1b6d9f00641c000 removed and obsoleted flex-doc, but did not 'Provides:' it. This commit fixes that. --- flex.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index bec4b6d..a39f9e2 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 16%{?dist} +Release: 17%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -20,6 +20,7 @@ BuildRequires: gettext gettext-devel bison m4 help2man gcc gcc-c++ automake libt BuildRequires: make Obsoletes: flex-doc < 2.6.4-8 +Provides: flex-doc = %{version}-%{release} %description The flex program generates scanners. Scanners are programs which can @@ -133,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Tue Apr 23 2024 Arjun Shankar - 2.6.4-17 +- Provide flex-doc via the main flex package + * Wed Jan 24 2024 Fedora Release Engineering - 2.6.4-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild From dc359e98697ef6da7bc6abc0674bbd0b31ef7915 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 17 Jul 2024 23:17:23 +0000 Subject: [PATCH 70/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index a39f9e2..661ccd8 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 17%{?dist} +Release: 18%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -134,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Wed Jul 17 2024 Fedora Release Engineering - 2.6.4-18 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + * Tue Apr 23 2024 Arjun Shankar - 2.6.4-17 - Provide flex-doc via the main flex package From 92050e21e824d7b90d5f98d3e0cb6a33531e15e3 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 16 Jan 2025 18:26:34 +0000 Subject: [PATCH 71/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 661ccd8..7499e27 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 18%{?dist} +Release: 19%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -134,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Thu Jan 16 2025 Fedora Release Engineering - 2.6.4-19 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild + * Wed Jul 17 2024 Fedora Release Engineering - 2.6.4-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild From 642acc32b575e39c52b22d87aca21250a18ff1cb Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Wed, 23 Jul 2025 20:36:11 +0000 Subject: [PATCH 72/72] Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild --- flex.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/flex.spec b/flex.spec index 7499e27..90a52a3 100644 --- a/flex.spec +++ b/flex.spec @@ -3,7 +3,7 @@ Summary: A tool for generating scanners (text pattern recognizers) Name: flex Version: 2.6.4 -Release: 19%{?dist} +Release: 20%{?dist} # An SPDX license string check done against flex-2.6.4 using fossology # found strings corresponding to the licenses noted below across the flex @@ -134,6 +134,9 @@ echo ============END TESTING=========== %{_libdir}/*.a %changelog +* Wed Jul 23 2025 Fedora Release Engineering - 2.6.4-20 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild + * Thu Jan 16 2025 Fedora Release Engineering - 2.6.4-19 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild