[libvoikko/f15] Add patch to work around a crash bug in the grammar checker.

Ville-Pekka Vainio vpv at fedoraproject.org
Tue Dec 27 17:52:36 UTC 2011


commit 4a5fdff51b5683675a77ae8ec0246f7702905671
Author: Ville-Pekka Vainio <vpvainio at iki.fi>
Date:   Tue Dec 27 19:52:23 2011 +0200

    Add patch to work around a crash bug in the grammar checker.

 libvoikko-increase-malaga-heap-size.patch |   11 +++++++++++
 libvoikko.spec                            |    7 ++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/libvoikko-increase-malaga-heap-size.patch b/libvoikko-increase-malaga-heap-size.patch
new file mode 100644
index 0000000..01cdde3
--- /dev/null
+++ b/libvoikko-increase-malaga-heap-size.patch
@@ -0,0 +1,11 @@
+Index: /branches/libvoikko/3.3.x/src/morphology/malaga/values.cpp
+===================================================================
+--- /branches/libvoikko/3.3.x/src/morphology/malaga/values.cpp (revision 3993)
++++ /branches/libvoikko/3.3.x/src/morphology/malaga/values.cpp (revision 4051)
+@@ -261,5 +261,5 @@
+ /* Initialise this module. */
+ {
+-  malagaState->value_heap_size = 1000;
++  malagaState->value_heap_size = 40000;
+   malagaState->value_heap = (cell_t *) new_vector( sizeof( cell_t ), malagaState->value_heap_size );
+   malagaState->value_heap_end = malagaState->value_heap;
diff --git a/libvoikko.spec b/libvoikko.spec
index 1df100a..61ef4e3 100644
--- a/libvoikko.spec
+++ b/libvoikko.spec
@@ -1,7 +1,7 @@
 %{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
 Name:           libvoikko
 Version:        3.2.1
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Voikko is a library for spellcheckers and hyphenators
 
 Group:          System Environment/Libraries
@@ -14,6 +14,7 @@ Source0:        http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.g
 # Upstream patch:
 # http://voikko.svn.sourceforge.net/viewvc/voikko/trunk/libvoikko/src/spellchecker/FinnishSpellerTweaksWrapper.cpp?r1=3855&r2=4015&view=patch
 Patch0:         libvoikko-fix-FinnishSpellerTweaksWrapper-crash.patch
+Patch1:         libvoikko-increase-malaga-heap-size.patch
 
 BuildRequires:  python-devel
 # Libvoikko >= 2.2 needs this, earlier versions won't work
@@ -66,6 +67,7 @@ tasks on Finnish text.
 %prep
 %setup -q
 %patch0 -p2
+%patch1 -p4
 
 
 %build
@@ -120,6 +122,9 @@ install -pm 0644 python/libvoikko.py $RPM_BUILD_ROOT%{python_sitelib}/
 %{python_sitelib}/%{name}.py*
 
 %changelog
+* Tue Dec 27 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2.1-3
+- Add patch to work around a crash bug in the grammar checker.
+
 * Sat Sep 24 2011 Ville-Pekka Vainio <vpvainio AT iki.fi> - 3.2.1-2
 - Add patch to fix a common crash in Firefox when using Finnish spell checking
 


More information about the scm-commits mailing list