All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Armin Kuster" <akuster808@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [hardnott 11/50] python3-grpcio: Upgrade 1.36.1 -> 1.37.0
Date: Sat, 17 Apr 2021 14:05:20 -0700	[thread overview]
Message-ID: <184db3060f75f9ae21d1e401b1256f796fd2d709.1618692905.git.akuster808@gmail.com> (raw)
In-Reply-To: <cover.1618692905.git.akuster808@gmail.com>

From: Leon Anavi <leon.anavi@konsulko.com>

Upgrade to release 1.37.0:

- Use boringssl asm optimizations in aarch64 wheel source build.
- Clarify Guarantees about grpc.Future Interface.
- Use crosscompilation to build python armv7 wheels.
- [Aio] Add time_remaining method to ServicerContext.
- Standardize all environment variable boolean configuration in
  python's setup.py.
- Crosscompile python aarch64 wheels with dockcross.
- Fix Signal Safety Issue.

Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
(cherry picked from commit d5e3c261605e7623eb361db8fe3dbf18413d6ecb)
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 .../python/python3-grpcio/boring_ssl.patch    | 50 ++++++++++++-------
 ...cio_1.36.1.bb => python3-grpcio_1.37.0.bb} |  2 +-
 2 files changed, 33 insertions(+), 19 deletions(-)
 rename meta-python/recipes-devtools/python/{python3-grpcio_1.36.1.bb => python3-grpcio_1.37.0.bb} (94%)

diff --git a/meta-python/recipes-devtools/python/python3-grpcio/boring_ssl.patch b/meta-python/recipes-devtools/python/python3-grpcio/boring_ssl.patch
index 65db4a6ed47..d12e35a993e 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio/boring_ssl.patch
+++ b/meta-python/recipes-devtools/python/python3-grpcio/boring_ssl.patch
@@ -1,36 +1,50 @@
+From f71b32eb8a5c173fc5733847437b9485d75bb2e5 Mon Sep 17 00:00:00 2001
+From: Leon Anavi <leon.anavi@konsulko.com>
+Date: Fri, 9 Apr 2021 14:06:36 +0300
+Subject: [PATCH] setup.py: Fix determining target platform
+
 Do not poke at the build machine to determine target platform or architecture
 pass it from environment instead for cross compiling to work
 
 Upstream-Status: Inappropriate [OE-Specific]
 Signed-off-by: Khem Raj <raj.khem@gmail.com>
+Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
+---
+ setup.py | 11 +++++++----
+ 1 file changed, 7 insertions(+), 4 deletions(-)
+
+diff --git a/setup.py b/setup.py
+index c93d419f32..71a944a9d0 100644
 --- a/setup.py
 +++ b/setup.py
-@@ -109,6 +109,8 @@ CLASSIFIERS = [
- BUILD_WITH_BORING_SSL_ASM = os.environ.get('GRPC_BUILD_WITH_BORING_SSL_ASM',
-                                            True)
+@@ -116,6 +116,9 @@ def _env_bool_value(env_name, default):
+ BUILD_WITH_BORING_SSL_ASM = _env_bool_value('GRPC_BUILD_WITH_BORING_SSL_ASM',
+                                             'True')
  
 +BORING_SSL_PLATFORM = os.environ.get('GRPC_BORING_SSL_PLATFORM',
-+                                           True)
- # Environment variable to determine whether or not the Cython extension should
- # *use* Cython or use the generated C files. Note that this requires the C files
- # to have been generated by building first *with* Cython support. Even if this
-@@ -306,15 +308,15 @@ asm_key = ''
- if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL:
++                                           'True')
++
+ # Export this environment variable to override the platform variant that will
+ # be chosen for boringssl assembly optimizations. This option is useful when
+ # crosscompiling and the host platform as obtained by distutils.utils.get_platform()
+@@ -336,13 +339,13 @@ if BUILD_WITH_BORING_SSL_ASM and not BUILD_WITH_SYSTEM_OPENSSL:
      LINUX_X86_64 = 'linux-x86_64'
      LINUX_ARM = 'linux-arm'
--    if LINUX_X86_64 == util.get_platform():
+     LINUX_AARCH64 = 'linux-aarch64'
+-    if LINUX_X86_64 == boringssl_asm_platform:
 +    if LINUX_X86_64 == BORING_SSL_PLATFORM:
          asm_key = 'crypto_linux_x86_64'
--    elif LINUX_ARM == util.get_platform():
+-    elif LINUX_ARM == boringssl_asm_platform:
 +    elif LINUX_ARM == BORING_SSL_PLATFORM:
          asm_key = 'crypto_linux_arm'
--    elif "mac" in util.get_platform() and "x86_64" in util.get_platform():
-+    elif "mac" in BORING_SSL_PLATFORM and "x86_64" in BORING_SSL_PLATFORM:
+-    elif LINUX_AARCH64 == boringssl_asm_platform:
++    elif LINUX_AARCH64 == BORING_SSL_PLATFORM:
+         asm_key = 'crypto_linux_aarch64'
+-    elif "mac" in boringssl_asm_platform and "x86_64" in boringssl_asm_platform:
++    elif "mac" in boringssl_asm_platform and "x86_64" in BORING_SSL_PLATFORM:
          asm_key = 'crypto_mac_x86_64'
      else:
          print("ASM Builds for BoringSSL currently not supported on:",
--              util.get_platform())
-+              BORING_SSL_PLATFORM)
- if asm_key:
-     asm_files = grpc_core_dependencies.ASM_SOURCE_FILES[asm_key]
- else:
+-- 
+2.17.1
+
diff --git a/meta-python/recipes-devtools/python/python3-grpcio_1.36.1.bb b/meta-python/recipes-devtools/python/python3-grpcio_1.37.0.bb
similarity index 94%
rename from meta-python/recipes-devtools/python/python3-grpcio_1.36.1.bb
rename to meta-python/recipes-devtools/python/python3-grpcio_1.37.0.bb
index 13cef537e2a..47fb71120dc 100644
--- a/meta-python/recipes-devtools/python/python3-grpcio_1.36.1.bb
+++ b/meta-python/recipes-devtools/python/python3-grpcio_1.37.0.bb
@@ -13,7 +13,7 @@ SRC_URI_append_class-target = " file://ppc-boringssl-support.patch \
                                 file://mips_bigendian.patch \
                                 file://0001-absl-always-use-asm-sgidefs.h.patch \
 "
-SRC_URI[sha256sum] = "a66ea59b20f3669df0f0c6a3bd57b985e5b2d1dcf3e4c29819bb8dc232d0fd38"
+SRC_URI[sha256sum] = "b3ce16aa91569760fdabd77ca901b2288152eb16941d28edd9a3a75a0c4a8a85"
 
 RDEPENDS_${PN} = "${PYTHON_PN}-protobuf \
                   ${PYTHON_PN}-setuptools \
-- 
2.17.1


  parent reply	other threads:[~2021-04-17 21:06 UTC|newest]

