git: b5459db590c8 - main - devel/py-grpcio-tools: update to 1.82.1.

From: Vanilla I. Shu <vanilla_at_FreeBSD.org>
Date: Fri, 10 Jul 2026 15:46:40 UTC
The branch main has been updated by vanilla:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b5459db590c82c03c10ed67379f6b64db2f7d7e6

commit b5459db590c82c03c10ed67379f6b64db2f7d7e6
Author:     Vanilla I. Shu <vanilla@FreeBSD.org>
AuthorDate: 2026-07-10 15:17:00 +0000
Commit:     Vanilla I. Shu <vanilla@FreeBSD.org>
CommitDate: 2026-07-10 15:46:34 +0000

    devel/py-grpcio-tools: update to 1.82.1.
---
 devel/py-grpcio-tools/Makefile                              |  4 ++--
 devel/py-grpcio-tools/distinfo                              |  6 +++---
 devel/py-grpcio-tools/files/patch-setup.py                  |  8 ++++----
 ...tobuf_src_google_protobuf_io_zero__copy__stream__impl.cc | 13 +++++++++++++
 4 files changed, 22 insertions(+), 9 deletions(-)

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,5 +1,5 @@
 PORTNAME=	grpcio-tools
-DISTVERSION=	1.81.1
+DISTVERSION=	1.82.1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,7 +14,7 @@ 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
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,6 +1,6 @@
---- 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"
@@ -9,7 +9,7 @@
          # 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
          )
@@ -18,7 +18,7 @@
          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),)
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 <errno.h>
+ 
++#ifndef isascii
++#define isascii(c) (((c) & ~0x7f) == 0)
++#endif
++
+ #include <algorithm>
+ #include <istream>
+ #include <ostream>