summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChangqing Li <changqing.li@windriver.com>2024-05-16 17:37:09 +0800
committerKhem Raj <raj.khem@gmail.com>2024-05-19 08:27:59 -0700
commit1573555fb83739c1777a0a818c5851998358fb76 (patch)
tree175827d2bacd067ebd581729fe8360fe2ea6530d
parentda03f5dadc0b3229bef905db2d8941bbdb1d2d97 (diff)
downloadmeta-openembedded-1573555fb83739c1777a0a818c5851998358fb76.tar.gz
python3-grpcio: fix do_compile failure for qemuppc64/qemuppc
define proper macro for ppc/ppc64 to fix compile error Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio/0001-target.h-define-proper-macro-for-ppc-ppc64.patch37
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb1
2 files changed, 38 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-grpcio/0001-target.h-define-proper-macro-for-ppc-ppc64.patch b/meta-python/recipes-devtools/python/python3-grpcio/0001-target.h-define-proper-macro-for-ppc-ppc64.patch
new file mode 100644
index 0000000000..0b512b1d00
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-grpcio/0001-target.h-define-proper-macro-for-ppc-ppc64.patch
@@ -0,0 +1,37 @@
1From b3bca013007a4a66703573d243e433f22e1e6684 Mon Sep 17 00:00:00 2001
2From: Changqing Li <changqing.li@windriver.com>
3Date: Wed, 15 May 2024 16:55:09 +0800
4Subject: [PATCH] target.h: define proper macro for ppc/ppc64
5
6Fix error:
7third_party/boringssl-with-bazel/src/include/openssl/target.h:74:2: error: #error "Unknown target CPU"
8third_party/boringssl-with-bazel/src/include/openssl/bn.h:172:2: error: #error "Must define either OPENSSL_32_BIT or OPENSSL_64_BIT"
9third_party/boringssl-with-bazel/src/include/openssl/bn.h:230:44: error: 'BN_ULONG' has not been declared
10
11BN_ULONG will be defined after set proper OPENSSL_32_BIT or OPENSSL_64_BIT
12
13Upstream-Status: Pending
14
15Signed-off-by: Changqing Li <changqing.li@windriver.com>
16---
17 third_party/boringssl-with-bazel/src/include/openssl/target.h | 4 ++++
18 1 file changed, 4 insertions(+)
19
20diff --git a/third_party/boringssl-with-bazel/src/include/openssl/target.h b/third_party/boringssl-with-bazel/src/include/openssl/target.h
21index 29b1dc6..d779813 100644
22--- a/third_party/boringssl-with-bazel/src/include/openssl/target.h
23+++ b/third_party/boringssl-with-bazel/src/include/openssl/target.h
24@@ -54,6 +54,10 @@
25 #define OPENSSL_32_BIT
26 #elif defined(__myriad2__)
27 #define OPENSSL_32_BIT
28+#elif defined(__PPC64__)
29+#define OPENSSL_64_BIT
30+#elif defined(__PPC__)
31+#define OPENSSL_32_BIT
32 #else
33 // The list above enumerates the platforms that BoringSSL supports. For these
34 // platforms we keep a reasonable bar of not breaking them: automated test
35--
362.25.1
37
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
index 3cee8ab10c..47f3b2ea25 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
+++ b/meta-python/recipes-devtools/python/python3-grpcio_1.62.2.bb
@@ -10,6 +10,7 @@ SRC_URI += "file://0001-Include-missing-cstdint-header.patch \
10 file://abseil-ppc-fixes.patch \ 10 file://abseil-ppc-fixes.patch \
11 file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \ 11 file://0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch \
12 file://0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch;patchdir=third_party/boringssl-with-bazel/src/ \ 12 file://0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch;patchdir=third_party/boringssl-with-bazel/src/ \
13 file://0001-target.h-define-proper-macro-for-ppc-ppc64.patch \
13 " 14 "
14SRC_URI[sha256sum] = "c77618071d96b7a8be2c10701a98537823b9c65ba256c0b9067e0594cdbd954d" 15SRC_URI[sha256sum] = "c77618071d96b7a8be2c10701a98537823b9c65ba256c0b9067e0594cdbd954d"
15 16