pkgsrc-Changes archive

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

CVS commit: pkgsrc/textproc/p5-Text-BibTeX



Module Name:    pkgsrc
Committed By:   markd
Date:           Wed Apr 29 21:08:25 UTC 2026

Modified Files:
        pkgsrc/textproc/p5-Text-BibTeX: Makefile distinfo
Added Files:
        pkgsrc/textproc/p5-Text-BibTeX/patches:
            patch-btparse_src_lex__auxiliary.c patch-btparse_src_names.c
            patch-btparse_src_string__util.c patch-btparse_src_sym.h
            patch-btparse_src_util.c

Log Message:
p5-Text-BibTeX: fix ctype(3) usage.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 pkgsrc/textproc/p5-Text-BibTeX/Makefile
cvs rdiff -u -r1.30 -r1.31 pkgsrc/textproc/p5-Text-BibTeX/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_lex__auxiliary.c \
    pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_names.c \
    pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_string__util.c \
    pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_sym.h \
    pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_util.c

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

Modified files:

Index: pkgsrc/textproc/p5-Text-BibTeX/Makefile
diff -u pkgsrc/textproc/p5-Text-BibTeX/Makefile:1.65 pkgsrc/textproc/p5-Text-BibTeX/Makefile:1.66
--- pkgsrc/textproc/p5-Text-BibTeX/Makefile:1.65        Mon Jan 19 07:50:27 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/Makefile     Wed Apr 29 21:08:24 2026
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.65 2026/01/19 07:50:27 wiz Exp $
+# $NetBSD: Makefile,v 1.66 2026/04/29 21:08:24 markd Exp $
 
 DISTNAME=      Text-BibTeX-0.91
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Text/}
 

Index: pkgsrc/textproc/p5-Text-BibTeX/distinfo
diff -u pkgsrc/textproc/p5-Text-BibTeX/distinfo:1.30 pkgsrc/textproc/p5-Text-BibTeX/distinfo:1.31
--- pkgsrc/textproc/p5-Text-BibTeX/distinfo:1.30        Fri May 30 01:12:18 2025
+++ pkgsrc/textproc/p5-Text-BibTeX/distinfo     Wed Apr 29 21:08:24 2026
@@ -1,6 +1,11 @@
-$NetBSD: distinfo,v 1.30 2025/05/30 01:12:18 wen Exp $
+$NetBSD: distinfo,v 1.31 2026/04/29 21:08:24 markd Exp $
 
 BLAKE2s (Text-BibTeX-0.91.tar.gz) = a4ac900154e40a05c18e5bc4f24d7d168549b0e6fe885508550def49ba7778af
 SHA512 (Text-BibTeX-0.91.tar.gz) = 7b2f010630b3fc51e9256d52349b16e99c560154216c0f76402d382ad80317296edf74b4b3013df6f2ac941afac199f346bdd2a05236df41e440ec87cf3d07f0
 Size (Text-BibTeX-0.91.tar.gz) = 302052 bytes
+SHA1 (patch-btparse_src_lex__auxiliary.c) = 466491d86300ceee2607b5fd510b5c39fd7f3df2
+SHA1 (patch-btparse_src_names.c) = 67942f8f93fa01b0cfda1629bfe133d2cf83585a
+SHA1 (patch-btparse_src_string__util.c) = ecced2901422189da2d2208b03e010917539b43a
+SHA1 (patch-btparse_src_sym.h) = cd2053641221a5a8e7b6f3f9b0c5cf72816a133b
+SHA1 (patch-btparse_src_util.c) = 5e40e65cc33aa2bc0c17b630abcf6617268be0b1
 SHA1 (patch-inc_MyBuilder.pm) = c584445f48a0e390925cefe8e7b1222aa129b1d6

Added files:

