pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

py-grpcio: add upgrade candidate, doesn't build



Module Name:	pkgsrc-wip
Committed By:	Thomas Klausner <wiz%NetBSD.org@localhost>
Pushed By:	wiz
Date:		Tue Jun 10 12:59:48 2025 +0200
Changeset:	6279b501d4a22f313423543517e9792493571b94

Modified Files:
	Makefile
Added Files:
	py-grpcio/DESCR
	py-grpcio/Makefile
	py-grpcio/PLIST
	py-grpcio/TODO
	py-grpcio/distinfo
	py-grpcio/patches/patch-src_core_lib_iomgr_port.h

Log Message:
py-grpcio: add upgrade candidate, doesn't build

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=6279b501d4a22f313423543517e9792493571b94

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile                                          |   3 +
 py-grpcio/DESCR                                   |   1 +
 py-grpcio/Makefile                                |  37 +++++
 py-grpcio/PLIST                                   | 176 ++++++++++++++++++++++
 py-grpcio/TODO                                    |   5 +
 py-grpcio/distinfo                                |   6 +
 py-grpcio/patches/patch-src_core_lib_iomgr_port.h |  32 ++++
 7 files changed, 260 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 6c470716fe..670ca3239c 100644
--- a/Makefile
+++ b/Makefile
@@ -608,6 +608,7 @@ SUBDIR+=	cross-binutils
 SUBDIR+=	cross-m68k-coff-gcc-4.2.0
 SUBDIR+=	crossguid
 SUBDIR+=	crossroads-io
+SUBDIR+=	crosstool-esp32
 SUBDIR+=	crosswrench-git
 SUBDIR+=	crrcsim
 SUBDIR+=	crust-firmware
@@ -3173,6 +3174,7 @@ SUBDIR+=	php-tclink
 SUBDIR+=	php-uuid
 SUBDIR+=	php-xdiff
 SUBDIR+=	php-zmq
+SUBDIR+=	pico-web-database
 SUBDIR+=	picolisp
 SUBDIR+=	picolisp64
 SUBDIR+=	picom
@@ -3912,6 +3914,7 @@ SUBDIR+=	py-greenery
 SUBDIR+=	py-griddata
 SUBDIR+=	py-grimp
 SUBDIR+=	py-grip
+SUBDIR+=	py-grpcio
 SUBDIR+=	py-grpy
 SUBDIR+=	py-grtipy
 SUBDIR+=	py-gsl
diff --git a/py-grpcio/DESCR b/py-grpcio/DESCR
new file mode 100644
index 0000000000..35c5198404
--- /dev/null
+++ b/py-grpcio/DESCR
@@ -0,0 +1 @@
+grpcio is a Python package for gRPC.
diff --git a/py-grpcio/Makefile b/py-grpcio/Makefile
new file mode 100644
index 0000000000..799633fa40
--- /dev/null
+++ b/py-grpcio/Makefile
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile,v 1.93 2025/05/12 12:00:32 wiz Exp $
+
+DISTNAME=	grpcio-1.73.0
+PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
+CATEGORIES=	net python
+MASTER_SITES=	${MASTER_SITE_PYPI:=g/grpcio/}
+
+MAINTAINER=	kethzer.dr%gmail.com@localhost
+HOMEPAGE=	https://grpc.io/
+COMMENT=	HTTP/2-based RPC framework
+LICENSE=	apache-2.0
+
+TOOL_DEPENDS+=	${PYPKGPREFIX}-setuptools>=78:../../devel/py-setuptools
+
+USE_CC_FEATURES=	c99
+USE_CXX_FEATURES=	c++14
+USE_LANGUAGES=		c c++
+USE_TOOLS+=		gmake pkg-config
+
+MAKE_ENV+=	GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
+MAKE_ENV+=	GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1
+MAKE_ENV+=	GRPC_PYTHON_BUILD_SYSTEM_CARES=1
+MAKE_ENV+=	GRPC_PYTHON_BUILD_SYSTEM_RE2=1
+MAKE_ENV+=	GRPC_PYTHON_BUILD_SYSTEM_ABSL=1
+
+pre-test:
+	${RM} -f ${WRKSRC}/third_party/boringssl-with-bazel/src/third_party/googletest/googlemock/test/*py
+	${RM} -f ${WRKSRC}/third_party/boringssl-with-bazel/src/third_party/googletest/googletest/test/*py
+	${RM} -f ${WRKSRC}/third_party/upb/upb/cmake/*.py
+
+.include "../../devel/abseil/buildlink3.mk"
+.include "../../devel/re2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../net/libcares/buildlink3.mk"
+.include "../../security/openssl/buildlink3.mk"
+.include "../../lang/python/wheel.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-grpcio/PLIST b/py-grpcio/PLIST
new file mode 100644
index 0000000000..829d521019
--- /dev/null
+++ b/py-grpcio/PLIST
@@ -0,0 +1,176 @@
+@comment $NetBSD: PLIST,v 1.13 2025/04/13 12:25:15 wiz Exp $
+${PYSITELIB}/grpc/__init__.py
+${PYSITELIB}/grpc/__init__.pyc
+${PYSITELIB}/grpc/__init__.pyo
+${PYSITELIB}/grpc/_auth.py
+${PYSITELIB}/grpc/_auth.pyc
+${PYSITELIB}/grpc/_auth.pyo
+${PYSITELIB}/grpc/_channel.py
+${PYSITELIB}/grpc/_channel.pyc
+${PYSITELIB}/grpc/_channel.pyo
+${PYSITELIB}/grpc/_common.py
+${PYSITELIB}/grpc/_common.pyc
+${PYSITELIB}/grpc/_common.pyo
+${PYSITELIB}/grpc/_compression.py
+${PYSITELIB}/grpc/_compression.pyc
+${PYSITELIB}/grpc/_compression.pyo
+${PYSITELIB}/grpc/_cython/__init__.py
+${PYSITELIB}/grpc/_cython/__init__.pyc
+${PYSITELIB}/grpc/_cython/__init__.pyo
+${PYSITELIB}/grpc/_cython/_credentials/roots.pem
+${PYSITELIB}/grpc/_cython/_cygrpc/__init__.py
+${PYSITELIB}/grpc/_cython/_cygrpc/__init__.pyc
+${PYSITELIB}/grpc/_cython/_cygrpc/__init__.pyo
+${PYSITELIB}/grpc/_cython/cygrpc.so
+${PYSITELIB}/grpc/_grpcio_metadata.py
+${PYSITELIB}/grpc/_grpcio_metadata.pyc
+${PYSITELIB}/grpc/_grpcio_metadata.pyo
+${PYSITELIB}/grpc/_interceptor.py
+${PYSITELIB}/grpc/_interceptor.pyc
+${PYSITELIB}/grpc/_interceptor.pyo
+${PYSITELIB}/grpc/_observability.py
+${PYSITELIB}/grpc/_observability.pyc
+${PYSITELIB}/grpc/_observability.pyo
+${PYSITELIB}/grpc/_plugin_wrapping.py
+${PYSITELIB}/grpc/_plugin_wrapping.pyc
+${PYSITELIB}/grpc/_plugin_wrapping.pyo
+${PYSITELIB}/grpc/_runtime_protos.py
+${PYSITELIB}/grpc/_runtime_protos.pyc
+${PYSITELIB}/grpc/_runtime_protos.pyo
+${PYSITELIB}/grpc/_server.py
+${PYSITELIB}/grpc/_server.pyc
+${PYSITELIB}/grpc/_server.pyo
+${PYSITELIB}/grpc/_simple_stubs.py
+${PYSITELIB}/grpc/_simple_stubs.pyc
+${PYSITELIB}/grpc/_simple_stubs.pyo
+${PYSITELIB}/grpc/_typing.py
+${PYSITELIB}/grpc/_typing.pyc
+${PYSITELIB}/grpc/_typing.pyo
+${PYSITELIB}/grpc/_utilities.py
+${PYSITELIB}/grpc/_utilities.pyc
+${PYSITELIB}/grpc/_utilities.pyo
+${PYSITELIB}/grpc/aio/__init__.py
+${PYSITELIB}/grpc/aio/__init__.pyc
+${PYSITELIB}/grpc/aio/__init__.pyo
+${PYSITELIB}/grpc/aio/_base_call.py
+${PYSITELIB}/grpc/aio/_base_call.pyc
+${PYSITELIB}/grpc/aio/_base_call.pyo
+${PYSITELIB}/grpc/aio/_base_channel.py
+${PYSITELIB}/grpc/aio/_base_channel.pyc
+${PYSITELIB}/grpc/aio/_base_channel.pyo
+${PYSITELIB}/grpc/aio/_base_server.py
+${PYSITELIB}/grpc/aio/_base_server.pyc
+${PYSITELIB}/grpc/aio/_base_server.pyo
+${PYSITELIB}/grpc/aio/_call.py
+${PYSITELIB}/grpc/aio/_call.pyc
+${PYSITELIB}/grpc/aio/_call.pyo
+${PYSITELIB}/grpc/aio/_channel.py
+${PYSITELIB}/grpc/aio/_channel.pyc
+${PYSITELIB}/grpc/aio/_channel.pyo
+${PYSITELIB}/grpc/aio/_interceptor.py
+${PYSITELIB}/grpc/aio/_interceptor.pyc
+${PYSITELIB}/grpc/aio/_interceptor.pyo
+${PYSITELIB}/grpc/aio/_metadata.py
+${PYSITELIB}/grpc/aio/_metadata.pyc
+${PYSITELIB}/grpc/aio/_metadata.pyo
+${PYSITELIB}/grpc/aio/_server.py
+${PYSITELIB}/grpc/aio/_server.pyc
+${PYSITELIB}/grpc/aio/_server.pyo
+${PYSITELIB}/grpc/aio/_typing.py
+${PYSITELIB}/grpc/aio/_typing.pyc
+${PYSITELIB}/grpc/aio/_typing.pyo
+${PYSITELIB}/grpc/aio/_utils.py
+${PYSITELIB}/grpc/aio/_utils.pyc
+${PYSITELIB}/grpc/aio/_utils.pyo
+${PYSITELIB}/grpc/beta/__init__.py
+${PYSITELIB}/grpc/beta/__init__.pyc
+${PYSITELIB}/grpc/beta/__init__.pyo
+${PYSITELIB}/grpc/beta/_client_adaptations.py
+${PYSITELIB}/grpc/beta/_client_adaptations.pyc
+${PYSITELIB}/grpc/beta/_client_adaptations.pyo
+${PYSITELIB}/grpc/beta/_metadata.py
+${PYSITELIB}/grpc/beta/_metadata.pyc
+${PYSITELIB}/grpc/beta/_metadata.pyo
+${PYSITELIB}/grpc/beta/_server_adaptations.py
+${PYSITELIB}/grpc/beta/_server_adaptations.pyc
+${PYSITELIB}/grpc/beta/_server_adaptations.pyo
+${PYSITELIB}/grpc/beta/implementations.py
+${PYSITELIB}/grpc/beta/implementations.pyc
+${PYSITELIB}/grpc/beta/implementations.pyo
+${PYSITELIB}/grpc/beta/interfaces.py
+${PYSITELIB}/grpc/beta/interfaces.pyc
+${PYSITELIB}/grpc/beta/interfaces.pyo
+${PYSITELIB}/grpc/beta/utilities.py
+${PYSITELIB}/grpc/beta/utilities.pyc
+${PYSITELIB}/grpc/beta/utilities.pyo
+${PYSITELIB}/grpc/experimental/__init__.py
+${PYSITELIB}/grpc/experimental/__init__.pyc
+${PYSITELIB}/grpc/experimental/__init__.pyo
+${PYSITELIB}/grpc/experimental/aio/__init__.py
+${PYSITELIB}/grpc/experimental/aio/__init__.pyc
+${PYSITELIB}/grpc/experimental/aio/__init__.pyo
+${PYSITELIB}/grpc/experimental/gevent.py
+${PYSITELIB}/grpc/experimental/gevent.pyc
+${PYSITELIB}/grpc/experimental/gevent.pyo
+${PYSITELIB}/grpc/experimental/session_cache.py
+${PYSITELIB}/grpc/experimental/session_cache.pyc
+${PYSITELIB}/grpc/experimental/session_cache.pyo
+${PYSITELIB}/grpc/framework/__init__.py
+${PYSITELIB}/grpc/framework/__init__.pyc
+${PYSITELIB}/grpc/framework/__init__.pyo
+${PYSITELIB}/grpc/framework/common/__init__.py
+${PYSITELIB}/grpc/framework/common/__init__.pyc
+${PYSITELIB}/grpc/framework/common/__init__.pyo
+${PYSITELIB}/grpc/framework/common/cardinality.py
+${PYSITELIB}/grpc/framework/common/cardinality.pyc
+${PYSITELIB}/grpc/framework/common/cardinality.pyo
+${PYSITELIB}/grpc/framework/common/style.py
+${PYSITELIB}/grpc/framework/common/style.pyc
+${PYSITELIB}/grpc/framework/common/style.pyo
+${PYSITELIB}/grpc/framework/foundation/__init__.py
+${PYSITELIB}/grpc/framework/foundation/__init__.pyc
+${PYSITELIB}/grpc/framework/foundation/__init__.pyo
+${PYSITELIB}/grpc/framework/foundation/abandonment.py
+${PYSITELIB}/grpc/framework/foundation/abandonment.pyc
+${PYSITELIB}/grpc/framework/foundation/abandonment.pyo
+${PYSITELIB}/grpc/framework/foundation/callable_util.py
+${PYSITELIB}/grpc/framework/foundation/callable_util.pyc
+${PYSITELIB}/grpc/framework/foundation/callable_util.pyo
+${PYSITELIB}/grpc/framework/foundation/future.py
+${PYSITELIB}/grpc/framework/foundation/future.pyc
+${PYSITELIB}/grpc/framework/foundation/future.pyo
+${PYSITELIB}/grpc/framework/foundation/logging_pool.py
+${PYSITELIB}/grpc/framework/foundation/logging_pool.pyc
+${PYSITELIB}/grpc/framework/foundation/logging_pool.pyo
+${PYSITELIB}/grpc/framework/foundation/stream.py
+${PYSITELIB}/grpc/framework/foundation/stream.pyc
+${PYSITELIB}/grpc/framework/foundation/stream.pyo
+${PYSITELIB}/grpc/framework/foundation/stream_util.py
+${PYSITELIB}/grpc/framework/foundation/stream_util.pyc
+${PYSITELIB}/grpc/framework/foundation/stream_util.pyo
+${PYSITELIB}/grpc/framework/interfaces/__init__.py
+${PYSITELIB}/grpc/framework/interfaces/__init__.pyc
+${PYSITELIB}/grpc/framework/interfaces/__init__.pyo
+${PYSITELIB}/grpc/framework/interfaces/base/__init__.py
+${PYSITELIB}/grpc/framework/interfaces/base/__init__.pyc
+${PYSITELIB}/grpc/framework/interfaces/base/__init__.pyo
+${PYSITELIB}/grpc/framework/interfaces/base/base.py
+${PYSITELIB}/grpc/framework/interfaces/base/base.pyc
+${PYSITELIB}/grpc/framework/interfaces/base/base.pyo
+${PYSITELIB}/grpc/framework/interfaces/base/utilities.py
+${PYSITELIB}/grpc/framework/interfaces/base/utilities.pyc
+${PYSITELIB}/grpc/framework/interfaces/base/utilities.pyo
+${PYSITELIB}/grpc/framework/interfaces/face/__init__.py
+${PYSITELIB}/grpc/framework/interfaces/face/__init__.pyc
+${PYSITELIB}/grpc/framework/interfaces/face/__init__.pyo
+${PYSITELIB}/grpc/framework/interfaces/face/face.py
+${PYSITELIB}/grpc/framework/interfaces/face/face.pyc
+${PYSITELIB}/grpc/framework/interfaces/face/face.pyo
+${PYSITELIB}/grpc/framework/interfaces/face/utilities.py
+${PYSITELIB}/grpc/framework/interfaces/face/utilities.pyc
+${PYSITELIB}/grpc/framework/interfaces/face/utilities.pyo
+${PYSITELIB}/${WHEEL_INFODIR}/METADATA
+${PYSITELIB}/${WHEEL_INFODIR}/RECORD
+${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
+${PYSITELIB}/${WHEEL_INFODIR}/licenses/LICENSE
+${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
diff --git a/py-grpcio/TODO b/py-grpcio/TODO
new file mode 100644
index 0000000000..26d713f826
--- /dev/null
+++ b/py-grpcio/TODO
@@ -0,0 +1,5 @@
+Traceback (most recent call last):
+  File "/usr/pkg/lib/python3.13/site-packages/setuptools/_distutils/spawn.py", line 87, in spawn
+    subprocess.check_call(cmd, env=_inject_macos_ver(env))
+    ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
diff --git a/py-grpcio/distinfo b/py-grpcio/distinfo
new file mode 100644
index 0000000000..4663321caa
--- /dev/null
+++ b/py-grpcio/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.76 2025/05/12 12:00:32 wiz Exp $
+
+BLAKE2s (grpcio-1.73.0.tar.gz) = 2d75fddd6fe77896a3a45ae16bcb2bd2667a7acdface55ee52d56197e9fcd292
+SHA512 (grpcio-1.73.0.tar.gz) = fb7f8890b0e1286e64a2d0e6e32212b9d33c5988663edbaeddec9a4da7bf52b5a14ad7b4541084314056cacb65426d54376afa6228c3235d600630980ad3d715
+Size (grpcio-1.73.0.tar.gz) = 12786424 bytes
+SHA1 (patch-src_core_lib_iomgr_port.h) = 8f088cbf22110c03a684c24c9e17ef5fc64e925a
diff --git a/py-grpcio/patches/patch-src_core_lib_iomgr_port.h b/py-grpcio/patches/patch-src_core_lib_iomgr_port.h
new file mode 100644
index 0000000000..46e4b91aff
--- /dev/null
+++ b/py-grpcio/patches/patch-src_core_lib_iomgr_port.h
@@ -0,0 +1,32 @@
+$NetBSD: patch-src_core_lib_iomgr_port.h,v 1.2 2018/12/31 23:03:02 leot Exp $
+
+Support NetBSD.
+Support SunOS.
+
+--- src/core/lib/iomgr/port.h.orig	2018-06-28 00:44:17.000000000 +0000
++++ src/core/lib/iomgr/port.h
+@@ -139,6 +139,24 @@
+ #define GRPC_POSIX_SOCKET 1
+ #define GRPC_POSIX_SOCKETUTILS 1
+ #define GRPC_POSIX_WAKEUP_FD 1
++#elif defined(GPR_NETBSD)
++#define GRPC_HAVE_ARPA_NAMESER 1
++#define GRPC_HAVE_IFADDRS 1
++#define GRPC_HAVE_IPV6_RECVPKTINFO 1
++#define GRPC_HAVE_SO_NOSIGPIPE 1
++#define GRPC_HAVE_UNIX_SOCKET 1
++#define GRPC_POSIX_FORK 1
++#define GRPC_POSIX_NO_SPECIAL_WAKEUP_FD 1
++#define GRPC_POSIX_SOCKET 1
++#define GRPC_POSIX_SOCKETUTILS 1
++#define GRPC_POSIX_WAKEUP_FD 1
++#elif defined(GPR_SUNOS)
++#define GRPC_HAVE_UNIX_SOCKET 1
++#define GRPC_POSIX_FORK 1
++#define GRPC_POSIX_NO_SPECIAL_WAKEUP_FD 1
++#define GRPC_POSIX_SOCKET 1
++#define GRPC_POSIX_SOCKETUTILS 1
++#define GRPC_POSIX_WAKEUP_FD 1
+ #elif defined(GPR_NACL)
+ #define GRPC_HAVE_ARPA_NAMESER 1
+ #define GRPC_POSIX_NO_SPECIAL_WAKEUP_FD 1


Home | Main Index | Thread Index | Old Index