pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/enchant2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Sun Jul  5 12:11:14 UTC 2026

Modified Files:
        pkgsrc/textproc/enchant2: Makefile distinfo

Log Message:
enchant2: update to 2.8.18.

2.8.18 (July 4, 2026)
---------------------

This release fixes compatibility with the latest Vala compiler, version
0.56.19. The problem was Enchant’s fault; the change in behaviour by valac,
of returning different values for some return types when a method
precondition failed, was fine. The Enchant code was allowing these checks to
fail rather than validating arguments. Manual validation has been added for
most arguments, except the “self” argument for “method calls”, which is
usually the argument in first position, e.g. the EnchantBroker pointer
argument to all enchant_broker_* APIs. Applications can call
`g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL)` or equivalent to make these
tests cause an assertion failure; otherwise, critical errors will be logged,
and in some cases a different value will be returned by the API from that
previously returned. I have not changed the major version of the library,
since the return code in such cases was always undocumented: the APIs
require non-NULL pointers.

enchant(1) now assumes UTF-8 input and produces only UTF-8 output.
Previously, it assumed the system locale for input, and converted to the
system locale on output. This worked badly on Windows, where the system
locale is often reported as a legacy 8-bit code page, even when the user
environment is Unicode, and was also incorrect in cases where enchant(1) was
reading from a file in some other encoding, usually UTF-8.

The macOS spelling checker used to have a hard-wired list of languages it
supported. Drop this, and support all languages supported by the system.
Further, do not offer e.g. an “en_US” dictionary when “en” is requested. (A
similar change to the Hunspell provider was made in version 2.8.7.)

Some code clean-up has been done, removing some unused code, and making some
minor improvements to the build system. I’m surprised how in a codebase of
modest size (a few thousand lines for the main library, spelling providers
and command-line utilities) that I’ve completely rewritten and worked on for
some years, I still find things that don’t need to be there!

The tests have been updated to drop the use of the deprecated codecvt APIs,
and instead use u8 string literals. As a result, Enchant’s build system now
requires C++20. Do let me know if this is a problem; as far as I can tell,
that should be fine for packagers on up-to-date systems, as C++20 has been
supported by the main compilers for a few years now.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 pkgsrc/textproc/enchant2/Makefile
cvs rdiff -u -r1.41 -r1.42 pkgsrc/textproc/enchant2/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/enchant2/Makefile
diff -u pkgsrc/textproc/enchant2/Makefile:1.57 pkgsrc/textproc/enchant2/Makefile:1.58
--- pkgsrc/textproc/enchant2/Makefile:1.57      Wed Jul  1 21:20:22 2026
+++ pkgsrc/textproc/enchant2/Makefile   Sun Jul  5 12:11:13 2026
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.57 2026/07/01 21:20:22 wiz Exp $
+# $NetBSD: Makefile,v 1.58 2026/07/05 12:11:13 wiz Exp $
 
-DISTNAME=              enchant-2.8.17
+DISTNAME=              enchant-2.8.18
 PKGNAME=               ${DISTNAME:S/enchant/enchant2/}
 CATEGORIES=            textproc
 MASTER_SITES=          ${MASTER_SITE_GITHUB:=rrthomas/}
@@ -13,8 +13,7 @@ COMMENT=              Generic spell checking library
 LICENSE=               gnu-lgpl-v2.1
 
 USE_LANGUAGES=         c c++
-# Upstream doesn't document, but configure.ac requires C++11.
-USE_CXX_FEATURES+=     c++11
+USE_CXX_FEATURES+=     c++20
 
 USE_TOOLS+=            autoconf gmake groff pkg-config
 USE_PKGLOCALEDIR=      yes

Index: pkgsrc/textproc/enchant2/distinfo
diff -u pkgsrc/textproc/enchant2/distinfo:1.41 pkgsrc/textproc/enchant2/distinfo:1.42
--- pkgsrc/textproc/enchant2/distinfo:1.41      Wed Jul  1 21:20:22 2026
+++ pkgsrc/textproc/enchant2/distinfo   Sun Jul  5 12:11:13 2026
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.41 2026/07/01 21:20:22 wiz Exp $
+$NetBSD: distinfo,v 1.42 2026/07/05 12:11:13 wiz Exp $
 
-BLAKE2s (enchant-2.8.17.tar.gz) = ad7dab26bf43ba71eda052f5ba6a9e72b3a5cf91bd7a090556d91fe3b5b7feda
-SHA512 (enchant-2.8.17.tar.gz) = 41dfcc896fbc0fed729e842b1191b64fddd3657a39d2b79ee1ec318395872c951d723b8fbf6e8c964b04effccf9eb7699f4fbd0cd03da26599416c3c3ffb50eb
-Size (enchant-2.8.17.tar.gz) = 1271953 bytes
+BLAKE2s (enchant-2.8.18.tar.gz) = 02fc5033ed0b903b9e5f4adc71b3e0e54da614695f55319f78bd51cd609e7a90
+SHA512 (enchant-2.8.18.tar.gz) = f90961b00f86e9a80cd5f6d3f2096bff455845f88466ae151f9474aeaefc5e0a65ff5d9ea96c2d23e33f9e646f988debf761f7fef5eb6013bebb0623c9f5e094
+Size (enchant-2.8.18.tar.gz) = 1268882 bytes
 SHA1 (patch-config.h.in) = ac10b6900034acb0e961d73b1f9cf1a39bb00775



Home | Main Index | Thread Index | Old Index