Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] socket.AF_BLUETOOTH in python3 and circular dependencies
@ 2018-08-30 19:21 Grzegorz Blach
  2018-08-31 22:10 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Grzegorz Blach @ 2018-08-30 19:21 UTC (permalink / raw)
  To: buildroot

Hi,

I need support for socket.AF_BLUETOOTH in python3. Python3 is compiled 
with bluetooth support when bluez5_utils is installed on target, so I 
created a simple patch:

--- a/package/python3/python3.mk
+++ b/package/python3/python3.mk
@@ -256,6 +256,11 @@ endif
  # Provided to other packages
  PYTHON3_PATH = $(TARGET_DIR)/usr/lib/python$(PYTHON3_VERSION_MAJOR)/

+# Support for socket.AF_BLUETOOTH
+ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y)
+    PYTHON3_DEPENDENCIES += bluez5_utils
+endif
+

But unfortunately this patch makes a circular dependencies:

$ make python3-graph-depends
Recursion detected for  : bluez5_utils
which is a dependency of: python3
which is a dependency of: util-linux
which is a dependency of: libglib2
which is a dependency of: bluez5_utils

To temporary solve this problem I must python support in util-linux package:

--- a/package/util-linux/util-linux.mk
+++ b/package/util-linux/util-linux.mk
@@ -203,9 +203,9 @@ HOST_UTIL_LINUX_CONF_OPTS += --disable-all-programs
  endif

  # Install libmount Python bindings
-ifeq ($(BR2_PACKAGE_PYTHON)$(BR2_PACKAGE_PYTHON3),y)
+ifeq ($(BR2_PACKAGE_PYTHON),y)
  UTIL_LINUX_CONF_OPTS += --with-python
-UTIL_LINUX_DEPENDENCIES += $(if $(BR2_PACKAGE_PYTHON),python,python3)
+UTIL_LINUX_DEPENDENCIES += python
  ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),y)
  UTIL_LINUX_CONF_OPTS += --enable-pylibmount
  else


Can someone point me how to fix circular dependencies without disabling 
python support in util-linux?

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

end of thread, other threads:[~2018-09-01  7:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-30 19:21 [Buildroot] socket.AF_BLUETOOTH in python3 and circular dependencies Grzegorz Blach
2018-08-31 22:10 ` Thomas Petazzoni
2018-09-01  7:05   ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox