grpc: Upgrade to 1.38.0
PATCH 1/2 grpc: Upgrade to 1.38.0
Fix build with musl by checking for iovec redefinition
Signed-off-by Khem Raj <[email protected]>
---
.../grpc/0001-gsec-Fix-build-on-musl.patch | 37 +++++++++++++++++++
.../grpc/{grpc_1.37.1.bb => grpc_1.38.0.bb} | 4 +-
2 files changed, 39 insertions(+), 2 deletions(-)
create mode 100644 meta-oe/recipes-devtools/grpc/grpc/0001-gsec-Fix-build-on-musl.patch
rename meta-oe/recipes-devtools/grpc/{grpc_1.37.1.bb => grpc_1.38.0.bb} (97%)meta-oe/recipes-devtools/grpc/grpc/0001-gsec-Fix-build-on-musl.patch new file +37 -0
@@ -0,0 +1,37 @@ +From 9af185be6068d279736c0d2b2162a4e768444d3d Mon Sep 17 00:00:00 2001 +From: Khem Raj <[email protected]> +Date: Sat, 29 May 2021 00:41:32 -0700 +Subject: [PATCH] gsec: Fix build on musl + +musl defines iovec struct in alltypes.h file which is included by many +system include files, therefore check for appropriate define from musl +before defining it again + +Upstream-Status: Pending +Signed-off-by: Khem Raj <[email protected]> +--- + src/core/tsi/alts/crypt/gsec.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/core/tsi/alts/crypt/gsec.h b/src/core/tsi/alts/crypt/gsec.h +index 4d65caa944..3c367b2895 100644 +--- a/src/core/tsi/alts/crypt/gsec.h ++++ b/src/core/tsi/alts/crypt/gsec.h +@@ -26,11 +26,14 @@ + #include <stdlib.h> + + #include <grpc/grpc.h> ++#include <sys/uio.h> + ++#if !defined(__DEFINED_struct_iovec) + struct iovec { + void* iov_base; + size_t iov_len; + }; ++#endif + + /** + * A gsec interface for AEAD encryption schemes. The API is thread-compatible. +-- +2.31.1 +
meta-oe/recipes-devtools/grpc/grpc_1.38.0.bb renamed from meta-oe/recipes-devtools/grpc/grpc_1.37.1.bb +2 -2
@@ -16,8 +16,8 @@ RDEPENDS_${PN}-compiler = "${PN}" RDEPENDS_${PN}-dev += "${PN}-compiler" S = "${WORKDIR}/git" -SRCREV_grpc = "8664c8334c05d322fbbdfb9e3b24601a23e9363c" -BRANCH = "v1.37.x" +SRCREV_grpc = "54dc182082db941aa67c7c3f93ad858c99a16d7d" +BRANCH = "v1.38.x" SRC_URI = "git://github.com/grpc/grpc.git;protocol=https;name=grpc;branch=${BRANCH} \ " # Fixes build with older compilers 4.8 especially on ubuntu 14.04
Signature · 1 line
2.31.1
PATCH 2/2 python3-grpcio: Update to 1.38.0
Drop riscv patch as its applied upstream
Refresh patches
Signed-off-by Khem Raj <[email protected]>
---
.../python3-grpcio/mips_bigendian.patch | 2 +-
.../python3-grpcio/riscv64_support.patch | 21 -------------------
...cio_1.37.0.bb => python3-grpcio_1.38.0.bb} | 4 +---
3 files changed, 2 insertions(+), 25 deletions(-)
delete mode 100644 meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch
rename meta-python/recipes-devtools/python/{python3-grpcio_1.37.0.bb => python3-grpcio_1.38.0.bb} (89%)meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch +1 -1
@@ -12,4 +12,4 @@ +#elif defined(__mips__) && defined(__LP64__) #define OPENSSL_64_BIT #define OPENSSL_MIPS64 - #elif defined(__riscv) + #elif defined(__riscv) && __SIZEOF_POINTER__ == 8
meta-python/recipes-devtools/python/python3-grpcio/riscv64_support.patch deleted +0 -21
@@ -1,21 +0,0 @@ -Add RISC-V 64bit support - -Upstream-Status: Pending -Signed-off-by: Khem Raj <[email protected]> ---- a/third_party/boringssl-with-bazel/src/include/openssl/base.h -+++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h -@@ -108,6 +108,14 @@ extern "C" { - #elif defined(__MIPSEL__) && defined(__LP64__) - #define OPENSSL_64_BIT - #define OPENSSL_MIPS64 -+#elif defined(__riscv) -+# if (__riscv_xlen == 64) -+# define OPENSSL_64_BIT -+# define OPENSSL_RISCV64 -+# elif(__riscv_xlen == 32) -+# define OPENSSL_32_BIT -+# define OPENSSL_RISCV32 -+# endif - #elif defined(__pnacl__) - #define OPENSSL_32_BIT - #define OPENSSL_PNACL
meta-python/recipes-devtools/python/python3-grpcio_1.38.0.bb renamed from meta-python/recipes-devtools/python/python3-grpcio_1.37.0.bb +1 -3
@@ -8,12 +8,11 @@ DEPENDS += "${PYTHON_PN}-protobuf" SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" SRC_URI_append_class-target = " file://ppc-boringssl-support.patch \ - file://riscv64_support.patch \ file://boring_ssl.patch \ file://mips_bigendian.patch \ file://0001-absl-always-use-asm-sgidefs.h.patch \ " -SRC_URI[sha256sum] = "b3ce16aa91569760fdabd77ca901b2288152eb16941d28edd9a3a75a0c4a8a85" +SRC_URI[sha256sum] = "abbf9c8c3df4d5233d5888c6cfa85c1bb68a6923749bd4dd1abc6e1e93986f17" RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \ ${PYTHON_PN}-setuptools \
@@ -46,4 +45,3 @@ CCACHE_DISABLE = "1" # needs vdso support COMPATIBLE_HOST_libc-musl_powerpc64le = "null" -
Signature · 1 line
2.31.1