Skip to contentSkip to conversation

package/gnuradio: fix dependencies of BR2_PACKAGE_GNURADIO_PYTHON

PATCH Applied Thomas Petazzoni via buildroot 1 participant 5 messages Sep 15 – Sep 25

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/gnuradio: fix dependencies of BR2_PACKAGE_GNURADIO_PYTHON

BR2_PACKAGE_GNURADIO_PYTHON selects BR2_PACKAGE_PYTHON_NUMPY, so it should inherit its dependencies, but BR2_TOOLCHAIN_GCC_AT_LEAST_9 was forgotten in commit 8b3993178d0ffae312d7dd0df70d30d1d3d88873, when python-numpy got this gcc >= 9 dependency added.

Note that the existing BR2_HOST_GCC_AT_LEAST_9 dependency is correct:
it is there because gnuradio needs host-python-numpy at build time.

Fixes 8b3993178d0ffae312d7dd0df70d30d1d3d88873 ("package/python-numpy: needs gcc >= 9")
---
 package/gnuradio/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/gnuradio/Config.in +3 -2
index 98d87aed56..e87275de4d 100644
@@ -80,6 +80,7 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
 	depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
 	select BR2_PACKAGE_BOOST_PYTHON
 	select BR2_PACKAGE_PYTHON_NUMPY # runtime
 	select BR2_PACKAGE_PYTHON_PYBIND
@@ -87,8 +88,8 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	help
 	  Enable python component
 
-comment "python support needs a glibc or musl toolchain w/ host gcc >= 9"
-	depends on !BR2_HOST_GCC_AT_LEAST_9 || \
+comment "python support needs a glibc or musl toolchain w/ gcc >= 9, host gcc >= 9"
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || !BR2_HOST_GCC_AT_LEAST_9 || \
 		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
 
 config BR2_PACKAGE_GNURADIO_SOAPY
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/gnuradio: show Config.in comment only when needed

The comment about the toolchain requirements to have Python support in gnuradio is always displayed, even if architecture requirements are not met and if Python is not enabled. For the latter: the option BR2_PACKAGE_GNURADIO_PYTHON also depends on python, so it makes sense for the Config.in comment to also depend on it.

Fixes 7a546b87d5b8781b03f3ba5d311d61f4169ee899 ("package/python-numpy: add reverse dependency on packages using python-numpy")
---
 package/gnuradio/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/gnuradio/Config.in +2 -0
index e87275de4d..0e8dc66dc4 100644
@@ -89,6 +89,8 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	  Enable python component
 
 comment "python support needs a glibc or musl toolchain w/ gcc >= 9, host gcc >= 9"
+	depends on BR2_PACKAGE_PYTHON3
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || !BR2_HOST_GCC_AT_LEAST_9 || \
 		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
 
Signature · 6 lines
2.55.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/gnuradio: show Config.in comment only when needed

In reply of:

Quoted 8 lines

The comment about the toolchain requirements to have Python support in gnuradio is always displayed, even if architecture requirements are not met and if Python is not enabled. For the latter: the option BR2_PACKAGE_GNURADIO_PYTHON also depends on python, so it makes sense for the Config.in comment to also depend on it.

Fixes 7a546b87d5b8781b03f3ba5d311d61f4169ee899 ("package/python-numpy: add reverse dependency on packages using python-numpy")

Applied to 2025.02.x, 2026.08.x. Thanks

Quoted 9 lines
---
 package/gnuradio/Config.in | 2 ++
 1 file changed, 2 insertions(+)
package/gnuradio/Config.in +0 -0
index e87275de4d..0e8dc66dc4 100644

package/gnuradio/Config.in config BR2_PACKAGE_GNURADIO_PYTHON · line 96

Quoted 8 lines
package/gnuradio/Config.in +2 -0
@@ -89,6 +89,8 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	  Enable python component
 
 comment "python support needs a glibc or musl toolchain w/ gcc >= 9, host gcc >= 9"
+	depends on BR2_PACKAGE_PYTHON3
+	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || !BR2_HOST_GCC_AT_LEAST_9 || \
 		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
 

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Thomas Petazzoni via buildroot
Quoted 10 lines · Thomas Petazzoni via buildroot

BR2_PACKAGE_GNURADIO_PYTHON selects BR2_PACKAGE_PYTHON_NUMPY, so it should inherit its dependencies, but BR2_TOOLCHAIN_GCC_AT_LEAST_9 was forgotten in commit 8b3993178d0ffae312d7dd0df70d30d1d3d88873, when python-numpy got this gcc >= 9 dependency added.

Note that the existing BR2_HOST_GCC_AT_LEAST_9 dependency is correct:
it is there because gnuradio needs host-python-numpy at build time.

Fixes 8b3993178d0ffae312d7dd0df70d30d1d3d88873 ("package/python-numpy: needs gcc >= 9")

Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Thomas Petazzoni via buildroot

In reply of:

Quoted 10 lines

BR2_PACKAGE_GNURADIO_PYTHON selects BR2_PACKAGE_PYTHON_NUMPY, so it should inherit its dependencies, but BR2_TOOLCHAIN_GCC_AT_LEAST_9 was forgotten in commit 8b3993178d0ffae312d7dd0df70d30d1d3d88873, when python-numpy got this gcc >= 9 dependency added.

Note that the existing BR2_HOST_GCC_AT_LEAST_9 dependency is correct:
it is there because gnuradio needs host-python-numpy at build time.

Fixes 8b3993178d0ffae312d7dd0df70d30d1d3d88873 ("package/python-numpy: needs gcc >= 9")

Applied to 2025.02.x, 2026.08.x. Thanks

Quoted 17 lines
---
 package/gnuradio/Config.in | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
package/gnuradio/Config.in +1 -0
index 98d87aed56..e87275de4d 100644
@@ -80,6 +80,7 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	depends on BR2_PACKAGE_PYTHON_NUMPY_ARCH_SUPPORTS
 	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # python-numpy
 	depends on BR2_HOST_GCC_AT_LEAST_9 # host-python-numpy
+	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_9 # python-numpy
 	select BR2_PACKAGE_BOOST_PYTHON
 	select BR2_PACKAGE_PYTHON_NUMPY # runtime
 	select BR2_PACKAGE_PYTHON_PYBIND

package/gnuradio/Config.in config BR2_PACKAGE_GNURADIO_PYTHON · line 95

Quoted 10 lines
package/gnuradio/Config.in +2 -2
@@ -87,8 +88,8 @@ config BR2_PACKAGE_GNURADIO_PYTHON
 	help
 	  Enable python component
 
-comment "python support needs a glibc or musl toolchain w/ host gcc >= 9"
-	depends on !BR2_HOST_GCC_AT_LEAST_9 || \
+comment "python support needs a glibc or musl toolchain w/ gcc >= 9, host gcc >= 9"
+	depends on !BR2_TOOLCHAIN_GCC_AT_LEAST_9 || !BR2_HOST_GCC_AT_LEAST_9 || \
 		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
 
 config BR2_PACKAGE_GNURADIO_SOAPY

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot