package/python-bluezero: add recursive dependencies
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 21 May 2021 09:12:30 +0000 (11:12 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Fri, 21 May 2021 09:12:30 +0000 (11:12 +0200)
python-bluezero selects python-gobject but fails to include its arch and
toolchain dependencies. Add them now, as well as the corresponding
comment.

dbus-python also has some dependencies, but all of them are covered by
the python3 dependency, so don't bother with those.

Fixes: 8bdc5e7c4d975193b1e18999ed840507cea63bd6
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/python-bluezero/Config.in

index 3a9e5df6b797962088453d1d6aa8088007e12626..7126b3ca50c84a4f23e55fe3bb1a9958e0013c73 100644 (file)
@@ -1,5 +1,8 @@
 config BR2_PACKAGE_PYTHON_BLUEZERO
        bool "python-bluezero"
+       depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS # python-gobject -> gobject-introspection
+       depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # python-gobject -> gobject-introspection
+       depends on BR2_TOOLCHAIN_USES_GLIBC # python-gobject -> gobject-introspection
        depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_DBUS_PYTHON # runtime
        select BR2_PACKAGE_PYTHON_GOBJECT # runtime
@@ -7,3 +10,9 @@ config BR2_PACKAGE_PYTHON_BLUEZERO
          Python library for Bluetooth Low Energy (BLE) on Linux.
 
          https://github.com/ukBaz/python-bluezero
+
+comment "python-bluezero needs a glibc toolchain, gcc >= 4.9"
+       depends on BR2_PACKAGE_PYTHON3
+       depends on BR2_PACKAGE_GOBJECT_INTROSPECTION_ARCH_SUPPORTS
+       depends on !BR2_TOOLCHAIN_USES_GLIBC || \
+               !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9