diff options
Diffstat (limited to 'meta-python/recipes-devtools/python')
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch | 6 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch | 42 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch | 73 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch | 6 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/abseil-ppc-fixes.patch | 63 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch | 17 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch | 17 | ||||
-rw-r--r-- | meta-python/recipes-devtools/python/python3-grpcio_1.59.3.bb (renamed from meta-python/recipes-devtools/python/python3-grpcio_1.56.2.bb) | 14 |
8 files changed, 46 insertions, 192 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch index f970cf3c3c..5cd94dee9c 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch +++ b/meta-python/recipes-devtools/python/python3-grpcio/0001-Include-missing-cstdint-header.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 752e30eebe5b91c323bafcbea8d450dd5683701a Mon Sep 17 00:00:00 2001 | 1 | From 252aa78526287fe033c5656cd166e551fa5daa88 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 30 Jan 2023 10:31:10 -0800 | 3 | Date: Mon, 30 Jan 2023 10:31:10 -0800 |
4 | Subject: [PATCH] Include missing <cstdint> header | 4 | Subject: [PATCH] Include missing <cstdint> header |
@@ -11,6 +11,7 @@ int32_t. | |||
11 | 11 | ||
12 | Upstream-Status: Submitted [https://code-review.googlesource.com/c/re2/+/60970] | 12 | Upstream-Status: Submitted [https://code-review.googlesource.com/c/re2/+/60970] |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | |||
14 | --- | 15 | --- |
15 | third_party/re2/util/pcre.h | 1 + | 16 | third_party/re2/util/pcre.h | 1 + |
16 | 1 file changed, 1 insertion(+) | 17 | 1 file changed, 1 insertion(+) |
@@ -27,6 +28,3 @@ index 896b0bd..271a005 100644 | |||
27 | 28 | ||
28 | #ifdef USEPCRE | 29 | #ifdef USEPCRE |
29 | #include <pcre.h> | 30 | #include <pcre.h> |
30 | -- | ||
31 | 2.39.1 | ||
32 | |||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch deleted file mode 100644 index 49df528d7e..0000000000 --- a/meta-python/recipes-devtools/python/python3-grpcio/0001-direct_mmap-Use-off_t-on-linux.patch +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | From 45fdade6c0415ec5af3f9312e6311a4ccc682a7b Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 28 Dec 2022 18:24:21 -0800 | ||
4 | Subject: [PATCH] direct_mmap: Use off_t on linux | ||
5 | |||
6 | off64_t is not provided without defining _LARGEFILE64_SOURCE on musl | ||
7 | this define is not defined automatically like glibc where it gets | ||
8 | defined when _GNU_SOURCE is defined. Using off_t makes it portable | ||
9 | across musl/glibc and for using 64bit off_t on glibc 32bit systems | ||
10 | -D_FILE_OFFSET_BITS=64 can be defined during build via CXXFLAGS | ||
11 | |||
12 | Upstream-Status: Submitted [https://github.com/abseil/abseil-cpp/pull/1349] | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | absl/base/internal/direct_mmap.h | 4 ++-- | ||
16 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
17 | |||
18 | diff --git a/absl/base/internal/direct_mmap.h b/absl/base/internal/direct_mmap.h | ||
19 | index 815b8d23..fdf88f0b 100644 | ||
20 | --- a/absl/base/internal/direct_mmap.h | ||
21 | +++ b/absl/base/internal/direct_mmap.h | ||
22 | @@ -72,7 +72,7 @@ namespace base_internal { | ||
23 | // Platform specific logic extracted from | ||
24 | // https://chromium.googlesource.com/linux-syscall-support/+/master/linux_syscall_support.h | ||
25 | inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, | ||
26 | - off64_t offset) noexcept { | ||
27 | + off_t offset) noexcept { | ||
28 | #if defined(__i386__) || defined(__ARM_ARCH_3__) || defined(__ARM_EABI__) || \ | ||
29 | defined(__m68k__) || defined(__sh__) || \ | ||
30 | (defined(__hppa__) && !defined(__LP64__)) || \ | ||
31 | @@ -102,7 +102,7 @@ inline void* DirectMmap(void* start, size_t length, int prot, int flags, int fd, | ||
32 | #else | ||
33 | return reinterpret_cast<void*>( | ||
34 | syscall(SYS_mmap2, start, length, prot, flags, fd, | ||
35 | - static_cast<off_t>(offset / pagesize))); | ||
36 | + offset / pagesize)); | ||
37 | #endif | ||
38 | #elif defined(__s390x__) | ||
39 | // On s390x, mmap() arguments are passed in memory. | ||
40 | -- | ||
41 | 2.39.0 | ||
42 | |||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch deleted file mode 100644 index 13911ddcf3..0000000000 --- a/meta-python/recipes-devtools/python/python3-grpcio/0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch +++ /dev/null | |||
@@ -1,73 +0,0 @@ | |||
1 | From de10fbc2386dcac3ab810c49b6977b2ee01bf426 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 17 Feb 2021 13:30:23 -0800 | ||
4 | Subject: [PATCH] setup.py: Do not mix C and C++ compiler options | ||
5 | |||
6 | EXTRA_ENV_COMPILE_ARGS is used both with CC and CXX | ||
7 | so using -std=c++11 or -std=gnu99 together will cause | ||
8 | build time errors espcially with clang | ||
9 | |||
10 | Keep '-std=c++11' to fix native build error | ||
11 | with old gcc (such as gcc 5.4.0 on ubuntu 16.04), for clang | ||
12 | we will remove them through GRPC_PYTHON_CFLAGS at do_compile | ||
13 | in bb recipe. | ||
14 | |||
15 | While export CC="gcc ", cc_args is None, it will | ||
16 | cause subprocess.Popen always return 1. On centos 8, if you don't | ||
17 | install package libatomic, there will be a native build error | ||
18 | `cannot find /usr/lib64/libatomic.so.1.2.0'. | ||
19 | |||
20 | Add no harm '-g' to cc_args if cc_args is empty. | ||
21 | |||
22 | Upstream-Status: Inappropriate [oe specific] | ||
23 | |||
24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
25 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | ||
26 | Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> | ||
27 | --- | ||
28 | setup.py | 11 +++++++---- | ||
29 | src/python/grpcio/commands.py | 5 ++++- | ||
30 | 2 files changed, 11 insertions(+), 5 deletions(-) | ||
31 | |||
32 | --- a/setup.py | ||
33 | +++ b/setup.py | ||
34 | @@ -206,8 +206,11 @@ def check_linker_need_libatomic(): | ||
35 | """Test if linker on system needs libatomic.""" | ||
36 | code_test = (b'#include <atomic>\n' + | ||
37 | b'int main() { return std::atomic<int64_t>{}; }') | ||
38 | - cxx = shlex.split(os.environ.get('CXX', 'c++')) | ||
39 | - cpp_test = subprocess.Popen(cxx + ['-x', 'c++', '-std=c++14', '-'], | ||
40 | + cxx, cxx_args = os.environ.get('CXX').split(' ', 1) or 'c++' | ||
41 | + if not cxx_args: | ||
42 | + cxx_args = "-g" | ||
43 | + | ||
44 | + cpp_test = subprocess.Popen([cxx, cxx_args, '-x', 'c++', '-std=c++14', '-'], | ||
45 | stdin=PIPE, | ||
46 | stdout=PIPE, | ||
47 | stderr=PIPE) | ||
48 | @@ -216,8 +219,8 @@ def check_linker_need_libatomic(): | ||
49 | return False | ||
50 | # Double-check to see if -latomic actually can solve the problem. | ||
51 | # https://github.com/grpc/grpc/issues/22491 | ||
52 | - cpp_test = subprocess.Popen(cxx + | ||
53 | - ['-x', 'c++', '-std=c++14', '-', '-latomic'], | ||
54 | + cpp_test = subprocess.Popen( | ||
55 | + [cxx, cxx_args, '-x', 'c++', '-std=c++14', '-', '-latomic'], | ||
56 | stdin=PIPE, | ||
57 | stdout=PIPE, | ||
58 | stderr=PIPE) | ||
59 | --- a/src/python/grpcio/commands.py | ||
60 | +++ b/src/python/grpcio/commands.py | ||
61 | @@ -228,8 +228,10 @@ class BuildExt(build_ext.build_ext): | ||
62 | """ | ||
63 | try: | ||
64 | # TODO(lidiz) Remove the generated a.out for success tests. | ||
65 | - cc = os.environ.get('CC', 'cc') | ||
66 | - cc_test = subprocess.Popen([cc, '-x', 'c', '-std=c++14', '-'], | ||
67 | + cc_test, cc_args = os.environ.get('CC').split(' ', 1) or 'gcc' | ||
68 | + if not cc_args: | ||
69 | + cc_args = "-g" | ||
70 | + cc_test = subprocess.Popen([cc_test, cc_args, '-x', 'c', '-std=c++14', '-'], | ||
71 | stdin=subprocess.PIPE, | ||
72 | stdout=subprocess.PIPE, | ||
73 | stderr=subprocess.PIPE) | ||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch index 918c6c8601..a5e767029e 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch +++ b/meta-python/recipes-devtools/python/python3-grpcio/0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From 4432b9a296c9c287dfe281b4d464dfd03e4eb721 Mon Sep 17 00:00:00 2001 | 1 | From 6ede7d01b18a4d9eeaccd25f5c1ab9985cb65307 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Sun, 12 Feb 2023 21:25:04 -0800 | 3 | Date: Sun, 12 Feb 2023 21:25:04 -0800 |
4 | Subject: [PATCH] zlib: Include unistd.h for open/close C APIs | 4 | Subject: [PATCH] zlib: Include unistd.h for open/close C APIs |
@@ -6,6 +6,7 @@ Subject: [PATCH] zlib: Include unistd.h for open/close C APIs | |||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | 7 | ||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
9 | |||
9 | --- | 10 | --- |
10 | third_party/zlib/gzguts.h | 1 + | 11 | third_party/zlib/gzguts.h | 1 + |
11 | 1 file changed, 1 insertion(+) | 12 | 1 file changed, 1 insertion(+) |
@@ -22,6 +23,3 @@ index 57faf37..3c700c2 100644 | |||
22 | #include "zlib.h" | 23 | #include "zlib.h" |
23 | #ifdef STDC | 24 | #ifdef STDC |
24 | # include <string.h> | 25 | # include <string.h> |
25 | -- | ||
26 | 2.39.1 | ||
27 | |||
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 4100cf63f7..4bb60b6e2c 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 | |||
@@ -1,4 +1,7 @@ | |||
1 | An all-in-one patch that fixes several issues: | 1 | From 9cec6297effa9fab6f0c71e342046daceecd7d4d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 13 Mar 2021 10:26:25 -0800 | ||
4 | Subject: [PATCH] An all-in-one patch that fixes several issues: | ||
2 | 5 | ||
3 | 1) UnscaledCycleClock not fully implemented for ppc*-musl (disabled on musl) | 6 | 1) UnscaledCycleClock not fully implemented for ppc*-musl (disabled on musl) |
4 | 2) powerpc stacktrace implementation only works on glibc (disabled on musl) | 7 | 2) powerpc stacktrace implementation only works on glibc (disabled on musl) |
@@ -7,19 +10,21 @@ An all-in-one patch that fixes several issues: | |||
7 | 10 | ||
8 | Sourced from void linux | 11 | Sourced from void linux |
9 | 12 | ||
13 | Upstream-Status: Pending | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
11 | Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com> | 15 | Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com> |
12 | --- | ||
13 | Upstream-Status: Pending | ||
14 | 16 | ||
15 | absl/base/internal/unscaledcycleclock.cc | 4 ++-- | 17 | --- |
16 | absl/base/internal/unscaledcycleclock.h | 3 ++- | 18 | .../abseil-cpp/absl/base/internal/unscaledcycleclock.cc | 4 ++-- |
17 | absl/debugging/internal/examine_stack.cc | 8 +++++++- | 19 | .../absl/base/internal/unscaledcycleclock_config.h | 3 ++- |
18 | absl/debugging/internal/stacktrace_config.h | 2 +- | 20 | .../abseil-cpp/absl/debugging/internal/examine_stack.cc | 8 +++++++- |
21 | .../absl/debugging/internal/stacktrace_config.h | 2 +- | ||
19 | 4 files changed, 12 insertions(+), 5 deletions(-) | 22 | 4 files changed, 12 insertions(+), 5 deletions(-) |
20 | 23 | ||
21 | --- a/absl/base/internal/unscaledcycleclock.cc | 24 | diff --git a/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc b/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc |
22 | +++ b/absl/base/internal/unscaledcycleclock.cc | 25 | index b1c396c..d62bfd6 100644 |
26 | --- a/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc | ||
27 | +++ b/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock.cc | ||
23 | @@ -20,7 +20,7 @@ | 28 | @@ -20,7 +20,7 @@ |
24 | #include <intrin.h> | 29 | #include <intrin.h> |
25 | #endif | 30 | #endif |
@@ -38,8 +43,24 @@ Upstream-Status: Pending | |||
38 | 43 | ||
39 | int64_t UnscaledCycleClock::Now() { | 44 | int64_t UnscaledCycleClock::Now() { |
40 | #ifdef __GLIBC__ | 45 | #ifdef __GLIBC__ |
41 | --- a/absl/debugging/internal/examine_stack.cc | 46 | diff --git a/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h b/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h |
42 | +++ b/absl/debugging/internal/examine_stack.cc | 47 | index 24b324a..5e232c1 100644 |
48 | --- a/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h | ||
49 | +++ b/third_party/abseil-cpp/absl/base/internal/unscaledcycleclock_config.h | ||
50 | @@ -21,7 +21,8 @@ | ||
51 | |||
52 | // The following platforms have an implementation of a hardware counter. | ||
53 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | ||
54 | - defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ | ||
55 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | ||
56 | + defined(__riscv) || \ | ||
57 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | ||
58 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | ||
59 | #else | ||
60 | diff --git a/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc b/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc | ||
61 | index 5786322..72c7c46 100644 | ||
62 | --- a/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc | ||
63 | +++ b/third_party/abseil-cpp/absl/debugging/internal/examine_stack.cc | ||
43 | @@ -33,6 +33,10 @@ | 64 | @@ -33,6 +33,10 @@ |
44 | #include <csignal> | 65 | #include <csignal> |
45 | #include <cstdio> | 66 | #include <cstdio> |
@@ -51,7 +72,7 @@ Upstream-Status: Pending | |||
51 | #include "absl/base/attributes.h" | 72 | #include "absl/base/attributes.h" |
52 | #include "absl/base/internal/raw_logging.h" | 73 | #include "absl/base/internal/raw_logging.h" |
53 | #include "absl/base/macros.h" | 74 | #include "absl/base/macros.h" |
54 | @@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) | 75 | @@ -174,8 +178,10 @@ void* GetProgramCounter(void* const vuc) { |
55 | return reinterpret_cast<void*>(context->uc_mcontext.pc); | 76 | return reinterpret_cast<void*>(context->uc_mcontext.pc); |
56 | #elif defined(__powerpc64__) | 77 | #elif defined(__powerpc64__) |
57 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); | 78 | return reinterpret_cast<void*>(context->uc_mcontext.gp_regs[32]); |
@@ -63,8 +84,10 @@ Upstream-Status: Pending | |||
63 | #elif defined(__riscv) | 84 | #elif defined(__riscv) |
64 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); | 85 | return reinterpret_cast<void*>(context->uc_mcontext.__gregs[REG_PC]); |
65 | #elif defined(__s390__) && !defined(__s390x__) | 86 | #elif defined(__s390__) && !defined(__s390x__) |
66 | --- a/absl/debugging/internal/stacktrace_config.h | 87 | diff --git a/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h b/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h |
67 | +++ b/absl/debugging/internal/stacktrace_config.h | 88 | index 3929b1b..23d5e50 100644 |
89 | --- a/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h | ||
90 | +++ b/third_party/abseil-cpp/absl/debugging/internal/stacktrace_config.h | ||
68 | @@ -60,7 +60,7 @@ | 91 | @@ -60,7 +60,7 @@ |
69 | #elif defined(__i386__) || defined(__x86_64__) | 92 | #elif defined(__i386__) || defined(__x86_64__) |
70 | #define ABSL_STACKTRACE_INL_HEADER \ | 93 | #define ABSL_STACKTRACE_INL_HEADER \ |
@@ -74,15 +97,3 @@ Upstream-Status: Pending | |||
74 | #define ABSL_STACKTRACE_INL_HEADER \ | 97 | #define ABSL_STACKTRACE_INL_HEADER \ |
75 | "absl/debugging/internal/stacktrace_powerpc-inl.inc" | 98 | "absl/debugging/internal/stacktrace_powerpc-inl.inc" |
76 | #elif defined(__aarch64__) | 99 | #elif defined(__aarch64__) |
77 | --- a/absl/base/internal/unscaledcycleclock_config.h | ||
78 | +++ b/absl/base/internal/unscaledcycleclock_config.h | ||
79 | @@ -21,7 +21,8 @@ | ||
80 | |||
81 | // The following platforms have an implementation of a hardware counter. | ||
82 | #if defined(__i386__) || defined(__x86_64__) || defined(__aarch64__) || \ | ||
83 | - defined(__powerpc__) || defined(__ppc__) || defined(__riscv) || \ | ||
84 | + ((defined(__powerpc__) || defined(__ppc__)) && defined(__GLIBC__)) || \ | ||
85 | + defined(__riscv) || \ | ||
86 | defined(_M_IX86) || (defined(_M_X64) && !defined(_M_ARM64EC)) | ||
87 | #define ABSL_HAVE_UNSCALED_CYCLECLOCK_IMPLEMENTATION 1 | ||
88 | #else | ||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch b/meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch deleted file mode 100644 index 088ce33fc5..0000000000 --- a/meta-python/recipes-devtools/python/python3-grpcio/mips_bigendian.patch +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | --- a/third_party/boringssl-with-bazel/src/include/openssl/base.h | ||
4 | +++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h | ||
5 | @@ -102,10 +102,10 @@ extern "C" { | ||
6 | #elif (defined(__PPC__) || defined(__powerpc__)) | ||
7 | #define OPENSSL_32_BIT | ||
8 | #define OPENSSL_PPC | ||
9 | -#elif defined(__MIPSEL__) && !defined(__LP64__) | ||
10 | +#elif defined(__mips__) && !defined(__LP64__) | ||
11 | #define OPENSSL_32_BIT | ||
12 | #define OPENSSL_MIPS | ||
13 | -#elif defined(__MIPSEL__) && defined(__LP64__) | ||
14 | +#elif defined(__mips__) && defined(__LP64__) | ||
15 | #define OPENSSL_64_BIT | ||
16 | #define OPENSSL_MIPS64 | ||
17 | #elif defined(__riscv) && __SIZEOF_POINTER__ == 8 | ||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch b/meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch deleted file mode 100644 index 5dacc689fc..0000000000 --- a/meta-python/recipes-devtools/python/python3-grpcio/ppc-boringssl-support.patch +++ /dev/null | |||
@@ -1,17 +0,0 @@ | |||
1 | Let boringSSL compile on ppc32 bit | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
5 | |||
6 | --- a/third_party/boringssl-with-bazel/src/include/openssl/base.h | ||
7 | +++ b/third_party/boringssl-with-bazel/src/include/openssl/base.h | ||
8 | @@ -96,6 +96,9 @@ extern "C" { | ||
9 | #elif defined(__ARMEL__) || defined(_M_ARM) | ||
10 | #define OPENSSL_32_BIT | ||
11 | #define OPENSSL_ARM | ||
12 | +#elif (defined(__PPC__) || defined(__powerpc__)) | ||
13 | +#define OPENSSL_32_BIT | ||
14 | +#define OPENSSL_PPC | ||
15 | #elif defined(__MIPSEL__) && !defined(__LP64__) | ||
16 | #define OPENSSL_32_BIT | ||
17 | #define OPENSSL_MIPS | ||
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.56.2.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.59.3.bb index c34391dd67..7b1631527a 100644 --- a/meta-python/recipes-devtools/python/python3-grpcio_1.56.2.bb +++ b/meta-python/recipes-devtools/python/python3-grpcio_1.59.3.bb | |||
@@ -6,15 +6,11 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=731e401b36f8077ae0c134b59be5c906" | |||
6 | 6 | ||
7 | DEPENDS += "${PYTHON_PN}-protobuf" | 7 | DEPENDS += "${PYTHON_PN}-protobuf" |
8 | 8 | ||
9 | SRC_URI += "file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch" | 9 | SRC_URI += "file://0001-Include-missing-cstdint-header.patch \ |
10 | SRC_URI:append:class-target = " file://ppc-boringssl-support.patch \ | 10 | file://abseil-ppc-fixes.patch \ |
11 | file://mips_bigendian.patch \ | 11 | file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ |
12 | file://0001-Include-missing-cstdint-header.patch \ | 12 | " |
13 | file://abseil-ppc-fixes.patch;patchdir=third_party/abseil-cpp \ | 13 | SRC_URI[sha256sum] = "7800f99568a74a06ebdccd419dd1b6e639b477dcaf6da77ea702f8fb14ce5f80" |
14 | file://0001-direct_mmap-Use-off_t-on-linux.patch;patchdir=third_party/abseil-cpp \ | ||
15 | file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ | ||
16 | " | ||
17 | SRC_URI[sha256sum] = "0ff789ae7d8ddd76d2ac02e7d13bfef6fc4928ac01e1dcaa182be51b6bcc0aaa" | ||
18 | 14 | ||
19 | RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ | 15 | RDEPENDS:${PN} = "${PYTHON_PN}-protobuf \ |
20 | ${PYTHON_PN}-setuptools \ | 16 | ${PYTHON_PN}-setuptools \ |