From 4ea804e05afdb55c70fe9e9138cc55188aec13c7 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: May 25 2005 21:37:18 +0000 Subject: - fix build with gcc4 (mschwendt, #156203) --- diff --git a/cook-2.25-gcc4.patch b/cook-2.25-gcc4.patch new file mode 100644 index 0000000..7d88b35 --- /dev/null +++ b/cook-2.25-gcc4.patch @@ -0,0 +1,11 @@ +--- cook-2.25/file_check/file_check.c.gcc4 2005-05-25 17:34:49.000000000 -0400 ++++ cook-2.25/file_check/file_check.c 2005-05-25 17:35:16.000000000 -0400 +@@ -28,7 +28,7 @@ + #include + + int warning; +-static int limit; ++int limit; + static int number_of_blank_lines; + static int number_of_errors; + static int line_number; diff --git a/cook.spec b/cook.spec index e90d963..53d391c 100644 --- a/cook.spec +++ b/cook.spec @@ -1,6 +1,6 @@ Name: cook Version: 2.25 -Release: 3 +Release: 4 Summary: File construction tool @@ -8,6 +8,7 @@ Group: Development/Tools License: GPL URL: http://www.canb.auug.org.au/~millerp/cook/ Source: http://www.canb.auug.org.au/~millerp/cook/cook-2.25.tar.gz +Patch0: cook-2.25-gcc4.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: groff, bison, gettext, sharutils, m4 Provides: perl(host_lists.pl) @@ -21,6 +22,7 @@ mechanism to define these. %prep %setup -q +%patch0 -p1 -b .gcc4 %build %configure @@ -54,6 +56,9 @@ rm -fr ${RPM_BUILD_ROOT} %doc README LICENSE %changelog +* Wed May 25 2005 Jeremy Katz - 2.25-4 +- fix build with gcc4 (mschwendt, #156203) + * Sun May 22 2005 Jeremy Katz - 2.25-3 - rebuild on all arches