From ca8e801f2ba103e79bfce7ec90b606c70e841357 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Tue, 25 Mar 2025 17:01:36 +0800 Subject: python3-grpcio: upgrade 1.70.0 -> 1.71.0 0001-python-enable-unbundled-cross-compilation.patch refreshed for 1.71.0 Signed-off-by: Wang Mingyu Signed-off-by: Khem Raj --- ...python-enable-unbundled-cross-compilation.patch | 6 +-- .../python/python3-grpcio_1.70.0.bb | 46 ---------------------- .../python/python3-grpcio_1.71.0.bb | 46 ++++++++++++++++++++++ 3 files changed, 49 insertions(+), 49 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio_1.70.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-grpcio_1.71.0.bb (limited to 'meta-python') diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch index 782b348815..b2b2713559 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch +++ b/meta-python/recipes-devtools/python/python3-grpcio/0001-python-enable-unbundled-cross-compilation.patch @@ -1,4 +1,4 @@ -From ff01ac8908a7267503ffbb85efd24755da0502d8 Mon Sep 17 00:00:00 2001 +From ed9f268774838d279e23b4ae9fb95ca7650942b2 Mon Sep 17 00:00:00 2001 From: Peter Marko Date: Wed, 5 Feb 2025 21:06:50 +0100 Subject: [PATCH] python: enable unbundled cross compilation @@ -13,10 +13,10 @@ Signed-off-by: Peter Marko 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/setup.py b/setup.py -index 3b6edbe..d3a0d04 100644 +index 4d13d87..f002ab2 100644 --- a/setup.py +++ b/setup.py -@@ -317,25 +317,25 @@ if BUILD_WITH_SYSTEM_OPENSSL: +@@ -318,25 +318,25 @@ if BUILD_WITH_SYSTEM_OPENSSL: lambda x: "third_party/boringssl" not in x, CORE_C_FILES ) CORE_C_FILES = filter(lambda x: "src/boringssl" not in x, CORE_C_FILES) diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.70.0.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.70.0.bb deleted file mode 100644 index b858a3b050..0000000000 --- a/meta-python/recipes-devtools/python/python3-grpcio_1.70.0.bb +++ /dev/null @@ -1,46 +0,0 @@ -DESCRIPTION = "Google gRPC" -HOMEPAGE = "http://www.grpc.io/" -SECTION = "devel/python" -LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0 & MIT & BSD-2-Clause" -LIC_FILES_CHKSUM = " \ - file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906 \ - file://third_party/utf8_range/utf8_validity.h;beginline=1;endline=5;md5=db08ddb5817e660489678e7c3653805a \ - file://third_party/xxhash/xxhash.h;beginline=1;endline=34;md5=d41d564db2353fc80a713956d85b1690 \ -" - -DEPENDS += "c-ares openssl python3-protobuf re2 zlib" - -SRC_URI += "file://0001-python-enable-unbundled-cross-compilation.patch \ - file://abseil-ppc-fixes.patch \ - " -SRC_URI[sha256sum] = "8d1584a68d5922330025881e63a6c1b54cc8117291d382e4fa69339b6d914c56" - -RDEPENDS:${PN} = "python3-protobuf" - -inherit setuptools3 -inherit pypi - -CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" - -# unbundling abseil-cpp needs work on dynamic linker issue -#export GRPC_PYTHON_BUILD_SYSTEM_ABSL = "1" -export GRPC_PYTHON_BUILD_SYSTEM_CARES = "1" -export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = "1" -export GRPC_PYTHON_BUILD_SYSTEM_RE2 = "1" -export GRPC_PYTHON_BUILD_SYSTEM_ZLIB = "1" - -do_compile:prepend() { - export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="${@oe.utils.parallel_make(d, False)}" -} - -GRPC_CFLAGS ?= "" -GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" -export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" - -CLEANBROKEN = "1" - -BBCLASSEXTEND = "native nativesdk" - -CCACHE_DISABLE = "1" - -CVE_PRODUCT += "grpc:grpc" diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.71.0.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.71.0.bb new file mode 100644 index 0000000000..da677dc1ab --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-grpcio_1.71.0.bb @@ -0,0 +1,46 @@ +DESCRIPTION = "Google gRPC" +HOMEPAGE = "http://www.grpc.io/" +SECTION = "devel/python" +LICENSE = "Apache-2.0 & BSD-3-Clause & MPL-2.0 & MIT & BSD-2-Clause" +LIC_FILES_CHKSUM = " \ + file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906 \ + file://third_party/utf8_range/utf8_validity.h;beginline=1;endline=5;md5=db08ddb5817e660489678e7c3653805a \ + file://third_party/xxhash/xxhash.h;beginline=1;endline=34;md5=d41d564db2353fc80a713956d85b1690 \ +" + +DEPENDS += "c-ares openssl python3-protobuf re2 zlib" + +SRC_URI += "file://0001-python-enable-unbundled-cross-compilation.patch \ + file://abseil-ppc-fixes.patch \ + " +SRC_URI[sha256sum] = "2b85f7820475ad3edec209d3d89a7909ada16caab05d3f2e08a7e8ae3200a55c" + +RDEPENDS:${PN} = "python3-protobuf" + +inherit setuptools3 +inherit pypi + +CFLAGS:append:libc-musl = " -D_LARGEFILE64_SOURCE" + +# unbundling abseil-cpp needs work on dynamic linker issue +#export GRPC_PYTHON_BUILD_SYSTEM_ABSL = "1" +export GRPC_PYTHON_BUILD_SYSTEM_CARES = "1" +export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL = "1" +export GRPC_PYTHON_BUILD_SYSTEM_RE2 = "1" +export GRPC_PYTHON_BUILD_SYSTEM_ZLIB = "1" + +do_compile:prepend() { + export GRPC_PYTHON_BUILD_EXT_COMPILER_JOBS="${@oe.utils.parallel_make(d, False)}" +} + +GRPC_CFLAGS ?= "" +GRPC_CFLAGS:append:toolchain-clang = " -fvisibility=hidden -fno-wrapv -fno-exceptions" +export GRPC_PYTHON_CFLAGS = "${GRPC_CFLAGS}" + +CLEANBROKEN = "1" + +BBCLASSEXTEND = "native nativesdk" + +CCACHE_DISABLE = "1" + +CVE_PRODUCT += "grpc:grpc" -- cgit v1.2.3-54-g00ecf