From 0eef73d4b4188db2406ea81bc131fe0430a5c2fb Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 4 Feb 2008 13:05:06 +0000 Subject: [PATCH] - Fix comparison between signed and unsigned in generated scanner. Patch by Roland McGrath. - Resolves: #431151 --- flex-2.5.33-signedwarn.patch | 12 ++++++++++++ flex.spec | 9 ++++++++- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 flex-2.5.33-signedwarn.patch diff --git a/flex-2.5.33-signedwarn.patch b/flex-2.5.33-signedwarn.patch new file mode 100644 index 0000000..13eddd5 --- /dev/null +++ b/flex-2.5.33-signedwarn.patch @@ -0,0 +1,12 @@ +--- flex-2.5.33/gen.c ++++ flex-2.5.33/gen.c +@@ -1897,7 +1897,7 @@ void make_tables () + outn ("\t\t{ \\"); + outn ("\t\tint c = '*'; \\"); + outn ("\t\tsize_t n; \\"); +- outn ("\t\tfor ( n = 0; n < max_size && \\"); ++ outn ("\t\tfor ( n = 0; n < (size_t) max_size && \\"); + outn ("\t\t\t (c = getc( yyin )) != EOF && c != '\\n'; ++n ) \\"); + outn ("\t\t\tbuf[n] = (char) c; \\"); + outn ("\t\tif ( c == '\\n' ) \\"); + diff --git a/flex.spec b/flex.spec index 90b53d3..4e3bd72 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.33 -Release: 15%{?dist} +Release: 16%{?dist} License: BSD Group: Development/Tools URL: http://flex.sourceforge.net/ @@ -10,6 +10,7 @@ Patch1: flex-2.5.33-yy.patch Patch2: flex-2.5.33-opts.patch Patch3: flex-2.5.33-includedir.patch Patch4: flex-2.5.33-test-linedir-r.patch +Patch5: flex-2.5.33-signedwarn.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: m4 BuildRequires: gettext bison m4 @@ -36,6 +37,7 @@ application development. %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build %configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS" @@ -82,6 +84,11 @@ rm -rf ${RPM_BUILD_ROOT} %{_infodir}/flex.info* %changelog +* Mon Feb 4 2008 Petr Machata - 2.5.33-16 +- Fix comparison between signed and unsigned in generated scanner. + Patch by Roland McGrath. +- Resolves: #431151 + * Tue Jan 15 2008 Stepan Kasal - 2.5.33-15 - Do not run autogen.sh, it undoes the effect of includedir patch. - Adapt test-linedir-r.patch so that it fixes Makefile.in and works