]> git.pld-linux.org Git - packages/enchant.git/commitdiff
- fix building with hunspell 1.4 auto/th/enchant-1.6.0-5
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 29 May 2016 19:30:02 +0000 (21:30 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 29 May 2016 19:30:02 +0000 (21:30 +0200)
- rel 5

enchant.spec
hunspell-1.4.patch [new file with mode: 0644]

index 44b57e84d811c058a66c49dc7586d58042216fe4..96a3dff43431a89566aa77ffda6450ad84657cd9 100644 (file)
@@ -6,11 +6,12 @@ Summary:      libenchant - generic spell checking library
 Summary(pl.UTF-8):     libenchant - ogólna biblioteka sprawdzania pisowni
 Name:          enchant
 Version:       1.6.0
-Release:       4
+Release:       5
 License:       LGPL v2
 Group:         Libraries
 Source0:       http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: de11011aff801dc61042828041fb59c7
+Patch0:                hunspell-1.4.patch
 URL:           http://www.abisource.com/enchant/
 BuildRequires: aspell-devel >= 2:0.50.0
 BuildRequires: autoconf
@@ -188,6 +189,7 @@ Moduł obsługujący backend zemberek (turecki) dla Enchanta.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/hunspell-1.4.patch b/hunspell-1.4.patch
new file mode 100644 (file)
index 0000000..601df54
--- /dev/null
@@ -0,0 +1,21 @@
+Description: fix build with hunspell 1.4
+ hunspell 1.4.0 doesn't expose MAXWORDLEN anymore.
+Author: Caolan McNamara <caolanm@redhat.com>
+Origin: upstream bug
+Bug: http://bugzilla.abisource.com/show_bug.cgi?id=13772
+Bug-Debian: https://bugs.debian.org/821464
+
+diff -ru enchant-1.6.0-orig/src/myspell/myspell_checker.cpp enchant-1.6.0/src/myspell/myspell_checker.cpp
+--- enchant-1.6.0-orig/src/myspell/myspell_checker.cpp 2016-04-18 12:25:00.094614256 +0100
++++ enchant-1.6.0/src/myspell/myspell_checker.cpp      2016-04-18 12:26:09.108569576 +0100
+@@ -148,6 +148,10 @@ MySpellChecker::~MySpellChecker()
+               g_iconv_close(m_translate_out);
+ }
++#ifndef MAXWORDLEN
++#   define MAXWORDLEN 100
++#endif
++
+ bool
+ MySpellChecker::checkWord(const char *utf8Word, size_t len)
+ {
This page took 0.074992 seconds and 4 git commands to generate.