pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/libgit2



Module Name:    pkgsrc
Committed By:   wiz
Date:           Fri Apr  5 17:03:59 UTC 2024

Modified Files:
        pkgsrc/devel/libgit2: Makefile PLIST distinfo
Added Files:
        pkgsrc/devel/libgit2/patches: patch-deps_ntlmclient_ntlm.c
            patch-src_libgit2_config.c patch-src_libgit2_path.c
            patch-src_libgit2_trailer.c
            patch-src_libgit2_transports_smart__pkt.c patch-src_util_date.c
            patch-src_util_str.c patch-src_util_util.h

Log Message:
libgit2: revert upgrade to 1.8.0

breaks cargo-c and probably others and I don't to deal with it right now


To generate a diff of this commit:
cvs rdiff -u -r1.76 -r1.77 pkgsrc/devel/libgit2/Makefile
cvs rdiff -u -r1.21 -r1.22 pkgsrc/devel/libgit2/PLIST
cvs rdiff -u -r1.37 -r1.38 pkgsrc/devel/libgit2/distinfo
cvs rdiff -u -r0 -r1.3 \
    pkgsrc/devel/libgit2/patches/patch-deps_ntlmclient_ntlm.c \
    pkgsrc/devel/libgit2/patches/patch-src_libgit2_config.c \
    pkgsrc/devel/libgit2/patches/patch-src_libgit2_path.c \
    pkgsrc/devel/libgit2/patches/patch-src_libgit2_trailer.c \
    pkgsrc/devel/libgit2/patches/patch-src_libgit2_transports_smart__pkt.c \
    pkgsrc/devel/libgit2/patches/patch-src_util_date.c \
    pkgsrc/devel/libgit2/patches/patch-src_util_str.c \
    pkgsrc/devel/libgit2/patches/patch-src_util_util.h

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

Modified files:

Index: pkgsrc/devel/libgit2/Makefile
diff -u pkgsrc/devel/libgit2/Makefile:1.76 pkgsrc/devel/libgit2/Makefile:1.77
--- pkgsrc/devel/libgit2/Makefile:1.76  Fri Apr  5 11:20:23 2024
+++ pkgsrc/devel/libgit2/Makefile       Fri Apr  5 17:03:59 2024
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.76 2024/04/05 11:20:23 wiz Exp $
+# $NetBSD: Makefile,v 1.77 2024/04/05 17:03:59 wiz Exp $
 
-DISTNAME=      libgit2-1.8.0
+DISTNAME=      libgit2-1.7.2
 CATEGORIES=    devel
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=libgit2/}
 GITHUB_TAG=    v${PKGVERSION_NOREV}

Index: pkgsrc/devel/libgit2/PLIST
diff -u pkgsrc/devel/libgit2/PLIST:1.21 pkgsrc/devel/libgit2/PLIST:1.22
--- pkgsrc/devel/libgit2/PLIST:1.21     Fri Apr  5 11:20:23 2024
+++ pkgsrc/devel/libgit2/PLIST  Fri Apr  5 17:03:59 2024
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.21 2024/04/05 11:20:23 wiz Exp $
+@comment $NetBSD: PLIST,v 1.22 2024/04/05 17:03:59 wiz Exp $
 bin/git2
 include/git2.h
 include/git2/annotated_commit.h
@@ -69,7 +69,6 @@ include/git2/sys/cred.h
 include/git2/sys/credential.h
 include/git2/sys/diff.h
 include/git2/sys/email.h
-include/git2/sys/errors.h
 include/git2/sys/filter.h
 include/git2/sys/hashsig.h
 include/git2/sys/index.h
@@ -95,6 +94,6 @@ include/git2/types.h
 include/git2/version.h
 include/git2/worktree.h
 lib/libgit2.so
-lib/libgit2.so.1.8
+lib/libgit2.so.1.7
 lib/libgit2.so.${PKGVERSION}
 lib/pkgconfig/libgit2.pc

Index: pkgsrc/devel/libgit2/distinfo
diff -u pkgsrc/devel/libgit2/distinfo:1.37 pkgsrc/devel/libgit2/distinfo:1.38
--- pkgsrc/devel/libgit2/distinfo:1.37  Fri Apr  5 11:20:23 2024
+++ pkgsrc/devel/libgit2/distinfo       Fri Apr  5 17:03:59 2024
@@ -1,5 +1,13 @@
-$NetBSD: distinfo,v 1.37 2024/04/05 11:20:23 wiz Exp $
+$NetBSD: distinfo,v 1.38 2024/04/05 17:03:59 wiz Exp $
 
