Reintroduce signed warning patch

This commit is contained in:
Petr Machata 2008-05-12 11:25:42 +00:00
parent a5daacb7bd
commit 023c59be5d
2 changed files with 17 additions and 1 deletions

11
flex-2.5.35-sign.patch Normal file
View File

@ -0,0 +1,11 @@
--- 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; \\");

View File

@ -1,11 +1,12 @@
Summary: A tool for creating scanners (text pattern recognizers) Summary: A tool for creating scanners (text pattern recognizers)
Name: flex Name: flex
Version: 2.5.35 Version: 2.5.35
Release: 1%{?dist} Release: 2%{?dist}
License: BSD License: BSD
Group: Development/Tools Group: Development/Tools
URL: http://flex.sourceforge.net/ URL: http://flex.sourceforge.net/
Source: flex-%{version}.tar.bz2 Source: flex-%{version}.tar.bz2
Patch0: flex-2.5.35-sign.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: m4 Requires: m4
BuildRequires: gettext bison m4 BuildRequires: gettext bison m4
@ -28,6 +29,7 @@ application development.
%prep %prep
%setup -q %setup -q
%patch0 -p1
%build %build
%configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS" %configure --disable-dependency-tracking CFLAGS="-fPIC $RPM_OPT_FLAGS"
@ -74,6 +76,9 @@ rm -rf ${RPM_BUILD_ROOT}
%{_infodir}/flex.info* %{_infodir}/flex.info*
%changelog %changelog
* Mon May 12 2008 Petr Machata <pmachata@redhat.com> - 2.5.35-2
- Resolves: #445950
* Wed Feb 27 2008 Petr Machata <pmachata@redhat.com> - 2.5.35-1 * Wed Feb 27 2008 Petr Machata <pmachata@redhat.com> - 2.5.35-1
- Rebase to 2.5.35. Drop two patches. - Rebase to 2.5.35. Drop two patches.
- Resolves: #434961 - Resolves: #434961