summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2018-12-23 10:46:51 -0800
committerKhem Raj <raj.khem@gmail.com>2018-12-23 13:29:20 -0800
commit7227733cbf8792444fe21fac729ab7f7d86a7866 (patch)
treede3c7476045986175bd326909381303e5d59ecfa /meta-python
parentb67fff759b0e4da1c380b340f380bdfd7dee7af5 (diff)
downloadmeta-openembedded-7227733cbf8792444fe21fac729ab7f7d86a7866.tar.gz
python-grpcio: Upgrade to 1.17.1
Patch to fix ppc build Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Tim "moto-timo" Orling <TicoTimo@gmail.com> Cc: Derek Straka <derek@asterius.io>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python-grpcio.inc10
-rw-r--r--meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch17
-rw-r--r--meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb (renamed from meta-python/recipes-devtools/python/python-grpcio_1.14.1.bb)0
-rw-r--r--meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb (renamed from meta-python/recipes-devtools/python/python3-grpcio_1.14.1.bb)0
4 files changed, 23 insertions, 4 deletions
diff --git a/meta-python/recipes-devtools/python/python-grpcio.inc b/meta-python/recipes-devtools/python/python-grpcio.inc
index 23d25f7aa..0cef0dda0 100644
--- a/meta-python/recipes-devtools/python/python-grpcio.inc
+++ b/meta-python/recipes-devtools/python/python-grpcio.inc
@@ -5,7 +5,10 @@ SECTION = "devel/python"
5DEPENDS_append = "${PYTHON_PN}-protobuf" 5DEPENDS_append = "${PYTHON_PN}-protobuf"
6 6
7FILESEXTRAPATHS_prepend := "${THISDIR}/python-grpcio:" 7FILESEXTRAPATHS_prepend := "${THISDIR}/python-grpcio:"
8SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch " 8
9SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \
10 file://ppc-boringssl-support.patch \
11"
9 12
10RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \ 13RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
11 ${PYTHON_PN}-setuptools \ 14 ${PYTHON_PN}-setuptools \
@@ -16,9 +19,8 @@ LICENSE = "BSD-3-Clause"
16LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9" 19LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
17 20
18inherit pypi 21inherit pypi
19 22SRC_URI[md5sum] = "dd46d7270dfce713c03f45fae999cae3"
20SRC_URI[md5sum] = "0987ae2e47b5103de3cacc437874a3c5" 23SRC_URI[sha256sum] = "fd6774bbb6c717f725b39394757445ead4f69c471118364933aadb81a4f16961"
21SRC_URI[sha256sum] = "4bf23666e763ca7ff6010465864e9f088f4ac7ecc1e11abd6f85b250e66b2c05"
22 24
23CLEANBROKEN = "1" 25CLEANBROKEN = "1"
24 26
diff --git a/meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch b/meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch
new file mode 100644
index 000000000..6435abbe6
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch
@@ -0,0 +1,17 @@
1Let boringSSL compile on ppc32 bit
2
3Upstream-Status: Pending
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6--- a/third_party/boringssl/include/openssl/base.h
7+++ b/third_party/boringssl/include/openssl/base.h
8@@ -95,6 +95,9 @@ extern "C" {
9 #elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(_LITTLE_ENDIAN)
10 #define OPENSSL_64_BIT
11 #define OPENSSL_PPC64LE
12+#elif (defined(__PPC__) || defined(__powerpc__))
13+#define OPENSSL_32_BIT
14+#define OPENSSL_PPC
15 #elif defined(__mips__) && !defined(__LP64__)
16 #define OPENSSL_32_BIT
17 #define OPENSSL_MIPS
diff --git a/meta-python/recipes-devtools/python/python-grpcio_1.14.1.bb b/meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb
index 820bea44b..820bea44b 100644
--- a/meta-python/recipes-devtools/python/python-grpcio_1.14.1.bb
+++ b/meta-python/recipes-devtools/python/python-grpcio_1.17.1.bb
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.14.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb
index d4720b4b8..d4720b4b8 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio_1.14.1.bb
+++ b/meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb