Commit Graph

26 Commits

Author SHA1 Message Date
Wang Mingyu
984b0d993f python3-grpcio: upgrade 1.67.1 -> 1.68.1
port_def.inc
abseil-ppc-fixes.patch
refreshed for 1.68.1

0001-PR-1644-unscaledcycleclock-remove-RISC-V-support.patch
removed since it's included in 1.68.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-12-24 08:23:08 -08:00
Wang Mingyu
fa9ecb8f87
python3-grpcio: upgrade 1.66.2 -> 1.67.1
0001-crypto-use-_Generic-only-if-defined-__cplusplus.patch
refreshed for 1.67.1

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-11-05 22:45:20 -08:00
Alexander Kanavin
940ce69937
python3-grpcio: update 1.66.1 -> 1.66.2
This fixes python 3.13 issues.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-10-16 14:07:29 -07:00
Scott Murray
080287ebe1
python3-grpcio: backport abseil-cpp RISC-V fix
Backport upstream abseil-cpp fix[1] for SIGILL crash on RISC-V with
6.6 and newer kernels.  The patch has been tweaked to apply on top
of the existing patch stack to the vendored copy of abseil-cpp.

[1]: https://github.com/abseil/abseil-cpp/commit/7335a36d

Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-06-11 15:40:17 -07:00
Changqing Li
1573555fb8
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>
2024-05-19 08:27:59 -07:00
Martin Jansa
5778e32eae
python3-grpcio: Fix build with gcc-14
* crypto: use _Generic only if !defined(__cplusplus)

* fixes build with gcc-14 which has __builtin_addc and __builtin_subc
  with gcc-13 it was already using the #else branch because of missing builtins

* fixes
  https://github.com/grpc/grpc/issues/35945
  http://errors.yoctoproject.org/Errors/Details/766916/

* _Generic was introduced in boringssl with:
  https://boringssl.googlesource.com/boringssl/+/70ca6bc24be103dabd68e448cd3af29b929b771d%5E%21/#F4

* but e.g. third_party/boringssl-with-bazel/src/ssl/d1_both.cc includes
  this internal.h and from the .cc extension gcc will process it as C++
  where _Generic isn't available, causing:

In file included from third_party/boringssl-with-bazel/src/ssl/d1_both.cc:125:
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h: In function 'uint32_t CRYPTO_addc_u32(uint32_t, uint32_t, uint32_t, uint32_t*)':
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1159:7: error: expected primary-expression before 'unsigned'
 1159 |       unsigned: __builtin_addc,                     \
      |       ^~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1166:10: note: in expansion of macro 'CRYPTO_GENERIC_ADDC'
 1166 |   return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
      |          ^~~~~~~~~~~~~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1160:7: error: expected primary-expression before 'unsigned'
 1160 |       unsigned long: __builtin_addcl,               \
      |       ^~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1166:10: note: in expansion of macro 'CRYPTO_GENERIC_ADDC'
 1166 |   return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
      |          ^~~~~~~~~~~~~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1161:7: error: expected primary-expression before 'unsigned'
 1161 |       unsigned long long: __builtin_addcll))((x), (y), (carry), (out_carry))
      |       ^~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1166:10: note: in expansion of macro 'CRYPTO_GENERIC_ADDC'
 1166 |   return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
      |          ^~~~~~~~~~~~~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1158:4: error: '_Generic' was not declared in this scope
 1158 |   (_Generic((x),                                    \
      |    ^~~~~~~~
third_party/boringssl-with-bazel/src/ssl/../crypto/internal.h:1166:10: note: in expansion of macro 'CRYPTO_GENERIC_ADDC'
 1166 |   return CRYPTO_GENERIC_ADDC(x, y, carry, out_carry);
      |          ^~~~~~~~~~~~~~~~~~~

Signed-off-by: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-05 17:04:49 -07:00
Wang Mingyu
7fc8087c65
python3-grpcio(-tools): upgrade 1.60.1 -> 1.62.0
0001-zlib-Include-unistd.h-for-open-close-C-APIs.patch
abseil-ppc-fixes.patch
refreshed for 1.62.0

Changelog:
==========
-[metadata] Allow non application/grpc content-type values.
-[BoringSSL] Update third_party/boringssl-with-bazel.
-[GPR] Removed GPR_BACKWARDS_COMPATIBILITY_MODE.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-03-08 10:07:23 -08:00
Alexander Kanavin
d595b18e46
python3-grpcio: update 1.56.2 -> 1.59.3
This is needed for python 3.12 compatibility.

Drop 0001-direct_mmap-Use-off_t-on-linux.patch as
issue resolved upstream.

Other dropped patches are all due to the code being significantly refactored upstream;
if the issues persist, please write updated patches.

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-12-18 22:17:21 -08:00
Khem Raj
7e1752ee19 python3-grpcio: Fix build on musl
Use off_t instead of deprecated off64_t LFS interface
makes it portable across musl and glibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 09:00:59 -07:00
Khem Raj
1b58a4e64f python3-grpcio: Upgrade to 1.56.0
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-07-07 09:00:59 -07:00
Martin Jansa
be8c765c7c *.patch: add Upstream-Status to all patches
There is new patch-status QA check in oe-core:
https://git.openembedded.org/openembedded-core/commit/?id=76a685bfcf927593eac67157762a53259089ea8a

This is temporary work around just to hide _many_ warnings from
optional patch-status (if you add it to WARN_QA).

This just added
Upstream-Status: Pending
everywhere without actually investigating what's the proper status.

This is just to hide current QA warnings and to catch new .patch files being
added without Upstream-Status, but the number of Pending patches is now terrible:

5 (26%) 	meta-xfce
6 (50%) 	meta-perl
15 (42%)        meta-webserver
21 (36%)        meta-gnome
25 (57%)        meta-filesystems
26 (43%)        meta-initramfs
45 (45%)        meta-python
47 (55%)        meta-multimedia
312 (63%)       meta-networking
756 (61%)       meta-oe

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-06-21 09:15:20 -07:00
Khem Raj
892aac07aa python3-grpcio: Add missing include for close/open APIs
This is found with clang16 stricter warnings

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-12 21:48:33 -08:00
Khem Raj
81b769d098 python3-grpcio: Fix build with gcc13
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-01 09:11:49 -08:00
wangmy
c5533c184e python3-grpcio: upgrade 1.48.1 -> 1.49.0
0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch
refreshed for new version.

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-09-21 06:34:45 -07:00
Xu Huan
d98d8dc8a6 python3-grpcio: upgrade 1.47.0 -> 1.48.0
0001-absl-always-use-asm-sgidefs.h.patch
removed since it's included in 1.48.0

abseil-ppc-fixes.patch
refreshed for new version

License-Update:
  Add the contents of Mozilla Public License to license file.

Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-08-27 07:37:45 -07:00
Xu Huan
ed42504a98 python3-grpcio: upgrade 1.45.0 -> 1.47.0
0001-setup.py-Do-not-mix-C-and-C-compiler-options.patch
refreshed for new version.

Signed-off-by: Xu Huan <xuhuan.fnst@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-07-07 08:24:26 -07:00
Khem Raj
b9936f62ab python3-grpcio, python3-grpcio-tools: Upgrade to 1.44.0
- Fix build on ppc64le/musl
- Add patch to fix abseil on ppc64
- Changes are here [1]

[1] https://github.com/grpc/grpc/releases/tag/v1.44.0

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: tgamblin <trevor.gamblin@windriver.com>
2022-03-15 15:34:22 -04:00
Khem Raj
b3375a4adc python3-grpcio: Update to 1.38.0
Drop riscv patch as its applied upstream
Refresh patches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-05-31 07:38:06 -07:00
Leon Anavi
d5e3c26160 python3-grpcio: Upgrade 1.36.1 -> 1.37.0
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>
2021-04-13 08:06:07 -07:00
Khem Raj
76803697fb python3-grpcio: Fix build on mips and musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-03-08 07:29:23 -08:00
Khem Raj
204beecb95 python3-grpcio: Upgrade to 1.36.1
Release notes are here [1]

See the differences after 1.35.0 upwards

[1] https://github.com/grpc/grpc/releases

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-03-08 07:29:18 -08:00
Khem Raj
9cdca949b6 python3-grpcio: Upgrade to 1.35.0
Drop 0001-Fix-build-on-riscv32.patch, its upstreamed
Forward port rest of the patches
Use OPENSSL_NO_ASM only for armv7+/aarch64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com>
2021-02-19 10:02:43 -08:00
Khem Raj
e25bae55c2 python3-grpcio: Fix build with riscv32
Ensure libseil-cpp can build for rv32 and boringssl riscv patch
considers rv32 separate from rv64

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-04-29 22:32:17 -07:00
Hongxu Jia
1614839cf1 python3-grpcio: fix native build failure on ubuntu 16.04 and centos 8
1. Keep '-std=c++11' and '-std=gnu99' to fix native build error
with old gcc (such as gcc 5.4.0 on ubuntu 16.04); for clang, remove
them through setting GRPC_PYTHON_CFLAGS at do_compile in bb recipe

2. While export CC="gcc ", cc_args is empty, it will
cause subprocess.Popen always return 1. On centos 8, if you don't
install package libatomic, there will be a native build error
`cannot find /usr/lib64/libatomic.so.1.2.0'.

Add no harm '-g' to cc_args if cc_args is empty.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-03-26 20:35:47 -07:00
Qi.Chen@windriver.com
7d242bcfc7 python3-grpcio: fix do_compile error for native
When building python3-grpcio-native, we will meet do_compile error
because of no 'cc'.

In fact, 'cc' is not in our hosttools. So fix to use gcc and make
the patch also apply to native.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-20 15:32:27 -08:00
Khem Raj
115144fce9 python3-grpcio: Upgrade to 1.27.1
Merge inc file into bb, there are no other users of it
Delete gettid patch, fixed differenty upstream
Add code to use cross compiler in setup.py

Define GRPC_PYTHON_DISABLE_LIBC_COMPATIBILITY so it does not use
SYS_clock_gettime syscalls since it does not work when 64bit time_t is
used on 32bit arches

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-02-13 14:07:47 -08:00