[packages/libvoikko] - fix building with gcc/c++ 4.9

baggins baggins at pld-linux.org
Sat Jan 3 22:22:15 CET 2015


commit edccab4246bbb12352efefb86b87e242ad366290
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Jan 3 21:22:03 2015 +0000

    - fix building with gcc/c++ 4.9

 gcc49.patch    | 11 +++++++++++
 libvoikko.spec |  2 ++
 2 files changed, 13 insertions(+)
---
diff --git a/libvoikko.spec b/libvoikko.spec
index ac53043..9a7baf1 100644
--- a/libvoikko.spec
+++ b/libvoikko.spec
@@ -12,6 +12,7 @@ License:	GPL v2+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz
 # Source0-md5:	bb5f5b230651452c43201dffa36d2d0c
+Patch0:		gcc49.patch
 URL:		http://voikko.sourceforge.net/
 %{?with_hfst:BuildRequires:	hfst-devel >= 2.4}
 BuildRequires:	libstdc++-devel
@@ -72,6 +73,7 @@ Statyczna biblioteka libvoikko.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 # NOTE: malaga compiled dictionaries are arch-dependent
diff --git a/gcc49.patch b/gcc49.patch
new file mode 100644
index 0000000..3deb152
--- /dev/null
+++ b/gcc49.patch
@@ -0,0 +1,11 @@
+--- libvoikko-3.3.1/src/setup/DictionaryLoader.cpp~	2011-02-22 05:06:57.000000000 +0000
++++ libvoikko-3.3.1/src/setup/DictionaryLoader.cpp	2015-01-03 21:20:27.634991966 +0000
+@@ -22,6 +22,8 @@
+ #include <string>
+ #include <fstream>
+ #include <cstdlib>
++#include <unistd.h>
++#include <sys/types.h>
+ #ifdef WIN32
+ # include <windows.h>
+ #else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libvoikko.git/commitdiff/edccab4246bbb12352efefb86b87e242ad366290



More information about the pld-cvs-commit mailing list