Thread overview: 51+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-17 21:05 [hardnott 00/50] Patch review April 17th Armin Kuster
2021-04-17 21:05 ` [hardnott 01/50] tbb: upgrade 2020.3 -> 2021.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 02/50] tbb: Fix build with musl Armin Kuster
2021-04-17 21:05 ` [hardnott 03/50] ocl-icd: upgrade 2.2.14 -> 2.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 04/50] python3-ruamel-yaml: Upgrade 0.17.2 -> 0.17.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 05/50] python3-croniter: Upgrade 1.0.10 -> 1.0.11 Armin Kuster
2021-04-17 21:05 ` [hardnott 06/50] python3-decorator: Upgrade 5.0.5 -> 5.0.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 07/50] python3-grpcio-tools: Upgrade 1.36.1 -> 1.37.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 08/50] python3-speedtest-cli: Upgrade 2.1.2 -> 2.1.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 09/50] python3-python-vlc: Upgrade 3.0.11115 -> 3.0.12117 Armin Kuster
2021-04-17 21:05 ` [hardnott 10/50] python3-robotframework: Upgrade 4.0 -> 4.0.1 Armin Kuster
2021-04-17 21:05 ` Armin Kuster [this message]
2021-04-17 21:05 ` [hardnott 12/50] python3-absl: upgrade 0.10.0 -> 0.12.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 13/50] python3-astroid: upgrade 2.5.2 -> 2.5.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 14/50] python3-bitarray: upgrade 1.9.1 -> 1.9.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 15/50] python3-cerberus: Upgrade 1.3.2 -> 1.3.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 16/50] python3-humanize: Upgrade 3.3.0 -> 3.4.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 17/50] python3-monotonic: Upgrade 1.5 -> 1.6 Armin Kuster
2021-04-17 21:05 ` [hardnott 18/50] python3-sqlalchemy: Upgrade 1.4.6 -> 1.4.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 19/50] python3-typed-ast: Upgrade 1.4.2 -> 1.4.3 Armin Kuster
2021-04-17 21:05 ` [hardnott 20/50] python3-backports-functools-lru-cache: Upgrade 1.6.3 -> 1.6.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 21/50] python3-xmlschema: Upgrade 1.6.0 -> 1.6.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 22/50] modemmanager: upgrade 1.14.10 -> 1.16.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 23/50] libqmi: upgrade 1.26.6 -> 1.28.2 Armin Kuster
2021-04-17 21:05 ` [hardnott 24/50] hostapd: fix CVE-2021-30004 Armin Kuster
2021-04-17 21:05 ` [hardnott 25/50] catfish: add python3-dbus to RDEPENDS Armin Kuster
2021-04-17 21:05 ` [hardnott 26/50] fluidsynth: upgrade 2.1.7 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 27/50] redis: upgrade 6.0.9 -> 6.2.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 28/50] python3-pyroute2: Upgrade 0.5.17 -> 0.5.18 Armin Kuster
2021-04-17 21:05 ` [hardnott 29/50] python3-sympy: Upgrade 1.7.1 -> 1.8 Armin Kuster
2021-04-17 21:05 ` [hardnott 30/50] python3-pandas: Upgrade 1.2.3 -> 1.2.4 Armin Kuster
2021-04-17 21:05 ` [hardnott 31/50] python3-humanize: Upgrade 3.4.0 -> 3.4.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 32/50] python3-decorator: Upgrade 5.0.6 -> 5.0.7 Armin Kuster
2021-04-17 21:05 ` [hardnott 33/50] python3-colorlog: Upgrade 4.8.0 -> 5.0.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 34/50] python3-google-api-python-client: Upgrade 2.1.0 -> 2.2.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 35/50] python3-croniter: Upgrade 1.0.11 -> 1.0.12 Armin Kuster
2021-04-17 21:05 ` [hardnott 36/50] core-image-minimal-xfce: Use graphical.target as default Armin Kuster
2021-04-17 21:05 ` [hardnott 37/50] opencv: fetch wechat_qrcode files used by dnn PACKAGECONFIG Armin Kuster
2021-04-17 21:05 ` [hardnott 38/50] opencv: link sfm module with Glog Armin Kuster
2021-04-17 21:05 ` [hardnott 39/50] debootstrap: 1.0.67 -> 1.0.123 Armin Kuster
2021-04-17 21:05 ` [hardnott 40/50] bats: upgrade 1.1.0 -> 1.3.0 Armin Kuster
2021-04-17 21:05 ` [hardnott 41/50] fwts: upgrade to 21.03.00 Armin Kuster
2021-04-17 21:05 ` [hardnott 42/50] PEP8 double aggressive E701, E70 and E502 Armin Kuster
2021-04-17 21:05 ` [hardnott 43/50] PEP8 double aggressive E20 and E211 Armin Kuster
2021-04-17 21:05 ` [hardnott 44/50] PEP8 double aggressive E22, E224, E241, E242 and E27 Armin Kuster
2021-04-17 21:05 ` [hardnott 45/50] PEP8 double aggressive E301 ~ E306 Armin Kuster
2021-04-17 21:05 ` [hardnott 46/50] PEP8 double aggressive W291 ~ W293 and W391 Armin Kuster
2021-04-17 21:05 ` [hardnott 47/50] vnstat: Disable install parallism to fix a potential install race Armin Kuster
2021-04-17 21:05 ` [hardnott 48/50] uftrace: Fix error on aarch64 when binutils update to 2.35.1 Armin Kuster
2021-04-17 21:05 ` [hardnott 49/50] open-vm-tools: upgrade 11.0.1 -> 11.2.5 Armin Kuster
2021-04-17 21:05 ` [hardnott 50/50] open-vm-tools: Fix build with gcc 11 Armin Kuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=184db3060f75f9ae21d1e401b1256f796fd2d709.1618692905.git.akuster808@gmail.com \
    --to=akuster808@gmail.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.