diff --git a/devel/py-grpcio-tools/Makefile b/devel/py-grpcio-tools/Makefile index 9943cd2a34ba..18bbfc8de475 100644 --- a/devel/py-grpcio-tools/Makefile +++ b/devel/py-grpcio-tools/Makefile @@ -1,25 +1,25 @@ PORTNAME= grpcio-tools -DISTVERSION= 1.81.1 +DISTVERSION= 1.82.1 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 +USES= compiler:c++17-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 388872a3f574..2fd31095410b 100644 --- a/devel/py-grpcio-tools/distinfo +++ b/devel/py-grpcio-tools/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1783064514 -SHA256 (grpcio_tools-1.81.1.tar.gz) = a22a3870180927fdd84e2b27d079ef5b7f5f8c6110181b6736afc17a463481f1 -SIZE (grpcio_tools-1.81.1.tar.gz) = 6236155 +TIMESTAMP = 1783643196 +SHA256 (grpcio_tools-1.82.1.tar.gz) = 2bd3176ccdbf7cd1f463eb75b7b83544c7d6429f5ca8a0f7f784b76097dac891 +SIZE (grpcio_tools-1.82.1.tar.gz) = 6399590 diff --git a/devel/py-grpcio-tools/files/patch-setup.py b/devel/py-grpcio-tools/files/patch-setup.py index 4beb5f92a035..b4275f6e62ec 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 2026-02-03 18:17:37 UTC +--- setup.py.orig 2026-07-08 09:16:27 UTC +++ setup.py -@@ -193,7 +193,7 @@ if EXTRA_ENV_COMPILE_ARGS is None: +@@ -196,7 +196,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" -@@ -226,7 +226,7 @@ if EXTRA_ENV_LINK_ARGS is None: +@@ -229,7 +229,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" -@@ -265,7 +265,7 @@ if "win32" in sys.platform: +@@ -269,7 +269,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_protobuf_src_google_protobuf_io_zero__copy__stream__impl.cc b/devel/py-grpcio-tools/files/patch-third__party_protobuf_src_google_protobuf_io_zero__copy__stream__impl.cc new file mode 100644 index 000000000000..3db8ed038a5b --- /dev/null +++ b/devel/py-grpcio-tools/files/patch-third__party_protobuf_src_google_protobuf_io_zero__copy__stream__impl.cc @@ -0,0 +1,13 @@ +--- third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc.orig 2026-07-08 09:29:26 UTC ++++ third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl.cc +@@ -20,6 +20,10 @@ + #endif + #include + ++#ifndef isascii ++#define isascii(c) (((c) & ~0x7f) == 0) ++#endif ++ + #include + #include + #include