wok-current view webkitgtk/stuff/webkitgtk-fix-enchant2.patch @ rev 25634

Mass update, new toolchain gcc 8.3.0, glibc 2.28.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Jan 14 08:12:37 2024 +0000 (20 months ago)
parents
children
line source
1 diff --git a/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp b/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
2 index d2d2c6f..905ca5b 100644
3 --- a/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
4 +++ b/Source/WebCore/platform/text/enchant/TextCheckerEnchant.cpp
5 @@ -128,7 +128,7 @@ Vector<String> TextCheckerEnchant::getGuessesForWord(const String& word)
6 for (i = 0; i < numberOfSuggestions; i++)
7 guesses.append(String::fromUTF8(suggestions[i]));
9 - enchant_dict_free_suggestions(*iter, suggestions);
10 + enchant_dict_free_string_list(*iter, suggestions);
11 }
13 return guesses;
15 diff --git a/Source/autotools/FindDependencies.m4 b/Source/autotools/FindDependencies.m4
16 index 60ee32d..cf1019f 100644
17 --- a/Source/autotools/FindDependencies.m4
18 +++ b/Source/autotools/FindDependencies.m4
19 @@ -154,7 +154,7 @@ AC_SUBST(PANGO_CFLAGS)
20 AC_SUBST(PANGO_LIBS)
22 if test "$enable_spellcheck" = "yes"; then
23 - PKG_CHECK_MODULES(ENCHANT, enchant >= enchant_required_version, [], [enable_spellcheck="no"])
24 + PKG_CHECK_MODULES(ENCHANT, enchant-2 >= enchant_required_version, [], [enable_spellcheck="no"])
25 AC_SUBST(ENCHANT_CFLAGS)
26 AC_SUBST(ENCHANT_LIBS)
27 fi