rpms/flex/devel flex-2.5.33-signedwarn.patch, NONE, 1.1 flex.spec, 1.50, 1.51
Petr Machata (pmachata)
fedora-extras-commits at redhat.com
Mon Feb 4 13:05:47 UTC 2008
Author: pmachata
Update of /cvs/pkgs/rpms/flex/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv7332
Modified Files:
flex.spec
Added Files:
flex-2.5.33-signedwarn.patch
Log Message:
- Fix comparison between signed and unsigned in generated scanner.
Patch by Roland McGrath.
- Resolves: #431151
flex-2.5.33-signedwarn.patch:
--- NEW FILE flex-2.5.33-signedwarn.patch ---
--- 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' ) \\");
Index: flex.spec
===================================================================
RCS file: /cvs/pkgs/rpms/flex/devel/flex.spec,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -r1.50 -r1.51
--- flex.spec 15 Jan 2008 17:22:05 -0000 1.50
+++ flex.spec 4 Feb 2008 13:05:06 -0000 1.51
@@ -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 @@
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 @@
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS"
@@ -82,6 +84,11 @@
%{_infodir}/flex.info*
%changelog
+* Mon Feb 4 2008 Petr Machata <pmachata at redhat.com> - 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 <skasal at redhat.com> - 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
More information about the fedora-extras-commits
mailing list