All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++
@ 2024-01-06 11:36 Fabrice Fontaine
  2024-01-06 21:29 ` James Hilliard
  2024-01-10 20:24 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2024-01-06 11:36 UTC (permalink / raw)
  To: buildroot; +Cc: James Hilliard, Fabrice Fontaine, Asaf Kahlon

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

/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>
---
 package/python-grpc-requests/Config.in     | 4 ++++
 package/python-grpcio-reflection/Config.in | 4 ++++
 package/python-grpcio/Config.in            | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/package/python-grpc-requests/Config.in b/package/python-grpc-requests/Config.in
index 3c266e5976..3a2740f0f7 100644
--- a/package/python-grpc-requests/Config.in
+++ b/package/python-grpc-requests/Config.in
@@ -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
diff --git a/package/python-grpcio-reflection/Config.in b/package/python-grpcio-reflection/Config.in
index d2ee039c5f..afe8988165 100644
--- a/package/python-grpcio-reflection/Config.in
+++ b/package/python-grpcio-reflection/Config.in
@@ -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
diff --git a/package/python-grpcio/Config.in b/package/python-grpcio/Config.in
index e63ac2ae34..5242eb461e 100644
--- a/package/python-grpcio/Config.in
+++ b/package/python-grpcio/Config.in
@@ -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
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++
  2024-01-06 11:36 [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++ Fabrice Fontaine
@ 2024-01-06 21:29 ` James Hilliard
  2024-01-10 20:24 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: James Hilliard @ 2024-01-06 21:29 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: Asaf Kahlon, buildroot

On Sat, Jan 6, 2024 at 4:36 AM Fabrice Fontaine
<fontaine.fabrice@gmail.com> wrote:
>
> Fix the following build failure raised since the addition of the package
> in commit ea45b95c0e54866134c63e88e60489a012b3d134:
>
> /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>
> ---
>  package/python-grpc-requests/Config.in     | 4 ++++
>  package/python-grpcio-reflection/Config.in | 4 ++++
>  package/python-grpcio/Config.in            | 4 ++++
>  3 files changed, 12 insertions(+)
>
> diff --git a/package/python-grpc-requests/Config.in b/package/python-grpc-requests/Config.in
> index 3c266e5976..3a2740f0f7 100644
> --- a/package/python-grpc-requests/Config.in
> +++ b/package/python-grpc-requests/Config.in
> @@ -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
> diff --git a/package/python-grpcio-reflection/Config.in b/package/python-grpcio-reflection/Config.in
> index d2ee039c5f..afe8988165 100644
> --- a/package/python-grpcio-reflection/Config.in
> +++ b/package/python-grpcio-reflection/Config.in
> @@ -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
> diff --git a/package/python-grpcio/Config.in b/package/python-grpcio/Config.in
> index e63ac2ae34..5242eb461e 100644
> --- a/package/python-grpcio/Config.in
> +++ b/package/python-grpcio/Config.in
> @@ -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
> --
> 2.43.0
>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++
  2024-01-06 11:36 [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++ Fabrice Fontaine
  2024-01-06 21:29 ` James Hilliard
@ 2024-01-10 20:24 ` Thomas Petazzoni via buildroot
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-01-10 20:24 UTC (permalink / raw)
  To: Fabrice Fontaine; +Cc: James Hilliard, Asaf Kahlon, buildroot

On Sat,  6 Jan 2024 12:36:27 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following build failure raised since the addition of the package
> in commit ea45b95c0e54866134c63e88e60489a012b3d134:
> 
> /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>
> ---
>  package/python-grpc-requests/Config.in     | 4 ++++
>  package/python-grpcio-reflection/Config.in | 4 ++++
>  package/python-grpcio/Config.in            | 4 ++++
>  3 files changed, 12 insertions(+)

Applied to master, thanks. (And thanks James for the review!)

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-01-10 20:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-06 11:36 [Buildroot] [PATCH 1/1] package/python-grpcio: needs C++ Fabrice Fontaine
2024-01-06 21:29 ` James Hilliard
2024-01-10 20:24 ` Thomas Petazzoni via buildroot

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.