summaryrefslogtreecommitdiffstats
path: root/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch
diff options
context:
space:
mode:
authorXu Huan <xuhuan.fnst@fujitsu.com>2022-08-26 10:57:06 +0800
committerKhem Raj <raj.khem@gmail.com>2022-08-27 07:37:45 -0700
commitd98d8dc8a690d463cb3d4517a3aee836cd619b55 (patch)
treefce911b929d450a3b754a6c6d8296227e008b184 /meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch
parent81fedc5a67ed8f7156733d21f218d3c51bbb516b (diff)
downloadmeta-openembedded-d98d8dc8a690d463cb3d4517a3aee836cd619b55.tar.gz
python3-grpcio: upgrade 1.47.0 -> 1.48.0
0001-absl-always-use-asm-sgidefs.h.patch removed since it's included in 1.48.0 abseil-ppc-fixes.patch refreshed for new version License-Update: Add the contents of Mozilla Public License to license file. Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch')
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch28
1 files changed, 23 insertions, 5 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch b/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch
index e8048fe940..c5fdcd63d2 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch
+++ b/meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch
@@ -8,7 +8,16 @@ An all-in-one patch that fixes several issues:
8Sourced from void linux 8Sourced from void linux
9 9
10Signed-off-by: Khem Raj <raj.khem@gmail.com> 10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
12---
13 absl/base/internal/unscaledcycleclock.cc | 4 ++--
14 absl/base/internal/unscaledcycleclock.h | 3 ++-
15 absl/debugging/internal/examine_stack.cc | 8 +++++++-
16 absl/debugging/internal/stacktrace_config.h | 2 +-
17 4 files changed, 12 insertions(+), 5 deletions(-)
11 18
19diff --git a/absl/base/internal/unscaledcycleclock.cc b/absl/base/internal/unscaledcycleclock.cc
20index b1c396c..d62bfd6 100644
12--- a/absl/base/internal/unscaledcycleclock.cc 21--- a/absl/base/internal/unscaledcycleclock.cc
13+++ b/absl/base/internal/unscaledcycleclock.cc 22+++ b/absl/base/internal/unscaledcycleclock.cc
14@@ -20,7 +20,7 @@ 23@@ -20,7 +20,7 @@
@@ -20,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
20 #ifdef __GLIBC__ 29 #ifdef __GLIBC__
21 #include <sys/platform/ppc.h> 30 #include <sys/platform/ppc.h>
22 #elif defined(__FreeBSD__) 31 #elif defined(__FreeBSD__)
23@@ -59,7 +59,7 @@ double UnscaledCycleClock::Frequency() { 32@@ -58,7 +58,7 @@ double UnscaledCycleClock::Frequency() {
24 return base_internal::NominalCPUFrequency(); 33 return base_internal::NominalCPUFrequency();
25 } 34 }
26 35
@@ -29,6 +38,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
29 38
30 int64_t UnscaledCycleClock::Now() { 39 int64_t UnscaledCycleClock::Now() {
31 #ifdef __GLIBC__ 40 #ifdef __GLIBC__
41diff --git a/absl/base/internal/unscaledcycleclock.h b/absl/base/internal/unscaledcycleclock.h
42index 2cbeae3..683a5ef 100644
32--- a/absl/base/internal/unscaledcycleclock.h 43--- a/absl/base/internal/unscaledcycleclock.h
33+++ b/absl/base/internal/unscaledcycleclock.h 44+++ b/absl/base/internal/unscaledcycleclock.h
34@@ -46,7 +46,8 @@ 45@@ -46,7 +46,8 @@
@@ -38,12 +49,14 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
38- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ 49- defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \
39+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ 50+ ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \
40+ defined(__riscv) || \ 51+ defined(__riscv) || \
41 defined(_M_IX86) || defined(_M_X64) 52 defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC))
42 #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 53 #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1
43 #else 54 #else
55diff --git a/absl/debugging/internal/examine_stack.cc b/absl/debugging/internal/examine_stack.cc
56index 5bdd341..a784e0d 100644
44--- a/absl/debugging/internal/examine_stack.cc 57--- a/absl/debugging/internal/examine_stack.cc
45+++ b/absl/debugging/internal/examine_stack.cc 58+++ b/absl/debugging/internal/examine_stack.cc
46@@ -27,6 +27,10 @@ 59@@ -33,6 +33,10 @@
47 #include <csignal> 60 #include <csignal>
48 #include <cstdio> 61 #include <cstdio>
49 62
@@ -54,7 +67,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
54 #include "absl/base/attributes.h" 67 #include "absl/base/attributes.h"
55 #include "absl/base/internal/raw_logging.h" 68 #include "absl/base/internal/raw_logging.h"
56 #include "absl/base/macros.h" 69 #include "absl/base/macros.h"
57@@ -63,8 +67,10 @@ void* GetProgramCounter(void* vuc) { 70@@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) {
58 return reinterpret_cast<void*>(context->uc_mcontext.pc); 71 return reinterpret_cast<void*>(context->uc_mcontext.pc);
59 #elif defined(__powerpc64__) 72 #elif defined(__powerpc64__)
60 return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); 73 return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]);
@@ -66,9 +79,11 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
66 #elif defined(__riscv) 79 #elif defined(__riscv)
67 return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); 80 return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]);
68 #elif defined(__s390__) && !defined(__s390x__) 81 #elif defined(__s390__) && !defined(__s390x__)
82diff --git a/absl/debugging/internal/stacktrace_config.h b/absl/debugging/internal/stacktrace_config.h
83index 3929b1b..23d5e50 100644
69--- a/absl/debugging/internal/stacktrace_config.h 84--- a/absl/debugging/internal/stacktrace_config.h
70+++ b/absl/debugging/internal/stacktrace_config.h 85+++ b/absl/debugging/internal/stacktrace_config.h
71@@ -59,7 +59,7 @@ 86@@ -60,7 +60,7 @@
72 #elif defined(__i386__) || defined(__x86_64__) 87 #elif defined(__i386__) || defined(__x86_64__)
73 #define ABSL_STACKTRACE_INL_HEADER \ 88 #define ABSL_STACKTRACE_INL_HEADER \
74 "absl/debugging/internal/stacktrace_x86-inl.inc" 89 "absl/debugging/internal/stacktrace_x86-inl.inc"
@@ -77,3 +92,6 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
77 #define ABSL_STACKTRACE_INL_HEADER \ 92 #define ABSL_STACKTRACE_INL_HEADER \
78 "absl/debugging/internal/stacktrace_powerpc-inl.inc" 93 "absl/debugging/internal/stacktrace_powerpc-inl.inc"
79 #elif defined(__aarch64__) 94 #elif defined(__aarch64__)
95--
962.25.1
97