mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-09 05:49:23 +00:00
python3-grpcio: Upgrade to 1.56.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
+5
-11
@@ -29,11 +29,9 @@ Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
|
|||||||
src/python/grpcio/commands.py | 5 ++++-
|
src/python/grpcio/commands.py | 5 ++++-
|
||||||
2 files changed, 11 insertions(+), 5 deletions(-)
|
2 files changed, 11 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index 3a50c97..bb2386d 100644
|
|
||||||
--- a/setup.py
|
--- a/setup.py
|
||||||
+++ b/setup.py
|
+++ b/setup.py
|
||||||
@@ -205,8 +205,11 @@ def check_linker_need_libatomic():
|
@@ -206,8 +206,11 @@ def check_linker_need_libatomic():
|
||||||
"""Test if linker on system needs libatomic."""
|
"""Test if linker on system needs libatomic."""
|
||||||
code_test = (b'#include <atomic>\n' +
|
code_test = (b'#include <atomic>\n' +
|
||||||
b'int main() { return std::atomic<int64_t>{}; }')
|
b'int main() { return std::atomic<int64_t>{}; }')
|
||||||
@@ -47,7 +45,7 @@ index 3a50c97..bb2386d 100644
|
|||||||
stdin=PIPE,
|
stdin=PIPE,
|
||||||
stdout=PIPE,
|
stdout=PIPE,
|
||||||
stderr=PIPE)
|
stderr=PIPE)
|
||||||
@@ -215,8 +218,8 @@ def check_linker_need_libatomic():
|
@@ -216,8 +219,8 @@ def check_linker_need_libatomic():
|
||||||
return False
|
return False
|
||||||
# Double-check to see if -latomic actually can solve the problem.
|
# Double-check to see if -latomic actually can solve the problem.
|
||||||
# https://github.com/grpc/grpc/issues/22491
|
# https://github.com/grpc/grpc/issues/22491
|
||||||
@@ -58,15 +56,14 @@ index 3a50c97..bb2386d 100644
|
|||||||
stdin=PIPE,
|
stdin=PIPE,
|
||||||
stdout=PIPE,
|
stdout=PIPE,
|
||||||
stderr=PIPE)
|
stderr=PIPE)
|
||||||
diff --git a/src/python/grpcio/commands.py b/src/python/grpcio/commands.py
|
|
||||||
index d93b6c7..a8c4a51 100644
|
|
||||||
--- a/src/python/grpcio/commands.py
|
--- a/src/python/grpcio/commands.py
|
||||||
+++ b/src/python/grpcio/commands.py
|
+++ b/src/python/grpcio/commands.py
|
||||||
@@ -228,7 +228,10 @@ class BuildExt(build_ext.build_ext):
|
@@ -228,8 +228,10 @@ class BuildExt(build_ext.build_ext):
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
# TODO(lidiz) Remove the generated a.out for success tests.
|
# TODO(lidiz) Remove the generated a.out for success tests.
|
||||||
- cc_test = subprocess.Popen(['cc', '-x', 'c', '-std=c++14', '-'],
|
- cc = os.environ.get('CC', 'cc')
|
||||||
|
- cc_test = subprocess.Popen([cc, '-x', 'c', '-std=c++14', '-'],
|
||||||
+ cc_test, cc_args = os.environ.get('CC').split(' ', 1) or 'gcc'
|
+ cc_test, cc_args = os.environ.get('CC').split(' ', 1) or 'gcc'
|
||||||
+ if not cc_args:
|
+ if not cc_args:
|
||||||
+ cc_args = "-g"
|
+ cc_args = "-g"
|
||||||
@@ -74,6 +71,3 @@ index d93b6c7..a8c4a51 100644
|
|||||||
stdin=subprocess.PIPE,
|
stdin=subprocess.PIPE,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=subprocess.PIPE)
|
stderr=subprocess.PIPE)
|
||||||
--
|
|
||||||
2.25.1
|
|
||||||
|
|
||||||
|
|||||||
@@ -18,8 +18,6 @@ Upstream-Status: Pending
|
|||||||
absl/debugging/internal/stacktrace_config.h | 2 +-
|
absl/debugging/internal/stacktrace_config.h | 2 +-
|
||||||
4 files changed, 12 insertions(+), 5 deletions(-)
|
4 files changed, 12 insertions(+), 5 deletions(-)
|
||||||
|
|
||||||
diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc
|
|
||||||
index b1c396c..d62bfd6 100644
|
|
||||||
--- a/absl/base/internal/unscaledcycleclock.cc
|
--- a/absl/base/internal/unscaledcycleclock.cc
|
||||||
+++ b/absl/base/internal/unscaledcycleclock.cc
|
+++ b/absl/base/internal/unscaledcycleclock.cc
|
||||||
@@ -20,7 +20,7 @@
|
@@ -20,7 +20,7 @@
|
||||||
@@ -40,22 +38,6 @@ index b1c396c..d62bfd6 100644
|
|||||||
|
|
||||||
int64_t UnscaledCycleClock::Now() {
|
int64_t UnscaledCycleClock::Now() {
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
diff --git a/absl/base/internal/unscaledcycleclock.h b/absl/base/internal/unscaledcycleclock.h
|
|
||||||
index 2cbeae3..683a5ef 100644
|
|
||||||
--- a/absl/base/internal/unscaledcycleclock.h
|
|
||||||
+++ b/absl/base/internal/unscaledcycleclock.h
|
|
||||||
@@ -46,7 +46,8 @@
|
|
||||||
|
|
||||||
// The following platforms have an implementation of a hardware counter.
|
|
||||||
#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \
|
|
||||||
- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
|
|
||||||
+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \
|
|
||||||
+ defined(__riscv) || \
|
|
||||||
defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC))
|
|
||||||
#define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
|
|
||||||
#else
|
|
||||||
diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc
|
|
||||||
index 5bdd341..a784e0d 100644
|
|
||||||
--- a/absl/debugging/internal/examine_stack.cc
|
--- a/absl/debugging/internal/examine_stack.cc
|
||||||
+++ b/absl/debugging/internal/examine_stack.cc
|
+++ b/absl/debugging/internal/examine_stack.cc
|
||||||
@@ -33,6 +33,10 @@
|
@@ -33,6 +33,10 @@
|
||||||
@@ -69,7 +51,7 @@ index 5bdd341..a784e0d 100644
|
|||||||
#include "absl/base/attributes.h"
|
#include "absl/base/attributes.h"
|
||||||
#include "absl/base/internal/raw_logging.h"
|
#include "absl/base/internal/raw_logging.h"
|
||||||
#include "absl/base/macros.h"
|
#include "absl/base/macros.h"
|
||||||
@@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) {
|
@@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc)
|
||||||
return reinterpret_cast<void*>(context->uc_mcontext.pc);
|
return reinterpret_cast<void*>(context->uc_mcontext.pc);
|
||||||
#elif defined(__powerpc64__)
|
#elif defined(__powerpc64__)
|
||||||
return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
|
return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
|
||||||
@@ -81,8 +63,6 @@ index 5bdd341..a784e0d 100644
|
|||||||
#elif defined(__riscv)
|
#elif defined(__riscv)
|
||||||
return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]);
|
return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]);
|
||||||
#elif defined(__s390__) && !defined(__s390x__)
|
#elif defined(__s390__) && !defined(__s390x__)
|
||||||
diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h
|
|
||||||
index 3929b1b..23d5e50 100644
|
|
||||||
--- a/absl/debugging/internal/stacktrace_config.h
|
--- a/absl/debugging/internal/stacktrace_config.h
|
||||||
+++ b/absl/debugging/internal/stacktrace_config.h
|
+++ b/absl/debugging/internal/stacktrace_config.h
|
||||||
@@ -60,7 +60,7 @@
|
@@ -60,7 +60,7 @@
|
||||||
@@ -94,6 +74,15 @@ index 3929b1b..23d5e50 100644
|
|||||||
#define ABSL_STACKTRACE_INL_HEADER \
|
#define ABSL_STACKTRACE_INL_HEADER \
|
||||||
"absl/debugging/internal/stacktrace_powerpc-inl.inc"
|
"absl/debugging/internal/stacktrace_powerpc-inl.inc"
|
||||||
#elif defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
--
|
--- a/absl/base/internal/unscaledcycleclock_config.h
|
||||||
2.25.1
|
+++ b/absl/base/internal/unscaledcycleclock_config.h
|
||||||
|
@@ -21,7 +21,8 @@
|
||||||
|
|
||||||
|
// The following platforms have an implementation of a hardware counter.
|
||||||
|
#if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \
|
||||||
|
- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
|
||||||
|
+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \
|
||||||
|
+ defined(__riscv) || \
|
||||||
|
defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC))
|
||||||
|
#define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
|
||||||
|
#else
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
From f71b32eb8a5c173fc5733847437b9485d75bb2e5 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Leon Anavi <leon.anavi@konsulko.com>
|
|
||||||
Date: Fri, 9 Apr 2021 14:06:36 +0300
|
|
||||||
Subject: [PATCH] setup.py: Fix determining target platform
|
|
||||||
|
|
||||||
Do not poke at the build machine to determine target platform or architecture
|
|
||||||
pass it from environment instead for cross compiling to work
|
|
||||||
|
|
||||||
Upstream-Status: Inappropriate [OE-Specific]
|
|
||||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|
||||||
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
|
|
||||||
---
|
|
||||||
setup.py | 11 +++++++----
|
|
||||||
1 file changed, 7 insertions(+), 4 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/setup.py b/setup.py
|
|
||||||
index c93d419f32..71a944a9d0 100644
|
|
||||||
--- a/setup.py
|
|
||||||
+++ b/setup.py
|
|
||||||
@@ -116,6 +116,9 @@ def _env_bool_value(env_name, default):
|
|
||||||
BUILD_WITH_BORING_SSL_ASM = _env_bool_value('GRPC_BUILD_WITH_BORING_SSL_ASM',
|
|
||||||
'True')
|
|
||||||
|
|
||||||
+BORING_SSL_PLATFORM = os.environ.get('GRPC_BORING_SSL_PLATFORM',
|
|
||||||
+ 'True')
|
|
||||||
+
|
|
||||||
# Export this environment variable to override the platform variant that will
|
|
||||||
# be chosen for boringssl assembly optimizations. This option is useful when
|
|
||||||
# crosscompiling and the host platform as obtained by distutils.utils.get_platform()
|
|
||||||
@@ -336,13 +339,13 @@ if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL:
|
|
||||||
LINUX_X86_64 = 'linux-x86_64'
|
|
||||||
LINUX_ARM = 'linux-arm'
|
|
||||||
LINUX_AARCH64 = 'linux-aarch64'
|
|
||||||
- if LINUX_X86_64 == boringssl_asm_platform:
|
|
||||||
+ if LINUX_X86_64 == BORING_SSL_PLATFORM:
|
|
||||||
asm_key = 'crypto_linux_x86_64'
|
|
||||||
- elif LINUX_ARM == boringssl_asm_platform:
|
|
||||||
+ elif LINUX_ARM == BORING_SSL_PLATFORM:
|
|
||||||
asm_key = 'crypto_linux_arm'
|
|
||||||
- elif LINUX_AARCH64 == boringssl_asm_platform:
|
|
||||||
+ elif LINUX_AARCH64 == BORING_SSL_PLATFORM:
|
|
||||||
asm_key = 'crypto_linux_aarch64'
|
|
||||||
- elif "mac" in boringssl_asm_platform and "x86_64" in boringssl_asm_platform:
|
|
||||||
+ elif "mac" in boringssl_asm_platform and "x86_64" in BORING_SSL_PLATFORM:
|
|
||||||
asm_key = 'crypto_mac_x86_64'
|
|
||||||
else:
|
|
||||||
print("ASM Builds for BoringSSL currently not supported on:",
|
|
||||||
--
|
|
||||||
2.17.1
|
|
||||||
|
|
||||||
@@ -5,10 +5,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
|||||||
|
|
||||||
--- a/third_party/boringssl-with-bazel/src/include/openssl/base.h
|
--- a/third_party/boringssl-with-bazel/src/include/openssl/base.h
|
||||||
+++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h
|
+++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h
|
||||||
@@ -99,6 +99,9 @@ extern "C" {
|
@@ -96,6 +96,9 @@ extern "C" {
|
||||||
#elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(_LITTLE_ENDIAN)
|
#elif defined(__ARMEL__) || defined(_M_ARM)
|
||||||
#define OPENSSL_64_BIT
|
#define OPENSSL_32_BIT
|
||||||
#define OPENSSL_PPC64LE
|
#define OPENSSL_ARM
|
||||||
+#elif (defined(__PPC__) || defined(__powerpc__))
|
+#elif (defined(__PPC__) || defined(__powerpc__))
|
||||||
+#define OPENSSL_32_BIT
|
+#define OPENSSL_32_BIT
|
||||||
+#define OPENSSL_PPC
|
+#define OPENSSL_PPC
|
||||||
|
|||||||
+5
-3
@@ -8,13 +8,12 @@ DEPENDS += "${PYTHON_PN}-protobuf"
|
|||||||
|
|
||||||
SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch"
|
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 \
|
SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \
|
||||||
file://boring_ssl.patch \
|
|
||||||
file://mips_bigendian.patch \
|
file://mips_bigendian.patch \
|
||||||
file://0001-Include-missing-cstdint-header.patch \
|
file://0001-Include-missing-cstdint-header.patch \
|
||||||
file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \
|
file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \
|
||||||
file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \
|
file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "e6dfc2b6567b1c261739b43d9c59d201c1b89e017afd9e684d85aa7a186c9f7a"
|
SRC_URI[sha256sum] = "4c08ee21b3d10315b8dc26f6c13917b20ed574cdbed2d2d80c53d5508fdcc0f2"
|
||||||
|
|
||||||
RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \
|
RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \
|
||||||
${PYTHON_PN}-setuptools \
|
${PYTHON_PN}-setuptools \
|
||||||
@@ -30,11 +29,14 @@ export GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY = "1"
|
|||||||
|
|
||||||
BORING_SSL_PLATFORM:arm = "linux-arm"
|
BORING_SSL_PLATFORM:arm = "linux-arm"
|
||||||
BORING_SSL_PLATFORM:x86-64 = "linux-x86_64"
|
BORING_SSL_PLATFORM:x86-64 = "linux-x86_64"
|
||||||
|
BORING_SSL_PLATFORM:aarch64 = "linux-aarch64"
|
||||||
BORING_SSL_PLATFORM ?= "unsupported"
|
BORING_SSL_PLATFORM ?= "unsupported"
|
||||||
export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}"
|
export GRPC_BORING_SSL_PLATFORM = "${BORING_SSL_PLATFORM}"
|
||||||
|
export GRPC_BUILD_OVERRIDE_BORING_SSL_ASM_PLATFORM = "${BORING_SSL_PLATFORM}"
|
||||||
|
|
||||||
BORING_SSL:x86-64 = "1"
|
|
||||||
BORING_SSL:arm = "1"
|
BORING_SSL:arm = "1"
|
||||||
|
BORING_SSL:x86-64 = "1"
|
||||||
|
BORING_SSL:aarch64 = "1"
|
||||||
BORING_SSL ?= "0"
|
BORING_SSL ?= "0"
|
||||||
export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}"
|
export GRPC_BUILD_WITH_BORING_SSL_ASM = "${BORING_SSL}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user