pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/hunspell



Module Name:    pkgsrc
Committed By:   adam
Date:           Thu May  7 16:34:35 UTC 2026

Modified Files:
        pkgsrc/textproc/hunspell: Makefile distinfo
        pkgsrc/textproc/hunspell/patches: patch-configure.ac
            patch-src_tools_Makefile.am

Log Message:
hunspell: updated to 1.7.3

Hunspell 1.7.3 release:
- Fix stack-buffer-overflow in Hunzip::getline (reported and fixed
  by MarkLee131)
- Fix stack overflow in compound_check on Hungarian dictionaries
  under certain conditions (reported by Anthropic via Ada Logics)
- Fix UB when SFX condition starts with '^'
- Bounds-check continuation bytes in u8_u16
- oss-fuzz timeout/OOM hardenings
- Fix 715 CHECKCOMPOUNDCASE considers digits uppercase
- Fix 748 hzip: cannot write file
- Fix 1024 std::string bounds check
- Fix 1044 tools/analyze crash
- Fix 1076 flags 65520/65521 wrongly rejected
- Fix 1058 don't suggest the input word as its own correction
- Fix 1002 exact word marked as a near miss
- Fix tdf125600 dotted-I regression
- Partial Unicode table refresh for Mc combining marks
- Add Hunspell_add_with_flags / Hunspell::add_with_flags
- New SPELL_BEST_SUG flag, MAXBREAKDEPTH limit
- Replace clock() with std::chrono for suggestion time limits
- Improve exception safety
- Document analyze/stem/generate requirements
- Report iconv direction on private dic load failures
- Show dic load errors unconditionally
- Rename es_EU to eu
- Build fixes: out-of-tree, Windows ARM64, MSVC hzip tmpfile
  --disable-shared with mingw32
  ncurses with separate tinfo
- New fuzzers: hzfuzzer, persdicfuzzer, parserfuzzer, affdicfuzzer
- Coverity-flagged fixes
- Merge in weblate translations


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/textproc/hunspell/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/textproc/hunspell/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/textproc/hunspell/patches/patch-configure.ac
cvs rdiff -u -r1.2 -r1.3 \
    pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am

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

Modified files:

Index: pkgsrc/textproc/hunspell/Makefile
diff -u pkgsrc/textproc/hunspell/Makefile:1.45 pkgsrc/textproc/hunspell/Makefile:1.46
--- pkgsrc/textproc/hunspell/Makefile:1.45      Sat Nov 22 20:25:05 2025
+++ pkgsrc/textproc/hunspell/Makefile   Thu May  7 16:34:35 2026
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.45 2025/11/22 20:25:05 leot Exp $
+# $NetBSD: Makefile,v 1.46 2026/05/07 16:34:35 adam Exp $
 
-DISTNAME=      hunspell-1.7.2
-PKGREVISION=   3
+DISTNAME=      hunspell-1.7.3
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=hunspell/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}
@@ -11,20 +10,20 @@ HOMEPAGE=   https://hunspell.github.io/
 COMMENT=       Improved spellchecker
 LICENSE=       mpl-1.1 OR gnu-lgpl-v2.1 OR gnu-gpl-v2
 
-GNU_CONFIGURE=         yes
+USE_CXX_FEATURES=      c++11
 USE_LIBTOOL=           yes
 USE_TOOLS+=            pkg-config perl:run autoreconf autoconf automake autopoint
 USE_PKGLOCALEDIR=      yes
-USE_LANGUAGES=         c c++11
+USE_LANGUAGES=         c c++
+GNU_CONFIGURE=         yes
+CONFIGURE_ARGS+=       --with-ui
+PKGCONFIG_OVERRIDE+=   hunspell.pc.in
+
 GCC_REQD+=             7
 FAKE_NCURSES=          yes
 
 CPPFLAGS.SunOS+=       -D_XPG6
 
