diff mbox series

[oe,meta-python,15/18] python-grpcio: Upgrade to 1.17.1

Message ID 20181223213557.7834-15-raj.khem@gmail.com
State Accepted
Commit 7227733cbf8792444fe21fac729ab7f7d86a7866
Headers show
Series [oe,meta-oe,01/18] modemmanager: Fix build with gcc9 | expand

Commit Message

Khem Raj Dec. 23, 2018, 9:35 p.m. UTC
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>
---
 .../recipes-devtools/python/python-grpcio.inc   | 10 ++++++----
 .../python-grpcio/ppc-boringssl-support.patch   | 17 +++++++++++++++++
 ...grpcio_1.14.1.bb => python-grpcio_1.17.1.bb} |  0
 ...rpcio_1.14.1.bb => python3-grpcio_1.17.1.bb} |  0
 4 files changed, 23 insertions(+), 4 deletions(-)
 create mode 100644 meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch
 rename meta-python/recipes-devtools/python/{python-grpcio_1.14.1.bb => python-grpcio_1.17.1.bb} (100%)
 rename meta-python/recipes-devtools/python/{python3-grpcio_1.14.1.bb => python3-grpcio_1.17.1.bb} (100%)

-- 
2.20.1

-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
diff mbox series

Patch

diff --git a/meta-python/recipes-devtools/python/python-grpcio.inc b/meta-python/recipes-devtools/python/python-grpcio.inc
index 23d25f7aa5..0cef0dda02 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"
 DEPENDS_append = "${PYTHON_PN}-protobuf"
 
 FILESEXTRAPATHS_prepend := "${THISDIR}/python-grpcio:"
-SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch "
+
+SRC_URI_append_class-target = " file://0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch \
+                                file://ppc-boringssl-support.patch \
+"
 
 RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
                   ${PYTHON_PN}-setuptools \
@@ -16,9 +19,8 @@  LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/BSD-3-Clause;md5=550794465ba0ec5312d6919e203a55f9"
 
 inherit pypi
-
-SRC_URI[md5sum] = "0987ae2e47b5103de3cacc437874a3c5"
-SRC_URI[sha256sum] = "4bf23666e763ca7ff6010465864e9f088f4ac7ecc1e11abd6f85b250e66b2c05"
+SRC_URI[md5sum] = "dd46d7270dfce713c03f45fae999cae3"
+SRC_URI[sha256sum] = "fd6774bbb6c717f725b39394757445ead4f69c471118364933aadb81a4f16961"
 
 CLEANBROKEN = "1"
 
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 0000000000..6435abbe6d
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python-grpcio/ppc-boringssl-support.patch
@@ -0,0 +1,17 @@ 
+Let boringSSL compile on ppc32 bit
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+--- a/third_party/boringssl/include/openssl/base.h
++++ b/third_party/boringssl/include/openssl/base.h
+@@ -95,6 +95,9 @@ extern "C" {
+ #elif (defined(__PPC64__) || defined(__powerpc64__)) && defined(_LITTLE_ENDIAN)
+ #define OPENSSL_64_BIT
+ #define OPENSSL_PPC64LE
++#elif (defined(__PPC__) || defined(__powerpc__))
++#define OPENSSL_32_BIT
++#define OPENSSL_PPC
+ #elif defined(__mips__) && !defined(__LP64__)
+ #define OPENSSL_32_BIT
+ #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
similarity index 100%
rename from meta-python/recipes-devtools/python/python-grpcio_1.14.1.bb
rename to 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
similarity index 100%
rename from meta-python/recipes-devtools/python/python3-grpcio_1.14.1.bb
rename to meta-python/recipes-devtools/python/python3-grpcio_1.17.1.bb