Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/py-grpcio-tools: update to 1.58.0.
- Loading branch information
1 parent
44d2eab
commit d3ad36d
Showing
4 changed files
with
48 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
33 changes: 33 additions & 0 deletions
33
devel/py-grpcio-tools/files/patch-third__party_abseil-cpp_absl_base_internal_sysinfo.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} | ||
|
11 changes: 11 additions & 0 deletions
11
...ols/files/patch-third__party_abseil-cpp_absl_time_internal_cctz_src_time__zone__format.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |