From: "Guðni Már Gilbert" <gudni.m.g@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 2/2] python3: add bluez5-native to DEPENDS conditionally
Date: Sat, 16 Nov 2024 02:55:58 -0800 [thread overview]
Message-ID: <921.1731754558740077385@lists.openembedded.org> (raw)
In-Reply-To: <18918.1731589075220106911@lists.openembedded.org>
[-- Attachment #1: Type: text/plain, Size: 1727 bytes --]
Hi all,
I've thought some more about this issue. I think it is best to remove these two patches I submitted from master-next if you haven't done so already. Using bluez5-native is wrong, I was misunderstanding the 'native' part a little bit.
Moving forward I think there are really only two possible ways to resolve this (both seem quite cumbersome):
1. Build BlueZ, and it dependencies by using a 'target' Python 3. Then after BlueZ is done building, Python should somehow be re-configured and re-built in order to compile with bluetooth support.
2. Create a new recipe called libbluetooth which modifies BlueZ such that only the lib folder is built. This recipe only packages the library. In this case, we need to create a custom Makefile and a target which only builds the bluetooth library. It should have minimal dependencies. The goal with this approach is to avoid depending on Python at all such that we can avoid building it until we have libbluetooth available for the target build.
In my opinion I prefer option 2. I am thinking if it is worth it to push a patch to upstream BlueZ to better support only building the library. I'll work on this weekend to build the library locally and see what dependencies it needs. If it doesn't depend on glib and dbus, then that's perfect.
For option 1, I am not sure how this can be done. I'm open to any ideas.
This could take me a few weeks to implement as I don't have much free time except on weekends. But I feel this is an important issue to resolve and the pybluez library is no longer being maintained. Having native bluetooth support in Python really helps when developing Bluetooth scripts for development purposes or even for released products.
[-- Attachment #2: Type: text/html, Size: 1930 bytes --]
next prev parent reply other threads:[~2024-11-16 10:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-11 17:34 [PATCH 0/2] Add support for Bluetooth sockets in Python Guðni Már Gilbert
2024-11-11 17:34 ` [PATCH 1/2] bluez5: add PACKAGECONFIG for library Guðni Már Gilbert
2024-11-11 17:34 ` [PATCH 2/2] python3: add bluez5-native to DEPENDS conditionally Guðni Már Gilbert
2024-11-12 9:56 ` [OE-core] " Alexander Kanavin
2024-11-14 7:05 ` Guðni Már Gilbert
2024-11-14 11:59 ` [OE-core] " Richard Purdie
2024-11-14 12:57 ` Guðni Már Gilbert
2024-11-16 10:55 ` Guðni Már Gilbert [this message]
2024-11-16 11:11 ` [OE-core] " Alexander Kanavin
2024-11-16 12:30 ` Guðni Már Gilbert
2024-11-16 13:24 ` Guðni Már Gilbert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=921.1731754558740077385@lists.openembedded.org \
--to=gudni.m.g@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.