-BLAKE2s (libgit2-1.8.0.tar.gz) = 45bcf3f8f54b6d7912d75708140fc00335a8024827f9278ef7b58201a496968a
-SHA512 (libgit2-1.8.0.tar.gz) = e5634267bd9c6a594c9a954d09c657e7b8aadf213609bf7dd83b99863d0d0c7109a5277617dd508abc2da54ea3f12c2af1908d1aeb73c000e94056e2f3653144
-Size (libgit2-1.8.0.tar.gz) = 7590126 bytes
+BLAKE2s (libgit2-1.7.2.tar.gz) = 51be87fe3dd22b785873c4089c11d33e148814ef0d361fd9020f49b86590d2c4
+SHA512 (libgit2-1.7.2.tar.gz) = 825737e4a1991fba50ea535f15b0e560ebe76ead752e04aeba36925b944d0da77fe9826a70980a1aa3d0bf9afbedfab79dd92e799c9252931384c89ebec9b012
+Size (libgit2-1.7.2.tar.gz) = 7548186 bytes
+SHA1 (patch-deps_ntlmclient_ntlm.c) = 0f7645497b25f6895911cf32027e830ab73bdc55
+SHA1 (patch-src_libgit2_config.c) = f3c131d26bb38e86ff992eb8007ec399846a205a
+SHA1 (patch-src_libgit2_path.c) = b1f5245472ec00ff1c1c6b55b4ecdc88e1f163ac
+SHA1 (patch-src_libgit2_trailer.c) = d8a6e733ff963124024bfb9f7118d8e537815695
+SHA1 (patch-src_libgit2_transports_smart__pkt.c) = 9c4c6ee17512f7bb06d02343ef0a07794361c88e
+SHA1 (patch-src_util_date.c) = 47c56292b8f2483065e904f99dc51832bab0de3d
+SHA1 (patch-src_util_str.c) = 737f658e82b00c623533181126996263a2f1df45
+SHA1 (patch-src_util_util.h) = 54e74097b87af3c2939e7c237f1d2827101b9a72

Added files:

Index: pkgsrc/devel/libgit2/patches/patch-deps_ntlmclient_ntlm.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-deps_ntlmclient_ntlm.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-deps_ntlmclient_ntlm.c   Fri Apr  5 17:03:59 2024
@@ -0,0 +1,18 @@
+$NetBSD: patch-deps_ntlmclient_ntlm.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for arg to toupper().
+
+--- deps/ntlmclient/ntlm.c.orig        2023-04-12 12:05:25.000000000 +0000
++++ deps/ntlmclient/ntlm.c
+@@ -988,9 +988,9 @@ static inline bool generate_lm_hash(
+       keystr2_len = (password_len > 7) ? MIN(14, password_len) - 7 : 0;
+ 
+       for (i = 0; i < keystr1_len; i++)
+-              keystr1[i] = (unsigned char)toupper(password[i]);
++              keystr1[i] = (unsigned char)toupper((unsigned char)password[i]);
+       for (i = 0; i < keystr2_len; i++)
+-              keystr2[i] = (unsigned char)toupper(password[i+7]);
++              keystr2[i] = (unsigned char)toupper((unsigned char)password[i+7]);
+ 
+       /* DES encrypt the LM constant using the password as the key */
+       des_key_from_password(&key1, keystr1, keystr1_len);
Index: pkgsrc/devel/libgit2/patches/patch-src_libgit2_config.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_libgit2_config.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_libgit2_config.c     Fri Apr  5 17:03:59 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libgit2_config.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for arg to isalnum().
+
+--- src/libgit2/config.c.orig  2023-04-12 12:05:25.000000000 +0000
++++ src/libgit2/config.c
+@@ -1447,7 +1447,7 @@ static int normalize_section(char *start
+       for (scan = start; *scan; ++scan) {
+               if (end && scan >= end)
+                       break;
+-              if (isalnum(*scan))
++              if (isalnum((unsigned char)*scan))
+                       *scan = (char)git__tolower(*scan);
+               else if (*scan != '-' || scan == start)
+                       return GIT_EINVALIDSPEC;
Index: pkgsrc/devel/libgit2/patches/patch-src_libgit2_path.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_libgit2_path.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_libgit2_path.c       Fri Apr  5 17:03:59 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_libgit2_path.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for tolower() argument.
+
+--- src/libgit2/path.c.orig    2023-04-12 12:05:25.000000000 +0000
++++ src/libgit2/path.c
+@@ -202,7 +202,7 @@ GIT_INLINE(size_t) common_prefix_icase(c
+ {
+       size_t count = 0;
+ 
+-      while (len > 0 && tolower(*str) == tolower(*prefix)) {
++      while (len > 0 && tolower((unsigned char)*str) == tolower((unsigned char)*prefix)) {
+               count++;
+               str++;
+               prefix++;
Index: pkgsrc/devel/libgit2/patches/patch-src_libgit2_trailer.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_libgit2_trailer.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_libgit2_trailer.c    Fri Apr  5 17:03:59 2024
@@ -0,0 +1,48 @@
+$NetBSD: patch-src_libgit2_trailer.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for args to ctype functions.
+
+--- src/libgit2/trailer.c.orig 2023-04-12 12:05:25.000000000 +0000
++++ src/libgit2/trailer.c
+@@ -24,7 +24,7 @@ static const char *const git_generated_p
+ static int is_blank_line(const char *str)
+ {
+       const char *s = str;
+-      while (*s && *s != '\n' && isspace(*s))
++      while (*s && *s != '\n' && isspace((unsigned char)*s))
+               s++;
+       return !*s || *s == '\n';
+ }
+@@ -93,7 +93,7 @@ static bool find_separator(size_t *out, 
+                       return true;
+               }
+ 
+-              if (!whitespace_found && (isalnum(*c) || *c == '-'))
++              if (!whitespace_found && (isalnum((unsigned char)*c) || *c == '-'))
+                       continue;
+               if (c != line && (*c == ' ' || *c == '\t')) {
+                       whitespace_found = 1;
+@@ -233,12 +233,12 @@ static size_t find_trailer_start(const c
+               }
+ 
+               find_separator(&separator_pos, bol, TRAILER_SEPARATORS);
+-              if (separator_pos >= 1 && !isspace(bol[0])) {
++              if (separator_pos >= 1 && !isspace((unsigned char)bol[0])) {
+                       trailer_lines++;
+                       possible_continuation_lines = 0;
+                       if (recognized_prefix)
+                               continue;
+-              } else if (isspace(bol[0]))
++              } else if (isspace((unsigned char)bol[0]))
+                       possible_continuation_lines++;
+               else {
+                       non_trailer_lines++;
+@@ -323,7 +323,7 @@ int git_message_trailers(git_message_tra
+                                       goto ret;
+                               }
+ 
+-                              if (isalnum(*ptr) || *ptr == '-') {
++                              if (isalnum((unsigned char)*ptr) || *ptr == '-') {
+                                       /* legal key character */
+                                       NEXT(S_KEY);
+                               }
Index: pkgsrc/devel/libgit2/patches/patch-src_libgit2_transports_smart__pkt.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_libgit2_transports_smart__pkt.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_libgit2_transports_smart__pkt.c      Fri Apr  5 17:03:59 2024
@@ -0,0 +1,19 @@
+$NetBSD: patch-src_libgit2_transports_smart__pkt.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for args to ctype functions.
+
+--- src/libgit2/transports/smart_pkt.c.orig    2023-04-12 12:05:25.000000000 +0000
++++ src/libgit2/transports/smart_pkt.c
+@@ -451,10 +451,10 @@ static int parse_len(size_t *out, const 
+       num[PKT_LEN_SIZE] = '\0';
+ 
+       for (i = 0; i < PKT_LEN_SIZE; ++i) {
+-              if (!isxdigit(num[i])) {
++              if (!isxdigit((unsigned char)num[i])) {
+                       /* Make sure there are no special characters before passing to error message */
+                       for (k = 0; k < PKT_LEN_SIZE; ++k) {
+-                              if(!isprint(num[k])) {
++                              if(!isprint((unsigned char)num[k])) {
+                                       num[k] = '.';
+                               }
+                       }
Index: pkgsrc/devel/libgit2/patches/patch-src_util_date.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_util_date.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_util_date.c  Fri Apr  5 17:03:59 2024
@@ -0,0 +1,81 @@
+$NetBSD: patch-src_util_date.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range to ctype ops (toupper, isalnum, ...).
+
+--- src/util/date.c.orig       2023-04-12 12:05:25.000000000 +0000
++++ src/util/date.c
+@@ -129,9 +129,9 @@ static size_t match_string(const char *d
+       for (i = 0; *date; date++, str++, i++) {
+               if (*date == *str)
+                       continue;
+-              if (toupper(*date) == toupper(*str))
++              if (toupper((unsigned char)*date) == toupper((unsigned char)*str))
+                       continue;
+-              if (!isalnum(*date))
++              if (!isalnum((unsigned char)*date))
+                       break;
+               return 0;
+       }
+@@ -143,7 +143,7 @@ static int skip_alpha(const char *date)
+       int i = 0;
+       do {
+               i++;
+-      } while (isalpha(date[i]));
++      } while (isalpha((unsigned char)date[i]));
+       return i;
+ }
+ 
+@@ -251,7 +251,7 @@ static size_t match_multi_number(unsigne
+ 
+       num2 = strtol(end+1, &end, 10);
+       num3 = -1;
+-      if (*end == c && isdigit(end[1]))
++      if (*end == c && isdigit((unsigned char)end[1]))
+               num3 = strtol(end+1, &end, 10);
+ 
+       /* Time? Date? */
+@@ -349,7 +349,7 @@ static size_t match_digit(const char *da
+       case '.':
+       case '/':
+       case '-':
+-              if (isdigit(end[1])) {
++              if (isdigit((unsigned char)end[1])) {
+                       size_t match = match_multi_number(num, *end, date, end, tm);
+                       if (match)
+                               return match;
+@@ -364,7 +364,7 @@ static size_t match_digit(const char *da
+       n = 0;
+       do {
+               n++;
+-      } while (isdigit(date[n]));
++      } while (isdigit((unsigned char)date[n]));
+ 
+       /* Four-digit year or a timezone? */
+       if (n == 4) {
+@@ -518,7 +518,7 @@ static int parse_date_basic(const char *
+                       match = match_alpha(date, &tm, offset);
+               else if (isdigit(c))
+                       match = match_digit(date, &tm, offset, &tm_gmt);
+-              else if ((c == '-' || c == '+') && isdigit(date[1]))
++              else if ((c == '-' || c == '+') && isdigit((unsigned char)date[1]))
+                       match = match_tz(date, offset);
+ 
+               if (!match) {
+@@ -682,7 +682,7 @@ static const char *approxidate_alpha(con
+       const char *end = date;
+       int i;
+ 
+-      while (isalpha(*++end))
++      while (isalpha((unsigned char)*++end))
+               /* scan to non-alpha */;
+ 
+       for (i = 0; i < 12; i++) {
+@@ -783,7 +783,7 @@ static const char *approxidate_digit(con
+       case '.':
+       case '/':
+       case '-':
+-              if (isdigit(end[1])) {
++              if (isdigit((unsigned char)end[1])) {
+                       size_t match = match_multi_number(number, *end, date, end, tm);
+                       if (match)
+                               return date + match;
Index: pkgsrc/devel/libgit2/patches/patch-src_util_str.c
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_util_str.c:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_util_str.c   Fri Apr  5 17:03:59 2024
@@ -0,0 +1,17 @@
+$NetBSD: patch-src_util_str.c,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure proper value range for arg to isxdigit().
+
+--- src/util/str.c.orig        2023-04-12 12:05:25.000000000 +0000
++++ src/util/str.c
+@@ -485,8 +485,8 @@ int git_str_decode_percent(
+       for (str_pos = 0; str_pos < str_len; buf->size++, str_pos++) {
+               if (str[str_pos] == '%' &&
+                       str_len > str_pos + 2 &&
+-                      isxdigit(str[str_pos + 1]) &&
+-                      isxdigit(str[str_pos + 2])) {
++                      isxdigit((unsigned char)str[str_pos + 1]) &&
++                      isxdigit((unsigned char)str[str_pos + 2])) {
+                       buf->ptr[buf->size] = (HEX_DECODE(str[str_pos + 1]) << 4) +
+                               HEX_DECODE(str[str_pos + 2]);
+                       str_pos += 2;
Index: pkgsrc/devel/libgit2/patches/patch-src_util_util.h
diff -u /dev/null pkgsrc/devel/libgit2/patches/patch-src_util_util.h:1.3
--- /dev/null   Fri Apr  5 17:03:59 2024
+++ pkgsrc/devel/libgit2/patches/patch-src_util_util.h  Fri Apr  5 17:03:59 2024
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_util_util.h,v 1.3 2024/04/05 17:03:59 wiz Exp $
+
+Ensure appropriate value range for arg to tolower().
+
+--- src/util/util.h.orig       2023-04-12 12:05:25.000000000 +0000
++++ src/util/util.h
+@@ -89,7 +89,7 @@ GIT_INLINE(int) git__tolower(int c)
+       return (c >= 'A' && c <= 'Z') ? (c + 32) : c;
+ }
+ #else
+-# define git__tolower(a) tolower(a)
++# define git__tolower(a) tolower((unsigned char)a)
+ #endif
+ 
+ extern size_t git__linenlen(const char *buffer, size_t buffer_len);



Home | Main Index | Thread Index | Old Index