pkgsrc-Changes archive

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

CVS commit: pkgsrc/wm/enlightenment16



Module Name:    pkgsrc
Committed By:   gutteridge
Date:           Wed Oct 29 23:50:01 UTC 2025

Modified Files:
        pkgsrc/wm/enlightenment16: Makefile distinfo
Added Files:
        pkgsrc/wm/enlightenment16/patches: patch-src_aclass.c
            patch-src_econfig.c patch-src_finders.c patch-src_parse.c
            patch-src_string.c

Log Message:
enlightenment16: patch ctype(3) issues

Helps with some menu issues that can occur at runtime.


To generate a diff of this commit:
cvs rdiff -u -r1.43 -r1.44 pkgsrc/wm/enlightenment16/Makefile
cvs rdiff -u -r1.19 -r1.20 pkgsrc/wm/enlightenment16/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/enlightenment16/patches/patch-src_aclass.c \
    pkgsrc/wm/enlightenment16/patches/patch-src_econfig.c \
    pkgsrc/wm/enlightenment16/patches/patch-src_finders.c \
    pkgsrc/wm/enlightenment16/patches/patch-src_parse.c \
    pkgsrc/wm/enlightenment16/patches/patch-src_string.c

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

Modified files:

Index: pkgsrc/wm/enlightenment16/Makefile
diff -u pkgsrc/wm/enlightenment16/Makefile:1.43 pkgsrc/wm/enlightenment16/Makefile:1.44
--- pkgsrc/wm/enlightenment16/Makefile:1.43     Thu Oct 23 20:39:41 2025
+++ pkgsrc/wm/enlightenment16/Makefile  Wed Oct 29 23:50:00 2025
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.43 2025/10/23 20:39:41 wiz Exp $
+# $NetBSD: Makefile,v 1.44 2025/10/29 23:50:00 gutteridge Exp $
 
 DISTNAME=      e16-1.0.31
 PKGNAME=       ${DISTNAME:S/e/enlightenment/}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    wm x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=enlightenment/}
 

Index: pkgsrc/wm/enlightenment16/distinfo
diff -u pkgsrc/wm/enlightenment16/distinfo:1.19 pkgsrc/wm/enlightenment16/distinfo:1.20
--- pkgsrc/wm/enlightenment16/distinfo:1.19     Mon Aug 11 16:07:49 2025
+++ pkgsrc/wm/enlightenment16/distinfo  Wed Oct 29 23:50:00 2025
@@ -1,6 +1,11 @@
-$NetBSD: distinfo,v 1.19 2025/08/11 16:07:49 gutteridge Exp $
+$NetBSD: distinfo,v 1.20 2025/10/29 23:50:00 gutteridge Exp $
 
 BLAKE2s (e16-1.0.31.tar.gz) = aecfec80eab7684e0a429e106479848bf7c047e1ab1f19b02aa065a0517aa39c
 SHA512 (e16-1.0.31.tar.gz) = f56360200e51d756953193a575ea382d05691751f64afc2472f20369119778bab0a332b3a28c2a3e828c9c5c761958634c452a6d5e35d8877e300818621e507f
 Size (e16-1.0.31.tar.gz) = 2425097 bytes
 SHA1 (patch-ac) = a74b2ff4636974a4031629bb377fa648cf66252f
+SHA1 (patch-src_aclass.c) = 28998ce487b03ecb1c1cf70b526b6004b3574706
+SHA1 (patch-src_econfig.c) = c18fdef217e086c0a146aa6f2dbb03861252c850
+SHA1 (patch-src_finders.c) = b256e091beb877399c011c7f6f20a0f88fe31e5d
+SHA1 (patch-src_parse.c) = c84f19a9b5c7afe1a77db3e3159005d152b18401
+SHA1 (patch-src_string.c) = e61f83c9a56cc7f986e605f70a4e8169ab2ac4de

Added files:

