diff --git a/devel/py-grpcio-tools/Makefile b/devel/py-grpcio-tools/Makefile index 813eb9fd668c..1511e3a649f9 100644 --- a/devel/py-grpcio-tools/Makefile +++ b/devel/py-grpcio-tools/Makefile @@ -1,25 +1,25 @@ PORTNAME= grpcio-tools -DISTVERSION= 1.76.0 +DISTVERSION= 1.78.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= grpcio_tools-${PORTVERSION} MAINTAINER= vanilla@FreeBSD.org COMMENT= Protobuf code generator for gRPC WWW= https://pypi.org/project/grpcio-tools/ LICENSE= BSD3CLAUSE RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}grpcio>1:devel/py-grpcio@${PY_FLAVOR} LIB_DEPENDS= libcares.so:dns/c-ares USES= compiler:c++11-lang localbase:ldflags python USE_PYTHON= autoplist distutils CFLAGS+= -DHAVE_PTHREAD=1 LDFLAGS+= -lcares post-install: ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/grpc_tools/_protoc_compiler*.so .include diff --git a/devel/py-grpcio-tools/distinfo b/devel/py-grpcio-tools/distinfo index 9487fe4946db..39455812aaed 100644 --- a/devel/py-grpcio-tools/distinfo +++ b/devel/py-grpcio-tools/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1761170834 -SHA256 (grpcio_tools-1.76.0.tar.gz) = ce80169b5e6adf3e8302f3ebb6cb0c3a9f08089133abca4b76ad67f751f5ad88 -SIZE (grpcio_tools-1.76.0.tar.gz) = 5390807 +TIMESTAMP = 1771201493 +SHA256 (grpcio_tools-1.78.0.tar.gz) = 4b0dd86560274316e155d925158276f8564508193088bc43e20d3f5dff956b2b +SIZE (grpcio_tools-1.78.0.tar.gz) = 5393026 diff --git a/devel/py-grpcio-tools/files/patch-pyproject.toml b/devel/py-grpcio-tools/files/patch-pyproject.toml new file mode 100644 index 000000000000..a4cdd1780698 --- /dev/null +++ b/devel/py-grpcio-tools/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2026-02-16 00:40:53 UTC ++++ pyproject.toml +@@ -22,7 +22,7 @@ name = "grpcio-tools" + + [project] + name = "grpcio-tools" +-license = "Apache-2.0" ++license = {text = "Apache-2.0"} + description = "Protobuf code generator for gRPC" + readme = {file = "README.rst", content-type = "text/x-rst"} + authors = [{name = "The gRPC Authors", email = "grpc-io@googlegroups.com"}] diff --git a/devel/py-grpcio-tools/files/patch-setup.py b/devel/py-grpcio-tools/files/patch-setup.py index a3973b1c849c..4beb5f92a035 100644 --- a/devel/py-grpcio-tools/files/patch-setup.py +++ b/devel/py-grpcio-tools/files/patch-setup.py @@ -1,29 +1,29 @@ ---- setup.py.orig 2025-01-22 20:25:32 UTC +--- setup.py.orig 2026-02-03 18:17:37 UTC +++ setup.py -@@ -190,7 +190,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: +@@ -193,7 +193,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: # Reduce the optimization level from O3 (in many cases) to O1 to # workaround gcc misalignment bug with MOVAPS (internal b/329134877) EXTRA_ENV_COMPILE_ARGS += " -O1" - elif "darwin" in sys.platform: + elif "darwin" in sys.platform or "freebsd" in sys.platform: # AppleClang by defaults uses C17 so only C++17 needs to be specified. EXTRA_ENV_COMPILE_ARGS += " -std=c++17" EXTRA_ENV_COMPILE_ARGS += " -fno-wrapv -frtti" -@@ -223,7 +223,7 @@ if EXTRA_ENV_LINK_ARGS is None: +@@ -226,7 +226,7 @@ if EXTRA_ENV_LINK_ARGS is None: EXTRA_ENV_LINK_ARGS += " -Wl,-exported_symbol,_{}".format( _EXT_INIT_SYMBOL ) - if "linux" in sys.platform or "darwin" in sys.platform: + if "linux" in sys.platform or "darwin" in sys.platform or "freebsd" in sys.platform: EXTRA_ENV_LINK_ARGS += " -lpthread" if check_linker_need_libatomic(): EXTRA_ENV_LINK_ARGS += " -latomic" -@@ -260,7 +260,7 @@ if "win32" in sys.platform: +@@ -265,7 +265,7 @@ if "win32" in sys.platform: ) if "64bit" in platform.architecture()[0]: DEFINE_MACROS += (("MS_WIN64", 1),) -elif "linux" in sys.platform or "darwin" in sys.platform: +elif "linux" in sys.platform or "darwin" in sys.platform or "freebsd" in sys.platform: DEFINE_MACROS += (("HAVE_PTHREAD", 1),) diff --git a/devel/py-grpcio-tools/files/patch-third__party_abseil-cpp_absl_base_internal_sysinfo.cc b/devel/py-grpcio-tools/files/patch-third__party_abseil-cpp_absl_base_internal_sysinfo.cc index 72edf4a1c004..030e56c69108 100644 --- a/devel/py-grpcio-tools/files/patch-third__party_abseil-cpp_absl_base_internal_sysinfo.cc +++ b/devel/py-grpcio-tools/files/patch-third__party_abseil-cpp_absl_base_internal_sysinfo.cc @@ -1,33 +1,33 @@ ---- third_party/abseil-cpp/absl/base/internal/sysinfo.cc.orig 2024-02-20 20:56:37 UTC +--- third_party/abseil-cpp/absl/base/internal/sysinfo.cc.orig 2026-02-03 19:17:18 UTC +++ third_party/abseil-cpp/absl/base/internal/sysinfo.cc @@ -42,6 +42,10 @@ #include #endif +#ifdef __FreeBSD__ +#include +#endif + #if defined(__myriad2__) #include #endif -@@ -429,14 +433,18 @@ pid_t GetTID() { +@@ -433,14 +437,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(tid); }