1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

devel/py-grpcio: update to 1.58.0.

This commit is contained in:
Vanilla I. Shu 2023-09-08 22:55:23 +08:00
parent c33029664e
commit 44d2eabe98
5 changed files with 50 additions and 6 deletions

View File

@ -1,5 +1,5 @@
PORTNAME= grpcio
PORTVERSION= 1.57.0
PORTVERSION= 1.58.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1691904681
SHA256 (grpcio-1.57.0.tar.gz) = 4b089f7ad1eb00a104078bab8015b0ed0ebcb3b589e527ab009c53893fd4e613
SIZE (grpcio-1.57.0.tar.gz) = 24737546
TIMESTAMP = 1694182572
SHA256 (grpcio-1.58.0.tar.gz) = 532410c51ccd851b706d1fbc00a87be0f5312bd6f8e5dbf89d4e99c7f79d7499
SIZE (grpcio-1.58.0.tar.gz) = 24784339

View File

@ -0,0 +1,33 @@
--- third_party/abseil-cpp/absl/base/internal/sysinfo.cc.orig 2023-09-08 14:23:50 UTC
+++ third_party/abseil-cpp/absl/base/internal/sysinfo.cc
@@ -34,6 +34,10 @@
#include <sys/sysctl.h>
#endif
+#ifdef __FreeBSD__
+#include <pthread_np.h>
+#endif
+
#if defined(__myriad2__)
#include <rtems.h>
#endif
@@ -421,14 +425,18 @@ pid_t GetTID() {
return tid;
}
-#elif defined(__APPLE__)
+#elif defined(__APPLE__) || defined(__FreeBSD__)
pid_t GetTID() {
uint64_t tid;
// `nullptr` here implies this thread. This only fails if the specified
// thread is invalid or the pointer-to-tid is null, so we needn't worry about
// it.
+#if __FreeBSD__
+ tid = pthread_getthreadid_np();
+#else
pthread_threadid_np(nullptr, &tid);
+#endif
return static_cast<pid_t>(tid);
}

View File

@ -0,0 +1,11 @@
--- third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc.orig 2023-09-08 14:26:05 UTC
+++ third_party/abseil-cpp/absl/time/internal/cctz/src/time_zone_format.cc
@@ -19,7 +19,7 @@
#endif
#if defined(HAS_STRPTIME) && HAS_STRPTIME
-#if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__)
+#if !defined(_XOPEN_SOURCE) && !defined(__OpenBSD__) && !defined(__FreeBSD__)
#define _XOPEN_SOURCE 500 // Exposes definitions for SUSv2 (UNIX 98).
#endif
#endif

View File

@ -1,6 +1,6 @@
--- third_party/boringssl-with-bazel/src/include/openssl/base.h.orig 2022-05-03 21:27:37 UTC
--- third_party/boringssl-with-bazel/src/include/openssl/base.h.orig 2023-09-06 01:32:08 UTC
+++ third_party/boringssl-with-bazel/src/include/openssl/base.h
@@ -483,9 +483,6 @@ typedef void *OPENSSL_BLOCK;
@@ -413,9 +413,6 @@ typedef void *OPENSSL_BLOCK;
// MSVC doesn't set __cplusplus to 201103 to indicate C++11 support (see
// https://connect.microsoft.com/VisualStudio/feedback/details/763051/a-value-of-predefined-macro-cplusplus-is-still-199711l)
// so MSVC is just assumed to support C++11.