pkgsrc-Changes archive

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

CVS commit: pkgsrc/games/iortcw



Module Name:    pkgsrc
Committed By:   nia
Date:           Fri Sep 26 15:42:16 UTC 2025

Modified Files:
        pkgsrc/games/iortcw: Makefile distinfo
Added Files:
        pkgsrc/games/iortcw/patches: patch-MP_code_ui_ui__shared.c
            patch-SP_code_ui_ui__shared.c

Log Message:
iortcw: Fix ctype usage; fixes segfault on netbsd-11


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/games/iortcw/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/games/iortcw/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/games/iortcw/patches/patch-MP_code_ui_ui__shared.c \
    pkgsrc/games/iortcw/patches/patch-SP_code_ui_ui__shared.c

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

Modified files:

Index: pkgsrc/games/iortcw/Makefile
diff -u pkgsrc/games/iortcw/Makefile:1.38 pkgsrc/games/iortcw/Makefile:1.39
--- pkgsrc/games/iortcw/Makefile:1.38   Thu Apr 24 14:13:57 2025
+++ pkgsrc/games/iortcw/Makefile        Fri Sep 26 15:42:16 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.38 2025/04/24 14:13:57 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2025/09/26 15:42:16 nia Exp $
 
 DISTNAME=      iortcw-1.51c
-PKGREVISION=   35
+PKGREVISION=   36
 CATEGORIES=    games
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=iortcw/}
 

Index: pkgsrc/games/iortcw/distinfo
diff -u pkgsrc/games/iortcw/distinfo:1.5 pkgsrc/games/iortcw/distinfo:1.6
--- pkgsrc/games/iortcw/distinfo:1.5    Sun May 12 17:51:54 2024
+++ pkgsrc/games/iortcw/distinfo        Fri Sep 26 15:42:16 2025
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2024/05/12 17:51:54 nia Exp $
+$NetBSD: distinfo,v 1.6 2025/09/26 15:42:16 nia Exp $
 
 BLAKE2s (iortcw-1.51c.tar.gz) = 968e1aef1ab2190f6a3b5ecc5a59186a325d0d2306a7b944d7fe998e8e3f1782
 SHA512 (iortcw-1.51c.tar.gz) = bed985e00ba117bfe8c5fae20671575af2fa1c2eeaaba9ef69e6b82485d883084138f7f949299cfdad8171b40209d9baf111879acfd01e5eae16859b63ce77c6
@@ -6,6 +6,8 @@ Size (iortcw-1.51c.tar.gz) = 27246236 by
 SHA1 (patch-MP_Makefile) = e9764e935e33916d8d1cac5ad45f73299b26cf4c
 SHA1 (patch-MP_code_qcommon_q__platform.h) = 70a91097da12aef4737feda2c3e3de1767f1e603
 SHA1 (patch-MP_code_splines_util__str.cpp) = 57cfb31d04dcf078d48f4253c1d9630cb3817cd1
+SHA1 (patch-MP_code_ui_ui__shared.c) = 466646104dd1d8ecfc86515b68242e3d09588411
 SHA1 (patch-SP_Makefile) = 7521a31961811458c438a67426a3a70e18c01e05
 SHA1 (patch-SP_code_qcommon_q__platform.h) = e469aefba31c26bf161a47533c8468b97aabed27
 SHA1 (patch-SP_code_splines_util__str.cpp) = 62c4c7e35ed0cfc46da617149da631f841bfc4a3
+SHA1 (patch-SP_code_ui_ui__shared.c) = 3a11b830875822410577d8f344c22cddbc355645

Added files:

Index: pkgsrc/games/iortcw/patches/patch-MP_code_ui_ui__shared.c
diff -u /dev/null pkgsrc/games/iortcw/patches/patch-MP_code_ui_ui__shared.c:1.1
--- /dev/null   Fri Sep 26 15:42:17 2025
+++ pkgsrc/games/iortcw/patches/patch-MP_code_ui_ui__shared.c   Fri Sep 26 15:42:16 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-MP_code_ui_ui__shared.c,v 1.1 2025/09/26 15:42:16 nia Exp $
+
+Fix incorrect ctype usage. This causes a segfault on startup on
+netbsd-11.
+
+--- MP/code/ui/ui_shared.c.orig        2025-09-26 15:37:45.616458946 +0000
++++ MP/code/ui/ui_shared.c
+@@ -224,7 +224,7 @@ static unsigned hashForString(const char
+       hash = 0;
+       i = 0;
+       while ( str[i] != '\0' ) {
+-              letter = tolower( str[i] );
++              letter = tolower( (unsigned char)str[i] );
+               hash += (unsigned)( letter ) * ( i + 119 );
+               i++;
+       }
Index: pkgsrc/games/iortcw/patches/patch-SP_code_ui_ui__shared.c
diff -u /dev/null pkgsrc/games/iortcw/patches/patch-SP_code_ui_ui__shared.c:1.1
--- /dev/null   Fri Sep 26 15:42:17 2025
+++ pkgsrc/games/iortcw/patches/patch-SP_code_ui_ui__shared.c   Fri Sep 26 15:42:16 2025
@@ -0,0 +1,16 @@
+$NetBSD: patch-SP_code_ui_ui__shared.c,v 1.1 2025/09/26 15:42:16 nia Exp $
+
+Fix incorrect ctype usage. This causes a segfault on startup on
+netbsd-11.
+
+--- SP/code/ui/ui_shared.c.orig        2025-09-26 15:36:35.439948084 +0000
++++ SP/code/ui/ui_shared.c
+@@ -296,7 +296,7 @@ static unsigned hashForString(const char
+       hash = 0;
+       i = 0;
+       while ( str[i] != '\0' ) {
+-              letter = tolower( str[i] );
++              letter = tolower( (unsigned char)str[i] );
+               hash += (unsigned)( letter ) * ( i + 119 );
+               i++;
+       }



Home | Main Index | Thread Index | Old Index