1 |
commit: 667fbf72b79ff75aac2855950676090216a776c3 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 9 19:28:31 2017 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 9 19:29:10 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=667fbf72 |
7 |
|
8 |
kde-frameworks/kdelibs: Fix build with app-text/enchant-2.1.0 |
9 |
|
10 |
Thanks-to: Arfrever |
11 |
Gentoo-bug: 629806 |
12 |
Package-Manager: Portage-2.3.8, Repoman-2.3.3 |
13 |
|
14 |
.../kdelibs/files/kdelibs-4.14.35-enchant2.patch | 33 ++++++++++++++++++++++ |
15 |
kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild | 2 ++ |
16 |
2 files changed, 35 insertions(+) |
17 |
|
18 |
diff --git a/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch b/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch |
19 |
new file mode 100644 |
20 |
index 00000000000..85be2d1ad2b |
21 |
--- /dev/null |
22 |
+++ b/kde-frameworks/kdelibs/files/kdelibs-4.14.35-enchant2.patch |
23 |
@@ -0,0 +1,33 @@ |
24 |
+From 668ef94b2b861f7ec4aa20941bcb6493bc4367be Mon Sep 17 00:00:00 2001 |
25 |
+From: Arfrever Frehtes Taifersar Arahesis <arfrever.fta@×××××.com> |
26 |
+Date: Sat, 9 Sep 2017 19:39:14 +0200 |
27 |
+Subject: Fix build with >=enchant-2 |
28 |
+ |
29 |
+Summary: Forwarding a user-contributed patch. |
30 |
+ |
31 |
+Reviewers: aacid |
32 |
+ |
33 |
+Reviewed By: aacid |
34 |
+ |
35 |
+Differential Revision: https://phabricator.kde.org/D7748 |
36 |
+--- |
37 |
+ sonnet/plugins/enchant/enchantdict.cpp | 3 +-- |
38 |
+ 1 file changed, 1 insertion(+), 2 deletions(-) |
39 |
+ |
40 |
+diff --git a/sonnet/plugins/enchant/enchantdict.cpp b/sonnet/plugins/enchant/enchantdict.cpp |
41 |
+index 52f7fad..80e40fc 100644 |
42 |
+--- a/sonnet/plugins/enchant/enchantdict.cpp |
43 |
++++ b/sonnet/plugins/enchant/enchantdict.cpp |
44 |
+@@ -82,8 +82,7 @@ bool QSpellEnchantDict::storeReplacement(const QString &bad, |
45 |
+ |
46 |
+ bool QSpellEnchantDict::addToPersonal(const QString &word) |
47 |
+ { |
48 |
+- enchant_dict_add_to_pwl(m_dict, word.toUtf8(), |
49 |
+- word.toUtf8().length()); |
50 |
++ enchant_dict_add(m_dict, word.toUtf8(), word.toUtf8().length()); |
51 |
+ return true; |
52 |
+ } |
53 |
+ |
54 |
+-- |
55 |
+cgit v0.11.2 |
56 |
+ |
57 |
|
58 |
diff --git a/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild b/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild |
59 |
index f7eb7c73bd1..8c04429eea7 100644 |
60 |
--- a/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild |
61 |
+++ b/kde-frameworks/kdelibs/kdelibs-4.14.35.ebuild |
62 |
@@ -126,6 +126,8 @@ PATCHES=( |
63 |
"${FILESDIR}/${P}-3dnow.patch" |
64 |
"${FILESDIR}/${P}-kde3support.patch" |
65 |
"${FILESDIR}/${P}-plasma4.patch" |
66 |
+ # upstream: |
67 |
+ "${FILESDIR}/${P}-enchant2.patch" |
68 |
) |
69 |
|
70 |
src_prepare() { |