pkgsrc-Changes archive

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

CVS commit: pkgsrc/math/udunits



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Tue Sep 16 20:25:18 UTC 2025

Modified Files:
        pkgsrc/math/udunits: Makefile distinfo
Added Files:
        pkgsrc/math/udunits/patches: patch-lib_prefix.c

Log Message:
udunits: patch ctype(3) use

Addresses a build failure observed in dependent R-units package on
NetBSD >= 10.99.14.


To generate a diff of this commit:
cvs rdiff -u -r1.42 -r1.43 pkgsrc/math/udunits/Makefile
cvs rdiff -u -r1.18 -r1.19 pkgsrc/math/udunits/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/udunits/patches/patch-lib_prefix.c

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

Modified files:

Index: pkgsrc/math/udunits/Makefile
diff -u pkgsrc/math/udunits/Makefile:1.42 pkgsrc/math/udunits/Makefile:1.43
--- pkgsrc/math/udunits/Makefile:1.42   Wed Jun 23 19:54:03 2021
+++ pkgsrc/math/udunits/Makefile        Tue Sep 16 20:25:18 2025
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.42 2021/06/23 19:54:03 bacon Exp $
+# $NetBSD: Makefile,v 1.43 2025/09/16 20:25:18 gutteridge Exp $
 
 DISTNAME=              udunits-2.2.26
+PKGREVISION=           1
 CATEGORIES=            math devel
 MASTER_SITES=          ftp://ftp.unidata.ucar.edu/pub/udunits/
 

Index: pkgsrc/math/udunits/distinfo
diff -u pkgsrc/math/udunits/distinfo:1.18 pkgsrc/math/udunits/distinfo:1.19
--- pkgsrc/math/udunits/distinfo:1.18   Tue Oct 26 10:56:11 2021
+++ pkgsrc/math/udunits/distinfo        Tue Sep 16 20:25:18 2025
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.18 2021/10/26 10:56:11 nia Exp $
+$NetBSD: distinfo,v 1.19 2025/09/16 20:25:18 gutteridge Exp $
 
 BLAKE2s (udunits-2.2.26.tar.gz) = 29c2060c25ff44c8922d06fea917815580c4466cffc81ca96f25842807576bb9
 SHA512 (udunits-2.2.26.tar.gz) = 9e5320454646458ac40ba0855b6b8e12f7edbdb4b9a6c687a4c38ad07400e2e0c0f7968069885f83eb73da64886e1c6dd1e462ebc23205df849c3a460cedb640
 Size (udunits-2.2.26.tar.gz) = 1227596 bytes
+SHA1 (patch-lib_prefix.c) = 6a37ccd2c3df4ca7164850175f99ac20613ff566

Added files:

Index: pkgsrc/math/udunits/patches/patch-lib_prefix.c
diff -u /dev/null pkgsrc/math/udunits/patches/patch-lib_prefix.c:1.1
--- /dev/null   Tue Sep 16 20:25:18 2025
+++ pkgsrc/math/udunits/patches/patch-lib_prefix.c      Tue Sep 16 20:25:18 2025
@@ -0,0 +1,17 @@
+$NetBSD: patch-lib_prefix.c,v 1.1 2025/09/16 20:25:18 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- lib/prefix.c.orig  2017-05-09 19:28:38.000000000 +0000
++++ lib/prefix.c
+@@ -101,8 +101,8 @@ pseInsensitiveCompare(
+     const void* const entry1,
+     const void* const entry2)
+ {
+-    int       char1 = tolower(((const PrefixSearchEntry*)entry1)->character);
+-    int       char2 = tolower(((const PrefixSearchEntry*)entry2)->character);
++    int       char1 = tolower((unsigned char)((const PrefixSearchEntry*)entry1)->character);
++    int       char2 = tolower((unsigned char)((const PrefixSearchEntry*)entry2)->character);
+ 
+     return char1 < char2 ? -1 : char1 == char2 ? 0 : 1;
+ }



Home | Main Index | Thread Index | Old Index