[gspell] Use Enchant 2
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gspell] Use Enchant 2
- Date: Wed, 29 Nov 2017 17:08:54 +0000 (UTC)
commit 5b50a8476da5acd90ce3e31af847795b96b7e9e2
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Nov 24 15:34:52 2017 +0100
Use Enchant 2
Enchant has a new maintainer and the project is again under development.
There has been some API/ABI breaks in Enchant 2, but they don't affect
gspell.
Enchant 2 >= 2.1.3 is now parallel-installable with Enchant 1, so it'll
normally not cause problems for Linux distribution packagers to ship
Enchant 2 and the next version of gspell. See:
https://github.com/AbiWord/enchant/issues/162
Strictly speaking, this is an API break for gspell as well, since there
is the gspell_checker_get_enchant_dict() function that exposes Enchant
in the public API of gspell. This function has been added in the
previous development cycle for gnome-builder needs, but gnome-builder
doesn't use yet this function. I've asked on IRC to the gnome-builder
developers if it's fine to switch to Enchant 2, and they said that it is
not a problem. So I prefer to follow a pragmatic approach, in practice
switching gspell to Enchant 2 will normally not cause problems for
applications, and that way the apps will automatically benefit from a
newer version of Enchant (especially gedit which is currently
unmaintained, so it's unlikely that gedit would have switched to
gspell-2).
https://bugzilla.gnome.org/show_bug.cgi?id=790994
configure.ac | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2e415c4..5e893db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,7 @@ GSPELL_API_VERSION=1
AC_SUBST(GSPELL_API_VERSION)
# Dependencies
-enchant_req=1.6.0
+enchant_req=2.1.3
glib_req=2.44
gtk_req=3.20
@@ -90,7 +90,7 @@ AX_COMPILER_FLAGS([WARN_CFLAGS], [WARN_LDFLAGS], [yes])
# Dynamic linking dependencies
AX_REQUIRE_DEFINED([AX_PKG_CHECK_MODULES])
AX_PKG_CHECK_MODULES([DEP],
- [glib-2.0 >= $glib_req gtk+-3.0 >= $gtk_req enchant >= $enchant_req],
+ [glib-2.0 >= $glib_req gtk+-3.0 >= $gtk_req enchant-2 >= $enchant_req],
[])
# iso-codes
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]