-CONFIGURE_ARGS+=       --with-ui
-
-PKGCONFIG_OVERRIDE+=   hunspell.pc.in
-
 SUBST_CLASSES+=                paths
 SUBST_MESSAGE.paths=   Fixing default path to dictionaries.
 SUBST_STAGE.paths=     pre-configure

Index: pkgsrc/textproc/hunspell/distinfo
diff -u pkgsrc/textproc/hunspell/distinfo:1.18 pkgsrc/textproc/hunspell/distinfo:1.19
--- pkgsrc/textproc/hunspell/distinfo:1.18      Sat Nov 22 20:25:05 2025
+++ pkgsrc/textproc/hunspell/distinfo   Thu May  7 16:34:35 2026
@@ -1,11 +1,11 @@
-$NetBSD: distinfo,v 1.18 2025/11/22 20:25:05 leot Exp $
+$NetBSD: distinfo,v 1.19 2026/05/07 16:34:35 adam Exp $
 
-BLAKE2s (hunspell-1.7.2.tar.gz) = f63f12bf600e05c58720f27ab30ff5d7d3265f4f610a2cb15b7a17f55bd3704d
-SHA512 (hunspell-1.7.2.tar.gz) = d007edc8cb7ff95048361418b088bb062962973247c940aa826c9859a5ef90a9734100bffe7c7ac9a774f2e233605e814efb9e7fd3fc8c4ef4b978e9ec990cba
-Size (hunspell-1.7.2.tar.gz) = 981394 bytes
+BLAKE2s (hunspell-1.7.3.tar.gz) = b83173b9ea6ab62c11e4da75bce7ec2ef9e65d3f849d0b50e1504ef725e0e55a
+SHA512 (hunspell-1.7.3.tar.gz) = f279ae2c7cd71edc2a1a5977e27426205d58f6520011dfdce702073e4ca6ab439b4618dde4482cdb5b8176650d7b97c1275038b6c749134251094a59ef5a919a
+Size (hunspell-1.7.3.tar.gz) = 1036511 bytes
 SHA1 (patch-aa) = 75bc2e099acf2bf3b1caba75b616ef38ee851b70
 SHA1 (patch-ab) = 489e8e4f978ff531322a445612f836c2d90e4e64
 SHA1 (patch-ac) = 869175eceeaba245ddda65ce6043eb243c6dd039
-SHA1 (patch-configure.ac) = 0610ecc9ad8bc9ac5b523ffecb27011854f5e023
+SHA1 (patch-configure.ac) = 9916f560fe6b3be4b999c9ba0a7639c84d3b6fcb
 SHA1 (patch-src_parsers_latexparser.cxx) = 0107d2b015cb85de3d535524be4429f68692dc20
-SHA1 (patch-src_tools_Makefile.am) = e5f67855c48e04fe12deb90904c9c27e2441a8cf
+SHA1 (patch-src_tools_Makefile.am) = 4781ab63ffdd92236145918bb8800711a12b6dd0

Index: pkgsrc/textproc/hunspell/patches/patch-configure.ac
diff -u pkgsrc/textproc/hunspell/patches/patch-configure.ac:1.1 pkgsrc/textproc/hunspell/patches/patch-configure.ac:1.2
--- pkgsrc/textproc/hunspell/patches/patch-configure.ac:1.1     Thu Jan 19 00:53:42 2023
+++ pkgsrc/textproc/hunspell/patches/patch-configure.ac Thu May  7 16:34:35 2026
@@ -1,30 +1,36 @@
-$NetBSD: patch-configure.ac,v 1.1 2023/01/19 00:53:42 wiz Exp $
+$NetBSD: patch-configure.ac,v 1.2 2026/05/07 16:34:35 adam Exp $
 
-Check for symbol that is in libcurses not, not in in libterminfo.
+Check for symbol that is in libcurses, not in libterminfo.
 
