From 8661c2024e001c7cb3f087d8a2870c87d9a48b90 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Nov 05 2010 16:40:37 +0000 Subject: Resolves: rhbz#648740 thousands of trailing empty rules spew --- diff --git a/backport.warnings.patch b/backport.warnings.patch new file mode 100644 index 0000000..36d62ed --- /dev/null +++ b/backport.warnings.patch @@ -0,0 +1,16 @@ +Index: src/hunspell/hashmgr.cxx +=================================================================== +RCS file: /cvsroot/hunspell/hunspell/src/hunspell/hashmgr.cxx,v +retrieving revision 1.9 +retrieving revision 1.10 +diff -u -r1.9 -r1.10 +--- src/hunspell/hashmgr.cxx 12 Oct 2010 13:46:14 -0000 1.9 ++++ src/hunspell/hashmgr.cxx 5 Nov 2010 16:31:44 -0000 1.10 +@@ -492,7 +492,6 @@ + int HashMgr::decode_flags(unsigned short ** result, char * flags, FileMgr * af) { + int len; + if (*flags == '\0') { +- HUNSPELL_WARNING(stderr, "error: line %d: bad flagvector\n", af->getlinenum()); + *result = NULL; + return 0; + } diff --git a/hunspell.spec b/hunspell.spec index 981d9b5..7f0b07f 100644 --- a/hunspell.spec +++ b/hunspell.spec @@ -3,7 +3,7 @@ Name: hunspell Summary: A spell checker and morphological analyzer library Version: 1.2.12 -Release: 1%{?dist} +Release: 2%{?dist} Source: http://downloads.sourceforge.net/%{name}/hunspell-%{version}.tar.gz Group: System Environment/Libraries URL: http://hunspell.sourceforge.net/ @@ -16,6 +16,7 @@ BuildRequires: valgrind %if %{double_profiling_build} BuildRequires: words %endif +Patch1: backport.warnings.patch %description Hunspell is a spell checker and morphological analyzer library and program @@ -33,6 +34,7 @@ Includes and definitions for developing with hunspell %prep %setup -q +%patch1 -p0 -b .backport.warnings %build configureflags="--disable-rpath --disable-static --with-ui --with-readline" @@ -121,6 +123,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man3/hunspell.3.gz %changelog +* Fri Nov 05 2010 Caolán McNamara - 1.2.12-2 +- Resolves: rhbz#648740 thousands of trailing empty rules spew + * Thu Jul 15 2010 Caolán McNamara - 1.2.12-1 - latest version - drop integrated hunspell-1.2.11-valgrind.patch