Index: pkgsrc/wm/enlightenment16/patches/patch-src_aclass.c
diff -u /dev/null pkgsrc/wm/enlightenment16/patches/patch-src_aclass.c:1.1
--- /dev/null   Wed Oct 29 23:50:01 2025
+++ pkgsrc/wm/enlightenment16/patches/patch-src_aclass.c        Wed Oct 29 23:50:00 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_aclass.c,v 1.1 2025/10/29 23:50:00 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- src/aclass.c.orig  2025-07-27 07:03:43.000000000 +0000
++++ src/aclass.c
+@@ -565,7 +565,7 @@ ActionDecode(const char *line)
+     case EVENT_MOUSE_LEAVE:
+         if (key[0] == '*')
+             anybut = 1;
+-        else if (isdigit(key[0]))
++        else if (isdigit((unsigned char)key[0]))
+             button = atoi(key);
+         if (!anybut && button == 0)
+             return NULL;        /* Invalid */
Index: pkgsrc/wm/enlightenment16/patches/patch-src_econfig.c
diff -u /dev/null pkgsrc/wm/enlightenment16/patches/patch-src_econfig.c:1.1
--- /dev/null   Wed Oct 29 23:50:01 2025
+++ pkgsrc/wm/enlightenment16/patches/patch-src_econfig.c       Wed Oct 29 23:50:00 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_econfig.c,v 1.1 2025/10/29 23:50:00 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- src/econfig.c.orig 2025-06-23 13:11:03.000000000 +0000
++++ src/econfig.c
+@@ -93,7 +93,7 @@ e16_db_open_read(const char *name)
+         /* Strip comment and trailing whitespace */
+         i = strcspn(s, "#\r\n");
+         for (; i > 0; i--)
+-            if (!isspace(s[i - 1]))
++            if (!isspace((unsigned char)s[i - 1]))
+                 break;
+         s[i] = '\0';
+ 
Index: pkgsrc/wm/enlightenment16/patches/patch-src_finders.c
diff -u /dev/null pkgsrc/wm/enlightenment16/patches/patch-src_finders.c:1.1
--- /dev/null   Wed Oct 29 23:50:01 2025
+++ pkgsrc/wm/enlightenment16/patches/patch-src_finders.c       Wed Oct 29 23:50:00 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_finders.c,v 1.1 2025/10/29 23:50:00 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- src/finders.c.orig 2025-06-23 13:11:03.000000000 +0000
++++ src/finders.c
+@@ -114,7 +114,7 @@ EwinsFindByExpr(const char *match, int *
+         goto do_one;
+     }
+ 
+-    if (isdigit(match[0]))
++    if (isdigit((unsigned char)match[0]))
+     {
+         unsigned int    win;
+ 
Index: pkgsrc/wm/enlightenment16/patches/patch-src_parse.c
diff -u /dev/null pkgsrc/wm/enlightenment16/patches/patch-src_parse.c:1.1
--- /dev/null   Wed Oct 29 23:50:01 2025
+++ pkgsrc/wm/enlightenment16/patches/patch-src_parse.c Wed Oct 29 23:50:00 2025
@@ -0,0 +1,33 @@
+$NetBSD: patch-src_parse.c,v 1.1 2025/10/29 23:50:00 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- src/parse.c.orig   2025-06-23 13:11:03.000000000 +0000
++++ src/parse.c
+@@ -48,7 +48,7 @@ parse(char *buf, const char *fmt, ...)
+         if (chf == '\0')
+             break;
+         /* Strip leading whitespace */
+-        while (isspace(*buf))
++        while (isspace((unsigned char)*buf))
+             buf++;
+         if (!*buf)
+             break;
+@@ -67,7 +67,7 @@ parse(char *buf, const char *fmt, ...)
+                     p = strchr(p, chq);
+                     if (p)
+                     {
+-                        if (p[1] && !isspace(p[1]))
++                        if (p[1] && !isspace((unsigned char)p[1]))
+                             continue;
+                         *p++ = '\0';    /* Terminate at quote */
+                     }
+@@ -82,7 +82,7 @@ parse(char *buf, const char *fmt, ...)
+             {
+                 /* Token is unquoted */
+                 p = buf + 1;
+-                while (*p && !isspace(*p))
++                while (*p && !isspace((unsigned char)*p))
+                     p++;
+                 if (*p)
+                     *p++ = '\0';
Index: pkgsrc/wm/enlightenment16/patches/patch-src_string.c
diff -u /dev/null pkgsrc/wm/enlightenment16/patches/patch-src_string.c:1.1
--- /dev/null   Wed Oct 29 23:50:01 2025
+++ pkgsrc/wm/enlightenment16/patches/patch-src_string.c        Wed Oct 29 23:50:00 2025
@@ -0,0 +1,62 @@
+$NetBSD: patch-src_string.c,v 1.1 2025/10/29 23:50:00 gutteridge Exp $
+
+Use ctype.h correctly.
+
+--- src/string.c.orig  2025-06-23 13:11:03.000000000 +0000
++++ src/string.c
+@@ -34,8 +34,8 @@ Estrcasecmp(const char *s1, const char *
+ 
+     for (;;)
+     {
+-        ch1 = toupper(*s1++);
+-        ch2 = toupper(*s2++);
++        ch1 = toupper((unsigned char)*s1++);
++        ch2 = toupper((unsigned char)*s2++);
+         if (ch1 == '\0' || ch1 != ch2)
+             break;
+     }
+@@ -59,8 +59,8 @@ Estrcasestr(const char *haystack, const 
+             break;
+         for (;;)
+         {
+-            ch1 = toupper(*s1++);
+-            ch2 = toupper(*s2++);
++            ch1 = toupper((unsigned char)*s1++);
++            ch2 = toupper((unsigned char)*s2++);
+             if (ch2 == '\0')
+                 return haystack;
+             if (ch1 == '\0' || ch1 != ch2)
+@@ -97,7 +97,7 @@ EnvSubst(const char *str, char *bptr, un
+         /* $ENV_VAR - Name is validted */
+         for (; *p2 != '\0'; p2++)
+         {
+-            if (!(isalnum(*p2) || *p2 == '_'))
++            if (!(isalnum((unsigned char)*p2) || *p2 == '_'))
+                 break;
+         }
+         len = p2 - p1;
+@@ -129,13 +129,13 @@ Estrtrim(char *s)
+ {
+     int             l;
+ 
+-    while (isspace(*s))
++    while (isspace((unsigned char)*s))
+         s++;
+     if (!*s)
+         return s;
+ 
+     l = strlen(s);
+-    while (isspace(s[l - 1]))
++    while (isspace((unsigned char)s[l - 1]))
+         l--;
+     s[l] = '\0';
+ 
+@@ -150,7 +150,7 @@ Estrtrim2(char *s)
+ {
+     int             len, len2, ch, quote;
+ 
+-    while (isspace(*s))
++    while (isspace((unsigned char)*s))
+         s++;
+ 
+     quote = '\0';



Home | Main Index | Thread Index | Old Index