forked from pool/libvoikko
Accepting request 98278 from home:namtrac:bugfix
- Fix wrong size parameter in memset call OBS-URL: https://build.opensuse.org/request/show/98278 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libvoikko?expand=0&rev=11
This commit is contained in:
parent
8041d822e4
commit
f900e6b496
13
libvoikko-wrong-memset.patch
Normal file
13
libvoikko-wrong-memset.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: libvoikko-2.1/src/grammar/grammar.cpp
|
||||||
|
===================================================================
|
||||||
|
--- libvoikko-2.1.orig/src/grammar/grammar.cpp
|
||||||
|
+++ libvoikko-2.1/src/grammar/grammar.cpp
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
namespace libvoikko {
|
||||||
|
|
||||||
|
void init_gc_error(voikko_grammar_error * gc_error) {
|
||||||
|
- memset(gc_error, 0, sizeof(gc_error));
|
||||||
|
+ memset(gc_error, 0, sizeof(voikko_grammar_error));
|
||||||
|
}
|
||||||
|
|
||||||
|
VOIKKOEXPORT voikko_grammar_error voikko_next_grammar_error_cstr(int handle, const char * text,
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Dec 27 13:10:08 UTC 2011 - idonmez@suse.com
|
||||||
|
|
||||||
|
- Fix wrong size parameter in memset call
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Nov 23 22:00:52 UTC 2011 - jengelh@medozas.de
|
Wed Nov 23 22:00:52 UTC 2011 - jengelh@medozas.de
|
||||||
|
|
||||||
|
@ -15,20 +15,25 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Name: libvoikko
|
Name: libvoikko
|
||||||
Version: 2.1
|
Version: 2.1
|
||||||
Release: 1
|
Release: 0
|
||||||
URL: http://voikko.sourceforge.net/
|
Url: http://voikko.sourceforge.net/
|
||||||
License: GPL-2.0+
|
|
||||||
Summary: Spellchecker and Hyphenator for Finnish Language
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
||||||
|
License: GPL-2.0+
|
||||||
Group: Productivity/Text/Spell
|
Group: Productivity/Text/Spell
|
||||||
Source: libvoikko-%{version}.tar.bz2
|
Source: libvoikko-%{version}.tar.bz2
|
||||||
Source99: baselibs.conf
|
Source99: baselibs.conf
|
||||||
# PATCH-FIX-UPSTREAM libvoikko-2.1-ac-macro-dir.diff sf#2810258 pmladek@suse.cz -- can't run autoreconf because the m4 direcotry is neither in the source tarball nor in svn
|
# PATCH-FIX-UPSTREAM libvoikko-2.1-ac-macro-dir.diff sf#2810258 pmladek@suse.cz -- can't run autoreconf because the m4 direcotry is neither in the source tarball nor in svn
|
||||||
Patch: libvoikko-2.1-ac-macro-dir.diff
|
Patch1: libvoikko-2.1-ac-macro-dir.diff
|
||||||
BuildRequires: gcc-c++ glib2-devel libmalaga-devel libtool python python-xml
|
# PATCH-FIX-UPSTREAM libvoikko-wrong-memset.patch idoenmez@suse.de -- Fix wrong size parameter in memset call
|
||||||
|
Patch2: libvoikko-wrong-memset.patch
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: glib2-devel
|
||||||
|
BuildRequires: libmalaga-devel
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: python
|
||||||
|
BuildRequires: python-xml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%define debug_package_requires libvoikko1 = %{version}-%{release}
|
%define debug_package_requires libvoikko1 = %{version}-%{release}
|
||||||
|
|
||||||
@ -37,8 +42,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|||||||
Suomi-Malaga.
|
Suomi-Malaga.
|
||||||
|
|
||||||
%package -n libvoikko1
|
%package -n libvoikko1
|
||||||
Group: System/Libraries
|
|
||||||
Summary: Spellchecker and Hyphenator for Finnish Language
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
||||||
|
Group: System/Libraries
|
||||||
Requires: malaga-suomi
|
Requires: malaga-suomi
|
||||||
|
|
||||||
%description -n libvoikko1
|
%description -n libvoikko1
|
||||||
@ -46,8 +51,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|||||||
Suomi-Malaga.
|
Suomi-Malaga.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Group: Development/Libraries/C and C++
|
|
||||||
Summary: Spellchecker and Hyphenator for Finnish Language
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
||||||
|
Group: Development/Libraries/C and C++
|
||||||
Requires: libvoikko1 = %{version} glibc-devel
|
Requires: libvoikko1 = %{version} glibc-devel
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -55,8 +60,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
|
|||||||
Suomi-Malaga.
|
Suomi-Malaga.
|
||||||
|
|
||||||
%package -n voikkospell
|
%package -n voikkospell
|
||||||
Group: Productivity/Text/Spell
|
|
||||||
Summary: Spellchecker and Hyphenator for Finnish Language
|
Summary: Spellchecker and Hyphenator for Finnish Language
|
||||||
|
Group: Productivity/Text/Spell
|
||||||
Requires: libvoikko1 = %{version}
|
Requires: libvoikko1 = %{version}
|
||||||
|
|
||||||
%description -n voikkospell
|
%description -n voikkospell
|
||||||
@ -65,7 +70,8 @@ Suomi-Malaga.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch
|
%patch1
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -f -i
|
autoreconf -f -i
|
||||||
|
Loading…
Reference in New Issue
Block a user