Skip to content

Commit

Permalink
devel/py-grpcio-tools: update to 1.58.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
vanillahsu committed Sep 8, 2023
1 parent 44d2eab commit d3ad36d
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 4 deletions.
2 changes: 1 addition & 1 deletion devel/py-grpcio-tools/Makefile
@@ -1,5 +1,5 @@
PORTNAME= grpcio-tools
PORTVERSION= 1.57.0
PORTVERSION= 1.58.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
Expand Down
6 changes: 3 additions & 3 deletions devel/py-grpcio-tools/distinfo
@@ -1,3 +1,3 @@
TIMESTAMP = 1691904958
SHA256 (grpcio-tools-1.57.0.tar.gz) = 2f16130d869ce27ecd623194547b649dd657333ec7e8644cc571c645781a9b85
SIZE (grpcio-tools-1.57.0.tar.gz) = 4488020
TIMESTAMP = 1694183393
SHA256 (grpcio-tools-1.58.0.tar.gz) = 6f4d80ceb591e31ca4dceec747dbe56132e1392a0a9bb1c8fe001d1b5cac898a
SIZE (grpcio-tools-1.58.0.tar.gz) = 4525422
@@ -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);
}

@@ -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

0 comments on commit d3ad36d

Please sign in to comment.