bluez5: upgrade 5.72 -> 5.77
PATCH v2 1/1 bluez5: upgrade 5.72 -> 5.77
From: gudnimg <[email protected]>
Changelog:
* https://github.com/bluez/bluez/releases/tag/5.77
* https://github.com/bluez/bluez/releases/tag/5.76
* https://github.com/bluez/bluez/releases/tag/5.75
* https://github.com/bluez/bluez/releases/tag/5.74
* https://github.com/bluez/bluez/releases/tag/5.73
Changes relevant to the build:
* One patch file is dropped.
* /etc/bluetooth is now installed with 555 permission bits when systemd is not enabled. The do_install function was edited to change it back to
755. This was causing test failure when testing SDK packaging
* Added a few missing PACKAGECONFIGs which are enabled by default.
- asha-profiles: new in BlueZ 5.77
- ccp-profiles: new in BlueZ 5.73
- micp-profiles: new in BlueZ 5.70
- csip-profiles: new in BlueZ 5.67
- bass-profiles: new in BlueZ 5.67
- vcp-profiles: new in BlueZ 5.66
- mcp-profiles: new in BlueZ 5.66
- bap-profiles: new in BlueZ 5.66
---
meta/recipes-connectivity/bluez5/bluez5.inc | 22 +++++++-
...d-without-systemd-in-the-user-sessio.patch | 56 -------------------
.../0001-test-gatt-Fix-hung-issue.patch | 7 +--
...et-for-building-tests-without-runnin.patch | 7 +--
...shared-util.c-include-linux-limits.h.patch | 5 +-
.../bluez5/{bluez5_5.72.bb => bluez5_5.77.bb} | 2 +-
6 files changed, 30 insertions(+), 69 deletions(-)
delete mode 100644 meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
rename meta/recipes-connectivity/bluez5/{bluez5_5.72.bb => bluez5_5.77.bb} (94%)meta/recipes-connectivity/bluez5/bluez5.inc +21 -1
@@ -18,6 +18,14 @@ PACKAGECONFIG ??= "obex-profiles \ ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ a2dp-profiles \ avrcp-profiles \ + bap-profiles \ + bass-profiles \ + mcp-profiles \ + ccp-profiles \ + vcp-profiles \ + micp-profiles \ + csip-profiles \ + asha-profiles \ network-profiles \ hid-profiles \ hog-profiles \
@@ -39,6 +47,14 @@ PACKAGECONFIG[network-profiles] = "--enable-network,--disable-network" PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" +PACKAGECONFIG[bap-profiles] = "--enable-bap,--disable-bap" +PACKAGECONFIG[bass-profiles] = "--enable-bass,--disable-bass" +PACKAGECONFIG[mcp-profiles] = "--enable-mcp,--disable-mcp" +PACKAGECONFIG[ccp-profiles] = "--enable-ccp,--disable-ccp" +PACKAGECONFIG[vcp-profiles] = "--enable-vcp,--disable-vcp" +PACKAGECONFIG[micp-profiles] = "--enable-micp,--disable-micp" +PACKAGECONFIG[csip-profiles] = "--enable-csip,--disable-csip" +PACKAGECONFIG[asha-profiles] = "--enable-asha,--disable-asha" PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" PACKAGECONFIG[threads] = "--enable-threads,--disable-threads"
@@ -51,7 +67,6 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ file://init \ file://run-ptest \ - ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ file://0001-test-gatt-Fix-hung-issue.patch \ file://0004-src-shared-util.c-include-linux-limits.h.patch \
@@ -99,6 +114,11 @@ do_install:append() { # Patch python tools to use Python 3; they should be source compatible, but # still refer to Python 2 in the shebang sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/* + + # Fix the /etc/bluetooth directory permissions when systemd is disabled + if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then + chmod 0755 ${D}${sysconfdir}/bluetooth + fi } PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools"
meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch deleted +0 -56
56 lines not on this page · raw message
meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch +3 -4
@@ -1,4 +1,4 @@ -From fb583a57f9f4ab956a09e9bb96d89aa13553bf21 Mon Sep 17 00:00:00 2001 +From eeb62ab04b3789a27074236cd0bed7cc64759f4d Mon Sep 17 00:00:00 2001 From: Mingli Yu <[email protected]> Date: Fri, 24 Aug 2018 12:04:03 +0800 Subject: [PATCH] test-gatt: Fix hung issue
@@ -21,16 +21,15 @@ no action. Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] Signed-off-by: Mingli Yu <[email protected]> - --- unit/test-gatt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit/test-gatt.c b/unit/test-gatt.c -index 5e06d4e..4864d36 100644 +index 1613fbc..25dd614 100644 --- a/unit/test-gatt.c +++ b/unit/test-gatt.c -@@ -4546,7 +4546,7 @@ int main(int argc, char *argv[]) +@@ -4547,7 +4547,7 @@ int main(int argc, char *argv[]) test_server, service_db_1, NULL, raw_pdu(0x03, 0x00, 0x02), raw_pdu(0xbf, 0x00),
meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch +3 -4
@@ -1,20 +1,19 @@ -From 738e73b386352fd90f1f26cc1ee75427cf4dc23b Mon Sep 17 00:00:00 2001 +From c06fecbb009f4c42f01d86383d4571c96ba872f0 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Fri, 1 Apr 2016 17:07:34 +0300 Subject: [PATCH] tests: add a target for building tests without running them Upstream-Status: Inappropriate [oe specific] Signed-off-by: Alexander Kanavin <[email protected]> - --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am -index e738eb3..dab17dd 100644 +index 0ae7211..c8bcaca 100644 --- a/Makefile.am +++ b/Makefile.am -@@ -710,6 +710,9 @@ endif +@@ -713,6 +713,9 @@ endif TESTS = $(unit_tests) AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69
meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch +2 -3
@@ -1,4 +1,4 @@ -From b53df61b41088b68c127ac76cc71683ac3453b9d Mon Sep 17 00:00:00 2001 +From 705235d674f574bee08ea3138208938a086e1b53 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin <[email protected]> Date: Mon, 12 Dec 2022 13:10:19 +0100 Subject: [PATCH] src/shared/util.c: include linux/limits.h
@@ -8,13 +8,12 @@ systems such as those using musl. Upstream-Status: Submitted [to [email protected],[email protected],[email protected]] Signed-off-by: Alexander Kanavin <[email protected]> - --- src/shared/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shared/util.c b/src/shared/util.c -index c0c2c4a..036dc0d 100644 +index 6e7634a..45fcd6a 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -23,6 +23,7 @@
meta/recipes-connectivity/bluez5/bluez5_5.77.bb renamed from meta/recipes-connectivity/bluez5/bluez5_5.72.bb +1 -1
@@ -1,6 +1,6 @@ require bluez5.inc -SRC_URI[sha256sum] = "499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e" +SRC_URI[sha256sum] = "5d032fdc1d4a085813554f57591e2e1fb0ceb2b3616ee56f689bc00e1d150812" CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes"
Signature · 1 line
2.34.1
Changes from v1 patch is I added a proposed fix for the /etc/bluetooth directory permission issue. And also added various new PACKAGECONFIGs which are enabled by default (doesn't hurt to give others the option to disable them)
I was able to upgrade BlueZ 5.72 to 5.77 on Scarthgap too and do some runtime testing. Didn't encounter any issues so far.
Quoted 6 lines · Guðni Már Gilbert via lists.openembedded.org
+ # Fix the
/etc/bluetoothdirectory permissions when systemd is disabled
+ if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then
+ chmod 0755 ${D}${sysconfdir}/bluetooth
+ fi
This feels too fragile for my liking. Can we just fix the permissions always (with a comment explaining why) instead of looking for systemd? If upstream change their behaviour then it’s possible we regress.
Cheers,
Ross
Quoted 4 lines · Ross Burton
This feels too fragile for my liking. Can we just fix the permissions always (with a comment explaining why) instead of looking for systemd? If upstream change their behaviour then it’s possible we regress.
I don't see any harm/risk in making this change always apply in do_install function, even when systemd is enabled.