Thu May 16 21:31:47 2024 UTC (31d)
devel/pkgconf: Fix ctype(3) abuse.


(riastradh)
diff -r1.27 -r1.28 pkgsrc/devel/pkgconf/Makefile
diff -r1.23 -r1.24 pkgsrc/devel/pkgconf/distinfo
diff -r0 -r1.3 pkgsrc/devel/pkgconf/patches/patch-cli_main.c

cvs diff -r1.27 -r1.28 pkgsrc/devel/pkgconf/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/pkgconf/Makefile 2024/04/07 06:16:55 1.27
+++ pkgsrc/devel/pkgconf/Makefile 2024/05/16 21:31:47 1.28
@@ -1,16 +1,17 @@ @@ -1,16 +1,17 @@
1# $NetBSD: Makefile,v 1.27 2024/04/07 06:16:55 ryoon Exp $ 1# $NetBSD: Makefile,v 1.28 2024/05/16 21:31:47 riastradh Exp $
2 2
3DISTNAME= pkgconf-2.2.0 3DISTNAME= pkgconf-2.2.0
 4PKGREVISION= 1
4CATEGORIES= devel 5CATEGORIES= devel
5MASTER_SITES= https://distfiles.dereferenced.org/pkgconf/ 6MASTER_SITES= https://distfiles.dereferenced.org/pkgconf/
6 7
7MAINTAINER= nico@orgrim.net 8MAINTAINER= nico@orgrim.net
8HOMEPAGE= https://github.com/pkgconf/pkgconf 9HOMEPAGE= https://github.com/pkgconf/pkgconf
9COMMENT= API-driven pkg-config replacement 10COMMENT= API-driven pkg-config replacement
10LICENSE= modified-bsd 11LICENSE= modified-bsd
11 12
12CONFLICTS+= pkg-config-[0-9]* 13CONFLICTS+= pkg-config-[0-9]*
13 14
14USE_LIBTOOL= yes 15USE_LIBTOOL= yes
15GNU_CONFIGURE= yes 16GNU_CONFIGURE= yes
16CONFIGURE_ARGS+= --with-system-libdir=/usr/lib 17CONFIGURE_ARGS+= --with-system-libdir=/usr/lib

cvs diff -r1.23 -r1.24 pkgsrc/devel/pkgconf/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/pkgconf/distinfo 2024/04/07 06:16:55 1.23
+++ pkgsrc/devel/pkgconf/distinfo 2024/05/16 21:31:47 1.24
@@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
1$NetBSD: distinfo,v 1.23 2024/04/07 06:16:55 ryoon Exp $ 1$NetBSD: distinfo,v 1.24 2024/05/16 21:31:47 riastradh Exp $
2 2
3BLAKE2s (pkgconf-2.2.0.tar.gz) = af89943d1d73f0312f6fc3d7f01a63a6bc4b94006c17b3f8c6dd1e6ecc06b0f0 3BLAKE2s (pkgconf-2.2.0.tar.gz) = af89943d1d73f0312f6fc3d7f01a63a6bc4b94006c17b3f8c6dd1e6ecc06b0f0
4SHA512 (pkgconf-2.2.0.tar.gz) = 0ca21e4e390c57c3ad8bfeb9f8d92e65c6a60f28c2a962c1b64e268610b8d88fd502febad23264aed45db68a67dd83321b10f4e896718ab869d4ae743d769676 4SHA512 (pkgconf-2.2.0.tar.gz) = 0ca21e4e390c57c3ad8bfeb9f8d92e65c6a60f28c2a962c1b64e268610b8d88fd502febad23264aed45db68a67dd83321b10f4e896718ab869d4ae743d769676
5Size (pkgconf-2.2.0.tar.gz) = 451551 bytes 5Size (pkgconf-2.2.0.tar.gz) = 451551 bytes
 6SHA1 (patch-cli_main.c) = 95ce1b09ecdff1d78e75f8b2e73e417a8a3f2c23

File Added: pkgsrc/devel/pkgconf/patches/patch-cli_main.c
$NetBSD: patch-cli_main.c,v 1.3 2024/05/16 21:31:47 riastradh Exp $

Fix ctype(3) misuse.
https://github.com/pkgconf/pkgconf/pull/358

--- cli/main.c.orig	2024-03-27 18:36:26.000000000 +0000
+++ cli/main.c
@@ -369,7 +369,7 @@ apply_modversion(pkgconf_client_t *clien
 			if (name_len > strlen(queue_node->package) ||
 			    strncmp(pkg->why, queue_node->package, name_len) ||
 			    (queue_node->package[name_len] != 0 &&
-			     !isspace(queue_node->package[name_len]) &&
+			     !isspace((unsigned char)queue_node->package[name_len]) &&
 			     !PKGCONF_IS_OPERATOR_CHAR(queue_node->package[name_len])))
 				continue;