Index: pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_lex__auxiliary.c
diff -u /dev/null pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_lex__auxiliary.c:1.1
--- /dev/null   Wed Apr 29 21:08:25 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_lex__auxiliary.c   Wed Apr 29 21:08:25 2026
@@ -0,0 +1,18 @@
+$NetBSD: patch-btparse_src_lex__auxiliary.c,v 1.1 2026/04/29 21:08:25 markd Exp $
+
+Fix ctype(3) usage.
+
+--- ./btparse/src/lex_auxiliary.c.orig 2025-01-29 15:47:18.000000000 +0000
++++ ./btparse/src/lex_auxiliary.c
+@@ -896,9 +896,9 @@ void check_runaway_string (void)
+          guess = entry;
+       }
+ 
+-      if (strchr (alpha_chars, tolower (zzbegexpr[i])) != NULL)
++      if (strchr (alpha_chars, tolower ((unsigned char)zzbegexpr[i])) != NULL)
+       {
+-         while (i < len && strchr (name_chars, tolower (zzbegexpr[i])) != NULL)
++         while (i < len && strchr (name_chars, tolower ((unsigned char)zzbegexpr[i])) != NULL)
+             i++;
+          while (i < len && zzbegexpr[i] == ' ') i++;
+          if (i == len)
Index: pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_names.c
diff -u /dev/null pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_names.c:1.1
--- /dev/null   Wed Apr 29 21:08:25 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_names.c    Wed Apr 29 21:08:25 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-btparse_src_names.c,v 1.1 2026/04/29 21:08:25 markd Exp $
+
+Fix ctype(3) usage.
+
+--- ./btparse/src/names.c.orig 2025-01-29 15:47:18.000000000 +0000
++++ ./btparse/src/names.c
+@@ -157,7 +157,7 @@ bt_split_list (char *   string,
+    while (i < maxoffs)
+    {
+       /* does current char. in string match current char. in delim? */
+-      if (depth == 0 && !inword && tolower (string[i]) == delim[j])
++      if (depth == 0 && !inword && tolower ((unsigned char)string[i]) == delim[j])
+       {
+          j++; i++;
+ 
+@@ -334,7 +334,7 @@ find_commas (name_loc * loc, char *name,
+                --j;
+        else /* remove following whitespace */
+                last_whitespace = 1;
+-      } else if (isspace(c)) {
++      } else if (isspace((unsigned char)c)) {
+             /* collapse white space */
+             if (last_whitespace) continue;
+             else last_whitespace = 1;
Index: pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_string__util.c
diff -u /dev/null pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_string__util.c:1.1
--- /dev/null   Wed Apr 29 21:08:25 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_string__util.c     Wed Apr 29 21:08:25 2026
@@ -0,0 +1,92 @@
+$NetBSD: patch-btparse_src_string__util.c,v 1.1 2026/04/29 21:08:25 markd Exp $
+
+Fix ctype(3) usage.
+
+--- btparse/src/string_util.c.orig     2025-01-29 15:47:18.000000000 +0000
++++ btparse/src/string_util.c
+@@ -239,7 +239,7 @@ purify_special_char (char *str, int * sr
+ 
+    *src += 2;                           /* jump to start of control sequence */
+    peek = *src;                         /* scan to end of control sequence */
+-   while (isalpha (str[peek]))
++   while (isalpha ((unsigned char)str[peek]))
+       peek++;
+    if (peek == *src)                    /* in case of single-char, non-alpha */
+       peek++;                           /* control sequence (eg. {\'e}) */
+@@ -249,7 +249,7 @@ purify_special_char (char *str, int * sr
+       assert (peek - *src == 1 || peek - *src == 2);
+       str[(*dst)++] = str[(*src)++];    /* copy first char */
+       if (*src < peek)                  /* copy second char, downcasing */
+-         str[(*dst)++] = tolower (str[(*src)++]);
++         str[(*dst)++] = tolower ((unsigned char)str[(*src)++]);
+    }
+    else                                 /* not a foreign letter -- skip */
+    {                                    /* the control sequence entirely */
+@@ -270,7 +270,7 @@ purify_special_char (char *str, int * sr
+             (*src)++;
+             break;
+          default:
+-            if (isalpha (str[*src]))    /* copy alphabetic chars */
++            if (isalpha ((unsigned char)str[*src]))    /* copy alphabetic chars */
+                str[(*dst)++] = str[(*src)++];
+             else                        /* skip everything else */
+                (*src)++;
+@@ -442,7 +442,7 @@ convert_special_char (char transform, 
+          case '\\':                     /* a control sequence */
+          {
+             cs_end = *src+1;            /* scan over chars of c.s. */
+-            while (isalpha (string[cs_end])) 
++            while (isalpha ((unsigned char)string[cs_end])) 
+                cs_end++;
+ 
+             /* 
+@@ -535,10 +535,10 @@ convert_special_char (char transform, 
+                 */
+                case 'l':
+                case 't':
+-                  string[(*dst)++] = tolower (string[(*src)++]);
++                  string[(*dst)++] = tolower ((unsigned char)string[(*src)++]);
+                   break;
+                case 'u':
+-                  string[(*dst)++] = toupper (string[(*src)++]);
++                  string[(*dst)++] = toupper ((unsigned char)string[(*src)++]);
+                   break;
+                default:
+                   internal_error ("impossible case transform \"%c\"",
+@@ -647,7 +647,7 @@ bt_change_case (char   transform,
+             break;
+ 
+          default:
+-            if (isspace (string[src]))
++            if (isspace ((unsigned char)string[src]))
+             {
+                string[dst++] = string[src++];
+             }
+@@ -658,10 +658,10 @@ bt_change_case (char   transform,
+                   switch (transform)
+                   {
+                      case 'u':
+-                        string[dst++] = toupper (string[src++]);
++                        string[dst++] = toupper ((unsigned char)string[src++]);
+                         break;
+                      case 'l':
+-                        string[dst++] = tolower (string[src++]);
++                        string[dst++] = tolower ((unsigned char)string[src++]);
+                         break;
+                      case 't':
+                         if (start_sentence || after_colon)
+@@ -673,12 +673,12 @@ bt_change_case (char   transform,
+                             * punctuation, and second I force uppercase
+                             * at start of sentence or after a colon.
+                             */
+-                           string[dst++] = toupper (string[src++]);
++                           string[dst++] = toupper ((unsigned char)string[src++]);
+                            start_sentence = after_colon = FALSE;
+                         }
+                         else
+                         {
+-                           string[dst++] = tolower (string[src++]);
++                           string[dst++] = tolower ((unsigned char)string[src++]);
+                         }
+                         break;
+                      default:
Index: pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_sym.h
diff -u /dev/null pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_sym.h:1.1
--- /dev/null   Wed Apr 29 21:08:25 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_sym.h      Wed Apr 29 21:08:25 2026
@@ -0,0 +1,15 @@
+$NetBSD: patch-btparse_src_sym.h,v 1.1 2026/04/29 21:08:25 markd Exp $
+
+Fix ctype(3) usage.
+
+--- ./btparse/src/sym.h.orig   2025-01-29 15:47:18.000000000 +0000
++++ ./btparse/src/sym.h
+@@ -6,7 +6,7 @@
+ 
+ /* define some hash function */
+ #ifndef HASH_FUN
+-#define HASH_FUN(p, h) while ( *p != '\0' ) h = (h<<1) + tolower (*p++);
++#define HASH_FUN(p, h) while ( *p != '\0' ) h = (h<<1) + tolower ((unsigned char)*p++);
+ #endif
+ 
+ /* minimum symbol table record */
Index: pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_util.c
diff -u /dev/null pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_util.c:1.1
--- /dev/null   Wed Apr 29 21:08:25 2026
+++ pkgsrc/textproc/p5-Text-BibTeX/patches/patch-btparse_src_util.c     Wed Apr 29 21:08:25 2026
@@ -0,0 +1,24 @@
+$NetBSD: patch-btparse_src_util.c,v 1.1 2026/04/29 21:08:25 markd Exp $
+
+Fix ctype(3) usage.
+
+--- ./btparse/src/util.c.orig  2025-01-29 15:47:18.000000000 +0000
++++ ./btparse/src/util.c
+@@ -36,7 +36,7 @@ strlwr(char *s)
+ 
+     len = strlen(s);
+     for (i = 0; i < len; i++)
+-        s[i] = tolower(s[i]);
++        s[i] = tolower((unsigned char)s[i]);
+ 
+     return s;
+ }
+@@ -61,7 +61,7 @@ strupr(char *s)
+ 
+     len = strlen(s);
+     for (i = 0; i < len; i++)
+-        s[i] = toupper(s[i]);
++        s[i] = toupper((unsigned char)s[i]);
+ 
+     return s;
+ }



Home | Main Index | Thread Index | Old Index