Hi everyone,

I am upgrading a project from Scarthgap to Styhead and am facing a problem 
again which I somewhat solved before though not properly. And now I want to fix 
it for good and hopefully have the solution upstream too.

The problem: I have a Python application which needs bluetooth.h header from 
BlueZ (https://github.com/bluez/bluez/tree/master/lib) at compile time. This is 
needed by Python's configure script 
(https://github.com/python/cpython/blob/6293d00e7201f3f28b1f4512e57dc4f03855cabd/configure#L10937)
 at such that the Python installation includes support for sockets like 
AF_BLUETOOTH and BTPROTO_RFCOMM.

Without this, a line like the following will simply fail: sock = 
socket.socket(socket.AF_BLUETOOTH, socket.SOCK_STREAM, socket.BTPROTO_RFCOMM)

On Scarthgap I could do this by adding bbappend for Python with: DEPENDS += 
"${@bb.utils.contains('DISTRO_FEATURES', 'bluetooth', 'bluez5', '', d)}". This 
however is prone to creating dependency loops.

To fix this properly, I need to somehow provide only the contents of this 
folder: https://github.com/bluez/bluez/tree/master/lib ( 
https://github.com/bluez/bluez/tree/master/lib ) to Python at build-time while 
not depending on building BlueZ package and its dependencies. To my knowledge 
there is no way to use the current BlueZ recipe to do this, though I may be 
wrong. I am curious how others would solve this problem. Is a new recipe the 
best way?
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#206905): 
https://lists.openembedded.org/g/openembedded-core/message/206905
Mute This Topic: https://lists.openembedded.org/mt/109481202/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

  • [OE-core] Question: Nee... Guðni Már Gilbert via lists . openembedded . org

Reply via email to