Accepting request 98297 from devel:libraries:c_c++

- Fix wrong size parameter in memset call (forwarded request 98278 from namtrac)

OBS-URL: https://build.opensuse.org/request/show/98297
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libvoikko?expand=0&rev=18
This commit is contained in:
Stephan Kulow 2011-12-31 16:20:03 +00:00 committed by Git OBS Bridge
commit 061f11e95c
3 changed files with 35 additions and 11 deletions

View 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,

View File

@ -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

View File

@ -15,20 +15,25 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libvoikko
Version: 2.1
Release: 1
URL: http://voikko.sourceforge.net/
License: GPL-2.0+
Release: 0
Url: http://voikko.sourceforge.net/
Summary: Spellchecker and Hyphenator for Finnish Language
License: GPL-2.0+
Group: Productivity/Text/Spell
Source: libvoikko-%{version}.tar.bz2
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: libvoikko-2.1-ac-macro-dir.diff
BuildRequires: gcc-c++ glib2-devel libmalaga-devel libtool python python-xml
Patch1: libvoikko-2.1-ac-macro-dir.diff
# 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
%define debug_package_requires libvoikko1 = %{version}-%{release}
@ -37,8 +42,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
Suomi-Malaga.
%package -n libvoikko1
Group: System/Libraries
Summary: Spellchecker and Hyphenator for Finnish Language
Group: System/Libraries
Requires: malaga-suomi
%description -n libvoikko1
@ -46,8 +51,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
Suomi-Malaga.
%package devel
Group: Development/Libraries/C and C++
Summary: Spellchecker and Hyphenator for Finnish Language
Group: Development/Libraries/C and C++
Requires: libvoikko1 = %{version} glibc-devel
%description devel
@ -55,8 +60,8 @@ Voikko is a Finnish spellchecker and hyphenator based on Malaga and
Suomi-Malaga.
%package -n voikkospell
Group: Productivity/Text/Spell
Summary: Spellchecker and Hyphenator for Finnish Language
Group: Productivity/Text/Spell
Requires: libvoikko1 = %{version}
%description -n voikkospell
@ -65,7 +70,8 @@ Suomi-Malaga.
%prep
%setup -q
%patch
%patch1
%patch2 -p1
%build
autoreconf -f -i