* [scarthgap][PATCH 1/2] Revert "bluez5: remove configuration files from install task"
@ 2024-09-10 0:02 Peter Kjellerstedt
2024-09-10 0:02 ` [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf Peter Kjellerstedt
0 siblings, 1 reply; 4+ messages in thread
From: Peter Kjellerstedt @ 2024-09-10 0:02 UTC (permalink / raw)
To: openembedded-core
This reverts commit 49391fdcf71b32c5fd3c7b134c1d1c45cc1db388.
It motivated the removal of the installation of files in /etc/bluetooth
with that commit be0e796299b0 ("build: ship all config files with
--enable-datafiles") in bluez already does it. However, that commit is
part of bluez 5.73 while the recipe is only at 5.72.
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/recipes-connectivity/bluez5/bluez5.inc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index a31d7076ba..e10158a6e5 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -87,6 +87,14 @@ do_install:append() {
install -d ${D}${INIT_D_DIR}
install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth
+ install -d ${D}${sysconfdir}/bluetooth/
+ if [ -f ${S}/profiles/network/network.conf ]; then
+ install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
+ fi
+ if [ -f ${S}/profiles/input/input.conf ]; then
+ install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
+ fi
+
if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then
sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth
fi
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf
2024-09-10 0:02 [scarthgap][PATCH 1/2] Revert "bluez5: remove configuration files from install task" Peter Kjellerstedt
@ 2024-09-10 0:02 ` Peter Kjellerstedt
2024-09-10 8:17 ` Guðni Már Gilbert
0 siblings, 1 reply; 4+ messages in thread
From: Peter Kjellerstedt @ 2024-09-10 0:02 UTC (permalink / raw)
To: openembedded-core
This matches what is installed in /etc/bluetooth by bluez 5.73+.
Also remove the if-statements testing the existence of the other files
installed to /etc/bluetooth as they are not needed (the files have
existed since bluez 4.0).
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
---
meta/recipes-connectivity/bluez5/bluez5.inc | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc
index e10158a6e5..fd0f58f3fc 100644
--- a/meta/recipes-connectivity/bluez5/bluez5.inc
+++ b/meta/recipes-connectivity/bluez5/bluez5.inc
@@ -87,13 +87,10 @@ do_install:append() {
install -d ${D}${INIT_D_DIR}
install -m 0755 ${WORKDIR}/init ${D}${INIT_D_DIR}/bluetooth
- install -d ${D}${sysconfdir}/bluetooth/
- if [ -f ${S}/profiles/network/network.conf ]; then
- install -m 0644 ${S}/profiles/network/network.conf ${D}/${sysconfdir}/bluetooth/
- fi
- if [ -f ${S}/profiles/input/input.conf ]; then
- install -m 0644 ${S}/profiles/input/input.conf ${D}/${sysconfdir}/bluetooth/
- fi
+ install -d ${D}${sysconfdir}/bluetooth
+ install -m 0644 ${S}/src/main.conf ${D}${sysconfdir}/bluetooth
+ install -m 0644 ${S}/profiles/network/network.conf ${D}${sysconfdir}/bluetooth
+ install -m 0644 ${S}/profiles/input/input.conf ${D}${sysconfdir}/bluetooth
if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then
sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf
2024-09-10 0:02 ` [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf Peter Kjellerstedt
@ 2024-09-10 8:17 ` Guðni Már Gilbert
2024-10-23 22:31 ` [OE-core] " Peter Kjellerstedt
0 siblings, 1 reply; 4+ messages in thread
From: Guðni Már Gilbert @ 2024-09-10 8:17 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
Hi thanks for the patch. I have one concern. Normally one would install a custom main.conf and not the one from BlueZ. With these changes is that still possible with a bbappend? The file must be installed in the same folder, I worry if this creates a conflict when two recipes are installing main.conf.
Best regards,
Gudni
[-- Attachment #2: Type: text/html, Size: 378 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [OE-core] [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf
2024-09-10 8:17 ` Guðni Már Gilbert
@ 2024-10-23 22:31 ` Peter Kjellerstedt
0 siblings, 0 replies; 4+ messages in thread
From: Peter Kjellerstedt @ 2024-10-23 22:31 UTC (permalink / raw)
To: Guðni Már Gilbert, Steve Sakoman
Cc: openembedded-core@lists.openembedded.org
[-- Attachment #1: Type: text/plain, Size: 1155 bytes --]
This just installs a default main.conf file (which matches what 5.73+ does in Styhead and on master). If you have a bbappend that installs its own main.conf file, then that will overwrite the default file without any problems. On the other hand, if you have a separate recipe that installs its own version of main.conf, then there will now be a conflict.
Steve: I leave it to you to decide if you want to take this second patch, but the first patch in the series should be applied to restore the previous behavior.
//Peter
From: openembedded-core@lists.openembedded.org <openembedded-core@lists.openembedded.org> On Behalf Of Guðni Már Gilbert
Sent: den 10 september 2024 10:18
To: openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf
Hi thanks for the patch. I have one concern. Normally one would install a custom main.conf and not the one from BlueZ. With these changes is that still possible with a bbappend? The file must be installed in the same folder, I worry if this creates a conflict when two recipes are installing main.conf.
Best regards,
Gudni
[-- Attachment #2: Type: text/html, Size: 5351 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-23 22:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 0:02 [scarthgap][PATCH 1/2] Revert "bluez5: remove configuration files from install task" Peter Kjellerstedt
2024-09-10 0:02 ` [scarthgap][PATCH 2/2] bluez5: Install /etc/bluetooth/main.conf Peter Kjellerstedt
2024-09-10 8:17 ` Guðni Már Gilbert
2024-10-23 22:31 ` [OE-core] " Peter Kjellerstedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox