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:   leot
Date:           Sat Nov 22 20:25:06 UTC 2025

Modified Files:
        pkgsrc/textproc/hunspell: Makefile distinfo
Added Files:
        pkgsrc/textproc/hunspell/patches: patch-src_parsers_latexparser.cxx

Log Message:
hunspell: Fix a ctype(3) abuse

There are probably other ctype(3) abuses but "-Wall" does not seem to
work when <cctype> is included because the macros get undef-ed and
that one was exercised the hard way via `hunspell -t`.

PKGREVISION++


To generate a diff of this commit:
cvs rdiff -u -r1.44 -r1.45 pkgsrc/textproc/hunspell/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/textproc/hunspell/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/hunspell/patches/patch-src_parsers_latexparser.cxx

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.44 pkgsrc/textproc/hunspell/Makefile:1.45
--- pkgsrc/textproc/hunspell/Makefile:1.44      Wed May 17 10:23:02 2023
+++ pkgsrc/textproc/hunspell/Makefile   Sat Nov 22 20:25:05 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.44 2023/05/17 10:23:02 he Exp $
+# $NetBSD: Makefile,v 1.45 2025/11/22 20:25:05 leot Exp $
 
 DISTNAME=      hunspell-1.7.2
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    textproc
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=hunspell/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/textproc/hunspell/distinfo
diff -u pkgsrc/textproc/hunspell/distinfo:1.17 pkgsrc/textproc/hunspell/distinfo:1.18
--- pkgsrc/textproc/hunspell/distinfo:1.17      Thu Jan 19 00:53:42 2023
+++ pkgsrc/textproc/hunspell/distinfo   Sat Nov 22 20:25:05 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2023/01/19 00:53:42 wiz Exp $
+$NetBSD: distinfo,v 1.18 2025/11/22 20:25:05 leot Exp $
 
 BLAKE2s (hunspell-1.7.2.tar.gz) = f63f12bf600e05c58720f27ab30ff5d7d3265f4f610a2cb15b7a17f55bd3704d
 SHA512 (hunspell-1.7.2.tar.gz) = d007edc8cb7ff95048361418b088bb062962973247c940aa826c9859a5ef90a9734100bffe7c7ac9a774f2e233605e814efb9e7fd3fc8c4ef4b978e9ec990cba
@@ -7,4 +7,5 @@ SHA1 (patch-aa) = 75bc2e099acf2bf3b1caba
 SHA1 (patch-ab) = 489e8e4f978ff531322a445612f836c2d90e4e64
 SHA1 (patch-ac) = 869175eceeaba245ddda65ce6043eb243c6dd039
 SHA1 (patch-configure.ac) = 0610ecc9ad8bc9ac5b523ffecb27011854f5e023
+SHA1 (patch-src_parsers_latexparser.cxx) = 0107d2b015cb85de3d535524be4429f68692dc20
 SHA1 (patch-src_tools_Makefile.am) = e5f67855c48e04fe12deb90904c9c27e2441a8cf

Added files:

Index: pkgsrc/textproc/hunspell/patches/patch-src_parsers_latexparser.cxx
diff -u /dev/null pkgsrc/textproc/hunspell/patches/patch-src_parsers_latexparser.cxx:1.1
--- /dev/null   Sat Nov 22 20:25:06 2025
+++ pkgsrc/textproc/hunspell/patches/patch-src_parsers_latexparser.cxx  Sat Nov 22 20:25:05 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_parsers_latexparser.cxx,v 1.1 2025/11/22 20:25:05 leot Exp $
+
+Avoid ctype(3) abuses.
+
+--- src/parsers/latexparser.cxx.orig   2025-11-22 19:50:34.936082555 +0000
++++ src/parsers/latexparser.cxx
+@@ -157,7 +157,7 @@ int LaTeXParser::look_pattern(int col) {
+     const char* k = PATTERN[i].pat[col];
+     if (!k)
+       continue;
+-    while ((*k != '\0') && (tolower(*j) == *k)) {
++    while ((*k != '\0') && (tolower((unsigned char)*j) == *k)) {
+       j++;
+       k++;
+     }



Home | Main Index | Thread Index | Old Index