package/python-grpcio: needs C++

Fix the following build failure raised since the addition of the package
in commit ea45b95c0e:

/home/autobuild/autobuild/instance-12/output-1/build/python-grpcio-1.60.0/setup.py:40: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
  import pkg_resources
Traceback (most recent call last):
  File "/home/autobuild/autobuild/instance-12/output-1/build/python-grpcio-1.60.0/setup.py", line 289, in <module>
    if check_linker_need_libatomic():
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/autobuild/autobuild/instance-12/output-1/build/python-grpcio-1.60.0/setup.py", line 223, in check_linker_need_libatomic
    cpp_test = subprocess.Popen(
               ^^^^^^^^^^^^^^^^^
  File "/home/autobuild/autobuild/instance-12/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/home/autobuild/autobuild/instance-12/output-1/host/sparc64-buildroot-linux-gnu/sysroot/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'no'

Fixes:
 - http://autobuild.buildroot.org/results/58ac25b4e426712269c5fc144121c955b714c760

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Fabrice Fontaine 2024-01-06 12:36:27 +01:00 committed by Thomas Petazzoni
parent 7ea38660e0
commit d702ac5844
3 changed files with 12 additions and 0 deletions

View File

@ -1,6 +1,7 @@
config BR2_PACKAGE_PYTHON_GRPC_REQUESTS
bool "python-grpc-requests"
depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-cryptography
depends on BR2_INSTALL_LIBSTDCPP # python-grpcio
select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
select BR2_PACKAGE_PYTHON_GOOGLE_API_CORE # runtime
select BR2_PACKAGE_PYTHON_GRPCIO # runtime
@ -9,3 +10,6 @@ config BR2_PACKAGE_PYTHON_GRPC_REQUESTS
grpc for Humans. grpc reflection support client.
https://github.com/wesky93/grpc_requests
comment "python-grpcio-requests needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP

View File

@ -1,8 +1,12 @@
config BR2_PACKAGE_PYTHON_GRPCIO_REFLECTION
bool "python-grpcio-reflection"
depends on BR2_INSTALL_LIBSTDCPP # python-grpcio
select BR2_PACKAGE_PYTHON_GRPCIO # runtime
select BR2_PACKAGE_PYTHON_PROTOBUF # runtime
help
Standard Protobuf Reflection Service for gRPC.
https://grpc.io
comment "python-grpcio-reflection needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP

View File

@ -1,6 +1,10 @@
config BR2_PACKAGE_PYTHON_GRPCIO
bool "python-grpcio"
depends on BR2_INSTALL_LIBSTDCPP
help
HTTP/2-based RPC framework.
https://grpc.io
comment "python-grpcio needs a toolchain w/ C++"
depends on !BR2_INSTALL_LIBSTDCPP