---- configure.ac.orig  2022-12-29 20:10:49.000000000 +0000
+--- configure.ac.orig  2026-05-05 07:19:07.000000000 +0000
 +++ configure.ac
-@@ -52,11 +52,11 @@ AC_ARG_WITH(
+@@ -62,17 +62,17 @@ AC_ARG_WITH(
        [with_ui=no]
  )
  AS_IF([test "x$with_ui" != xno], [
 -      AC_CHECK_LIB([ncursesw],[tparm],[
 +      AC_CHECK_LIB([ncursesw],[ungetch],[
                CURSESLIB=-lncursesw
+         AC_CHECK_LIB([tinfow],[tgetent], [
+             CURSESLIB="$CURSESLIB -ltinfow"
+         ])
 -      ],[AC_CHECK_LIB([curses],[tparm],[
 +      ],[AC_CHECK_LIB([curses],[ungetch],[
                CURSESLIB=-lcurses
+         AC_CHECK_LIB([tinfo],[tgetent], [
+             CURSESLIB="$CURSESLIB -ltinfo"
+         ])
 -      ],[AC_CHECK_LIB([ncurses],[tparm],[
 +      ],[AC_CHECK_LIB([ncurses],[ungetch],[
                CURSESLIB=-lncurses
-       ])])])
-    if test "$CURSESLIB" != "" ; then
-@@ -82,7 +82,7 @@ READLINELIB=""
- AS_IF([test "x$with_readline" != xno],
-       [AC_CHECK_LIB([tinfo],[tgetent], [
+         AC_CHECK_LIB([tinfo],[tgetent], [
+             CURSESLIB="$CURSESLIB -ltinfo"
+@@ -106,7 +106,7 @@ AS_IF([test "x$with_readline" != xno],
+               TERMLIB=-ltinfow
+     ],[AC_CHECK_LIB([tinfo],[tgetent], [
                TERMLIB=-ltinfo
--        ],[AC_CHECK_LIB([curses],[tparm],[
-+        ],[AC_CHECK_LIB([curses],[ungetch],[
+-    ],[AC_CHECK_LIB([curses],[tparm],[
++    ],[AC_CHECK_LIB([curses],[ungetch],[
                TERMLIB=-lncurses
        ],[AC_CHECK_LIB([termcap],[tgetent],[
                TERMLIB=-ltermcap

Index: pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am
diff -u pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am:1.2 pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am:1.3
--- pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am:1.2    Fri Nov 16 13:02:20 2018
+++ pkgsrc/textproc/hunspell/patches/patch-src_tools_Makefile.am        Thu May  7 16:34:35 2026
@@ -1,12 +1,12 @@
-$NetBSD: patch-src_tools_Makefile.am,v 1.2 2018/11/16 13:02:20 bsiegert Exp $
+$NetBSD: patch-src_tools_Makefile.am,v 1.3 2026/05/07 16:34:35 adam Exp $
 
---- src/tools/Makefile.am.orig 2018-11-12 20:38:56.000000000 +0000
+--- src/tools/Makefile.am.orig 2026-05-05 07:19:07.000000000 +0000
 +++ src/tools/Makefile.am
 @@ -1,4 +1,4 @@
 -bin_PROGRAMS=analyze chmorph hunspell munch unmunch hzip hunzip
 +bin_PROGRAMS=hunspell-analyze chmorph hunspell hunspell-munch hunspell-unmunch hzip hunzip
  
- AM_CPPFLAGS=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers
+ AM_CPPFLAGS=-I${top_builddir}/src/hunspell -I${top_srcdir}/src/hunspell -I${top_srcdir}/src/parsers  -DDATADIR=\"$(datadir)\" $(HUNSPELL_STATIC_DEFINE)
  
 @@ -6,8 +6,8 @@ hzip_SOURCES=hzip.cxx
  hunzip_SOURCES=hunzip.cxx



Home | Main Index | Thread Index | Old Index