diff options
Diffstat (limited to 'meta/recipes-connectivity/bluez5')
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5.inc | 33 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch | 56 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch | 147 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-mesh-Move-local-basename-into-utility-file.patch | 114 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch | 7 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch | 7 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch | 27 | ||||
-rw-r--r-- | meta/recipes-connectivity/bluez5/bluez5_5.78.bb (renamed from meta/recipes-connectivity/bluez5/bluez5_5.72.bb) | 2 |
8 files changed, 293 insertions, 100 deletions
diff --git a/meta/recipes-connectivity/bluez5/bluez5.inc b/meta/recipes-connectivity/bluez5/bluez5.inc index a1ffdeef8c..b3bcd278e6 100644 --- a/meta/recipes-connectivity/bluez5/bluez5.inc +++ b/meta/recipes-connectivity/bluez5/bluez5.inc | |||
@@ -18,6 +18,14 @@ PACKAGECONFIG ??= "obex-profiles \ | |||
18 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ | 18 | ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
19 | a2dp-profiles \ | 19 | a2dp-profiles \ |
20 | avrcp-profiles \ | 20 | avrcp-profiles \ |
21 | bap-profiles \ | ||
22 | bass-profiles \ | ||
23 | mcp-profiles \ | ||
24 | ccp-profiles \ | ||
25 | vcp-profiles \ | ||
26 | micp-profiles \ | ||
27 | csip-profiles \ | ||
28 | asha-profiles \ | ||
21 | network-profiles \ | 29 | network-profiles \ |
22 | hid-profiles \ | 30 | hid-profiles \ |
23 | hog-profiles \ | 31 | hog-profiles \ |
@@ -39,6 +47,14 @@ PACKAGECONFIG[network-profiles] = "--enable-network,--disable-network" | |||
39 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" | 47 | PACKAGECONFIG[hid-profiles] = "--enable-hid,--disable-hid" |
40 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" | 48 | PACKAGECONFIG[hog-profiles] = "--enable-hog,--disable-hog" |
41 | PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" | 49 | PACKAGECONFIG[health-profiles] = "--enable-health,--disable-health" |
50 | PACKAGECONFIG[bap-profiles] = "--enable-bap,--disable-bap" | ||
51 | PACKAGECONFIG[bass-profiles] = "--enable-bass,--disable-bass" | ||
52 | PACKAGECONFIG[mcp-profiles] = "--enable-mcp,--disable-mcp" | ||
53 | PACKAGECONFIG[ccp-profiles] = "--enable-ccp,--disable-ccp" | ||
54 | PACKAGECONFIG[vcp-profiles] = "--enable-vcp,--disable-vcp" | ||
55 | PACKAGECONFIG[micp-profiles] = "--enable-micp,--disable-micp" | ||
56 | PACKAGECONFIG[csip-profiles] = "--enable-csip,--disable-csip" | ||
57 | PACKAGECONFIG[asha-profiles] = "--enable-asha,--disable-asha" | ||
42 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" | 58 | PACKAGECONFIG[sixaxis] = "--enable-sixaxis,--disable-sixaxis" |
43 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" | 59 | PACKAGECONFIG[tools] = "--enable-tools,--disable-tools" |
44 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" | 60 | PACKAGECONFIG[threads] = "--enable-threads,--disable-threads" |
@@ -51,10 +67,10 @@ PACKAGECONFIG[manpages] = "--enable-manpages,--disable-manpages,python3-docutils | |||
51 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ | 67 | SRC_URI = "${KERNELORG_MIRROR}/linux/bluetooth/bluez-${PV}.tar.xz \ |
52 | file://init \ | 68 | file://init \ |
53 | file://run-ptest \ | 69 | file://run-ptest \ |
54 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', '', 'file://0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch', d)} \ | ||
55 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ | 70 | file://0001-tests-add-a-target-for-building-tests-without-runnin.patch \ |
56 | file://0001-test-gatt-Fix-hung-issue.patch \ | 71 | file://0001-test-gatt-Fix-hung-issue.patch \ |
57 | file://0004-src-shared-util.c-include-linux-limits.h.patch \ | 72 | file://0001-Provide-GNU-basename-compatible-implementation.patch \ |
73 | file://0001-mesh-Move-local-basename-into-utility-file.patch \ | ||
58 | " | 74 | " |
59 | S = "${WORKDIR}/bluez-${PV}" | 75 | S = "${WORKDIR}/bluez-${PV}" |
60 | 76 | ||
@@ -87,18 +103,19 @@ do_install:append() { | |||
87 | install -d ${D}${INIT_D_DIR} | 103 | install -d ${D}${INIT_D_DIR} |
88 | install -m 0755 ${UNPACKDIR}/init ${D}${INIT_D_DIR}/bluetooth | 104 | install -m 0755 ${UNPACKDIR}/init ${D}${INIT_D_DIR}/bluetooth |
89 | 105 | ||
90 | if [ -f ${D}/${sysconfdir}/init.d/bluetooth ]; then | 106 | if [ -f ${D}${sysconfdir}/init.d/bluetooth ]; then |
91 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}/${sysconfdir}/init.d/bluetooth | 107 | sed -i -e 's#@LIBEXECDIR@#${libexecdir}#g' ${D}${sysconfdir}/init.d/bluetooth |
92 | fi | 108 | fi |
93 | 109 | ||
94 | # Install desired tools that upstream leaves in build area | 110 | # Install desired tools that upstream leaves in build area |
95 | for f in ${NOINST_TOOLS} ; do | 111 | for f in ${NOINST_TOOLS} ; do |
96 | install -m 755 ${B}/$f ${D}/${bindir} | 112 | install -m 755 ${B}/$f ${D}${bindir} |
97 | done | 113 | done |
98 | 114 | ||
99 | # Patch python tools to use Python 3; they should be source compatible, but | 115 | # Fix the /etc/bluetooth directory permissions when systemd is disabled |
100 | # still refer to Python 2 in the shebang | 116 | if ${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'false', 'true', d)}; then |
101 | sed -i -e '1s,#!.*python.*,#!${bindir}/python3,' ${D}${libdir}/bluez/test/* | 117 | chmod 0755 ${D}${sysconfdir}/bluetooth |
118 | fi | ||
102 | } | 119 | } |
103 | 120 | ||
104 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" | 121 | PACKAGES =+ "${PN}-testtools ${PN}-obex ${PN}-noinst-tools" |
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch deleted file mode 100644 index 618ed734a9..0000000000 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch +++ /dev/null | |||
@@ -1,56 +0,0 @@ | |||
1 | From f74eb97c9fb3c0ee2895742e773ac6a3c41c999c Mon Sep 17 00:00:00 2001 | ||
2 | From: Giovanni Campagna <gcampagna-cNUdlRotFMnNLxjTenLetw@public.gmane.org> | ||
3 | Date: Sat, 12 Oct 2013 17:45:25 +0200 | ||
4 | Subject: [PATCH] Allow using obexd without systemd in the user session | ||
5 | |||
6 | Not all sessions run systemd --user (actually, the majority | ||
7 | doesn't), so the dbus daemon must be able to spawn obexd | ||
8 | directly, and to do so it needs the full path of the daemon. | ||
9 | |||
10 | Upstream-Status: Denied | ||
11 | |||
12 | Not accepted by upstream maintainer for being a distro specific | ||
13 | configuration. See thread: | ||
14 | |||
15 | http://thread.gmane.org/gmane.linux.bluez.kernel/38725/focus=38843 | ||
16 | |||
17 | Signed-off-by: Javier Viguera <javier.viguera@digi.com> | ||
18 | |||
19 | --- | ||
20 | Makefile.obexd | 4 ++-- | ||
21 | .../src/{org.bluez.obex.service => org.bluez.obex.service.in} | 2 +- | ||
22 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
23 | rename obexd/src/{org.bluez.obex.service => org.bluez.obex.service.in} (76%) | ||
24 | |||
25 | diff --git a/Makefile.obexd b/Makefile.obexd | ||
26 | index de59d29..73004a3 100644 | ||
27 | --- a/Makefile.obexd | ||
28 | +++ b/Makefile.obexd | ||
29 | @@ -1,12 +1,12 @@ | ||
30 | if SYSTEMD | ||
31 | systemduserunitdir = $(SYSTEMD_USERUNITDIR) | ||
32 | systemduserunit_DATA = obexd/src/obex.service | ||
33 | +endif | ||
34 | |||
35 | dbussessionbusdir = $(DBUS_SESSIONBUSDIR) | ||
36 | dbussessionbus_DATA = obexd/src/org.bluez.obex.service | ||
37 | -endif | ||
38 | |||
39 | -EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service | ||
40 | +EXTRA_DIST += obexd/src/obex.service.in obexd/src/org.bluez.obex.service.in | ||
41 | |||
42 | if OBEX | ||
43 | |||
44 | diff --git a/obexd/src/org.bluez.obex.service b/obexd/src/org.bluez.obex.service.in | ||
45 | similarity index 76% | ||
46 | rename from obexd/src/org.bluez.obex.service | ||
47 | rename to obexd/src/org.bluez.obex.service.in | ||
48 | index a538088..9c815f2 100644 | ||
49 | --- a/obexd/src/org.bluez.obex.service | ||
50 | +++ b/obexd/src/org.bluez.obex.service.in | ||
51 | @@ -1,4 +1,4 @@ | ||
52 | [D-BUS Service] | ||
53 | Name=org.bluez.obex | ||
54 | -Exec=/bin/false | ||
55 | +Exec=@libexecdir@/obexd | ||
56 | SystemdService=dbus-org.bluez.obex.service | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch new file mode 100644 index 0000000000..4f028e589b --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-Provide-GNU-basename-compatible-implementation.patch | |||
@@ -0,0 +1,147 @@ | |||
1 | From 44e24350aae771daa93e5a85378856f91358688f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 26 Aug 2024 09:55:03 -0700 | ||
4 | Subject: [PATCH] Provide GNU basename compatible implementation | ||
5 | |||
6 | Call to basename() relies on a GNU extension | ||
7 | to take a const char * vs a char *. Let's define | ||
8 | a trivial helper function to ensure compatibility | ||
9 | with musl. | ||
10 | |||
11 | Fixes Issue: https://github.com/bluez/bluez/issues/843 | ||
12 | |||
13 | Upstream-Status: Submitted [https://lore.kernel.org/linux-bluetooth/20240826173844.2918630-1-raj.khem@gmail.com/T/#u] | ||
14 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
15 | --- | ||
16 | configure.ac | 11 ++++++++++- | ||
17 | mesh/mesh-config-json.c | 4 +++- | ||
18 | mesh/missing.h | 21 +++++++++++++++++++++ | ||
19 | mesh/rpl.c | 1 + | ||
20 | tools/hex2hcd.c | 1 + | ||
21 | tools/missing.h | 21 +++++++++++++++++++++ | ||
22 | 6 files changed, 57 insertions(+), 2 deletions(-) | ||
23 | create mode 100644 mesh/missing.h | ||
24 | create mode 100644 tools/missing.h | ||
25 | |||
26 | diff --git a/configure.ac b/configure.ac | ||
27 | index a7fb51f..254f1a7 100644 | ||
28 | --- a/configure.ac | ||
29 | +++ b/configure.ac | ||
30 | @@ -70,7 +70,16 @@ AC_CHECK_LIB(pthread, pthread_create, dummy=yes, | ||
31 | AC_CHECK_LIB(dl, dlopen, dummy=yes, | ||
32 | AC_MSG_ERROR(dynamic linking loader is required)) | ||
33 | |||
34 | -AC_CHECK_HEADERS(linux/types.h linux/if_alg.h linux/uinput.h linux/uhid.h sys/random.h) | ||
35 | +AC_CHECK_HEADERS(string.h linux/types.h linux/if_alg.h linux/uinput.h linux/uhid.h sys/random.h) | ||
36 | + | ||
37 | +# basename may be only available in libgen.h with the POSIX behavior, | ||
38 | +# not desired here | ||
39 | +AC_CHECK_DECLS([basename], [], | ||
40 | + AC_MSG_WARN([GNU basename extension not found]), | ||
41 | + [#define _GNU_SOURCE 1 | ||
42 | + #include <string.h> | ||
43 | + ]) | ||
44 | + | ||
45 | |||
46 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.28) | ||
47 | |||
48 | diff --git a/mesh/mesh-config-json.c b/mesh/mesh-config-json.c | ||
49 | index c198627..e3b0a18 100644 | ||
50 | --- a/mesh/mesh-config-json.c | ||
51 | +++ b/mesh/mesh-config-json.c | ||
52 | @@ -28,6 +28,7 @@ | ||
53 | #include <ell/ell.h> | ||
54 | #include <json-c/json.h> | ||
55 | |||
56 | +#include "mesh/missing.h" | ||
57 | #include "mesh/mesh-defs.h" | ||
58 | #include "mesh/util.h" | ||
59 | #include "mesh/mesh-config.h" | ||
60 | @@ -2694,7 +2695,8 @@ bool mesh_config_load_nodes(const char *cfgdir_name, mesh_config_node_func_t cb, | ||
61 | |||
62 | void mesh_config_destroy_nvm(struct mesh_config *cfg) | ||
63 | { | ||
64 | - char *node_dir, *node_name; | ||
65 | + char *node_dir; | ||
66 | + const char* node_name; | ||
67 | char uuid[33]; | ||
68 | |||
69 | if (!cfg) | ||
70 | diff --git a/mesh/missing.h b/mesh/missing.h | ||
71 | new file mode 100644 | ||
72 | index 0000000..eaf3281 | ||
73 | --- /dev/null | ||
74 | +++ b/mesh/missing.h | ||
75 | @@ -0,0 +1,21 @@ | ||
76 | +// SPDX-License-Identifier: LGPL-2.1-or-later | ||
77 | +/* | ||
78 | + * | ||
79 | + * BlueZ - Bluetooth protocol stack for Linux | ||
80 | + * | ||
81 | + * Copyright (C) 2024 Khem Raj <raj.khem@gmail.com> | ||
82 | + * | ||
83 | + */ | ||
84 | + | ||
85 | +#ifdef HAVE_CONFIG_H | ||
86 | +#include <config.h> | ||
87 | +#endif | ||
88 | +#if !HAVE_DECL_BASENAME | ||
89 | +#include <string.h> | ||
90 | +static inline const char *basename(const char *path) | ||
91 | +{ | ||
92 | + const char *base = strrchr(path, '/'); | ||
93 | + | ||
94 | + return base ? base + 1 : path; | ||
95 | +} | ||
96 | +#endif | ||
97 | diff --git a/mesh/rpl.c b/mesh/rpl.c | ||
98 | index fb225dd..2fa17d7 100644 | ||
99 | --- a/mesh/rpl.c | ||
100 | +++ b/mesh/rpl.c | ||
101 | @@ -24,6 +24,7 @@ | ||
102 | |||
103 | #include <ell/ell.h> | ||
104 | |||
105 | +#include "mesh/missing.h" | ||
106 | #include "mesh/mesh-defs.h" | ||
107 | |||
108 | #include "mesh/node.h" | ||
109 | diff --git a/tools/hex2hcd.c b/tools/hex2hcd.c | ||
110 | index e6dca5a..452ab2b 100644 | ||
111 | --- a/tools/hex2hcd.c | ||
112 | +++ b/tools/hex2hcd.c | ||
113 | @@ -24,6 +24,7 @@ | ||
114 | #include <stdlib.h> | ||
115 | #include <stdbool.h> | ||
116 | #include <sys/stat.h> | ||
117 | +#include "tools/missing.h" | ||
118 | |||
119 | static ssize_t process_record(int fd, const char *line, uint16_t *upper_addr) | ||
120 | { | ||
121 | diff --git a/tools/missing.h b/tools/missing.h | ||
122 | new file mode 100644 | ||
123 | index 0000000..eaf3281 | ||
124 | --- /dev/null | ||
125 | +++ b/tools/missing.h | ||
126 | @@ -0,0 +1,21 @@ | ||
127 | +// SPDX-License-Identifier: LGPL-2.1-or-later | ||
128 | +/* | ||
129 | + * | ||
130 | + * BlueZ - Bluetooth protocol stack for Linux | ||
131 | + * | ||
132 | + * Copyright (C) 2024 Khem Raj <raj.khem@gmail.com> | ||
133 | + * | ||
134 | + */ | ||
135 | + | ||
136 | +#ifdef HAVE_CONFIG_H | ||
137 | +#include <config.h> | ||
138 | +#endif | ||
139 | +#if !HAVE_DECL_BASENAME | ||
140 | +#include <string.h> | ||
141 | +static inline const char *basename(const char *path) | ||
142 | +{ | ||
143 | + const char *base = strrchr(path, '/'); | ||
144 | + | ||
145 | + return base ? base + 1 : path; | ||
146 | +} | ||
147 | +#endif | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-mesh-Move-local-basename-into-utility-file.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-mesh-Move-local-basename-into-utility-file.patch new file mode 100644 index 0000000000..33c12fc3a8 --- /dev/null +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-mesh-Move-local-basename-into-utility-file.patch | |||
@@ -0,0 +1,114 @@ | |||
1 | From e64c2e70a74da452b0ee147350c4ce93e1db8d2f Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 16 Sep 2024 15:11:01 -0700 | ||
4 | Subject: [PATCH v2] mesh: Move local basename into utility file | ||
5 | |||
6 | Defining an override via a missing.h can prove difficult when a file | ||
7 | needs to use basename and dirname both the APIs and needs to include | ||
8 | libgen.h for them, in such situations there will be signature clash | ||
9 | for basename function. | ||
10 | |||
11 | Upstream-Status: Submitted [https://lore.kernel.org/linux-bluetooth/20240917031745.1641153-1-raj.khem@gmail.com/T/#u] | ||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | |||
14 | --- | ||
15 | v2: Remove reference to missing.h in Makefile.mesh | ||
16 | |||
17 | Makefile.mesh | 2 +- | ||
18 | mesh/mesh-config-json.c | 3 +-- | ||
19 | mesh/missing.h | 21 --------------------- | ||
20 | mesh/rpl.c | 3 +-- | ||
21 | mesh/util.c | 10 ++++++++++ | ||
22 | mesh/util.h | 5 +++++ | ||
23 | 6 files changed, 18 insertions(+), 26 deletions(-) | ||
24 | delete mode 100644 mesh/missing.h | ||
25 | |||
26 | --- a/mesh/mesh-config-json.c | ||
27 | +++ b/mesh/mesh-config-json.c | ||
28 | @@ -28,7 +28,6 @@ | ||
29 | #include <ell/ell.h> | ||
30 | #include <json-c/json.h> | ||
31 | |||
32 | -#include "mesh/missing.h" | ||
33 | #include "mesh/mesh-defs.h" | ||
34 | #include "mesh/util.h" | ||
35 | #include "mesh/mesh-config.h" | ||
36 | @@ -2708,7 +2707,7 @@ void mesh_config_destroy_nvm(struct mesh | ||
37 | if (!hex2str(cfg->uuid, 16, uuid, sizeof(uuid))) | ||
38 | return; | ||
39 | |||
40 | - node_name = basename(node_dir); | ||
41 | + node_name = mesh_basename(node_dir); | ||
42 | |||
43 | /* Make sure path name of node follows expected guidelines */ | ||
44 | if (strcmp(node_name, uuid)) | ||
45 | --- a/mesh/missing.h | ||
46 | +++ /dev/null | ||
47 | @@ -1,21 +0,0 @@ | ||
48 | -// SPDX-License-Identifier: LGPL-2.1-or-later | ||
49 | -/* | ||
50 | - * | ||
51 | - * BlueZ - Bluetooth protocol stack for Linux | ||
52 | - * | ||
53 | - * Copyright (C) 2024 Khem Raj <raj.khem@gmail.com> | ||
54 | - * | ||
55 | - */ | ||
56 | - | ||
57 | -#ifdef HAVE_CONFIG_H | ||
58 | -#include <config.h> | ||
59 | -#endif | ||
60 | -#if !HAVE_DECL_BASENAME | ||
61 | -#include <string.h> | ||
62 | -static inline const char *basename(const char *path) | ||
63 | -{ | ||
64 | - const char *base = strrchr(path, '/'); | ||
65 | - | ||
66 | - return base ? base + 1 : path; | ||
67 | -} | ||
68 | -#endif | ||
69 | --- a/mesh/rpl.c | ||
70 | +++ b/mesh/rpl.c | ||
71 | @@ -24,7 +24,6 @@ | ||
72 | |||
73 | #include <ell/ell.h> | ||
74 | |||
75 | -#include "mesh/missing.h" | ||
76 | #include "mesh/mesh-defs.h" | ||
77 | |||
78 | #include "mesh/node.h" | ||
79 | @@ -147,7 +146,7 @@ static void get_entries(const char *iv_p | ||
80 | if (!dir) | ||
81 | return; | ||
82 | |||
83 | - iv_txt = basename(iv_path); | ||
84 | + iv_txt = mesh_basename(iv_path); | ||
85 | if (sscanf(iv_txt, "%08x", &iv_index) != 1) { | ||
86 | closedir(dir); | ||
87 | return; | ||
88 | --- a/mesh/util.c | ||
89 | +++ b/mesh/util.c | ||
90 | @@ -161,3 +161,13 @@ void enable_debug(void) | ||
91 | debug_enabled = true; | ||
92 | l_debug_enable("*"); | ||
93 | } | ||
94 | + | ||
95 | +#if !HAVE_DECL_BASENAME | ||
96 | +#include <string.h> | ||
97 | +const char *mesh_basename(const char *path) | ||
98 | +{ | ||
99 | + const char *base = strrchr(path, '/'); | ||
100 | + | ||
101 | + return base ? base + 1 : path; | ||
102 | +} | ||
103 | +#endif | ||
104 | --- a/mesh/util.h | ||
105 | +++ b/mesh/util.h | ||
106 | @@ -16,3 +16,8 @@ void print_packet(const char *label, con | ||
107 | int create_dir(const char *dir_name); | ||
108 | void del_path(const char *path); | ||
109 | void enable_debug(void); | ||
110 | +#if !HAVE_DECL_BASENAME | ||
111 | +const char *mesh_basename(const char *path); | ||
112 | +#else | ||
113 | +#define mesh_basename basename | ||
114 | +#endif | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch index b1e93dbe19..1b1af4ba96 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-test-gatt-Fix-hung-issue.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From fb583a57f9f4ab956a09e9bb96d89aa13553bf21 Mon Sep 17 00:00:00 2001 | 1 | From b8371d1111e21a9b3285ec0864b78e98d7acf79f Mon Sep 17 00:00:00 2001 |
2 | From: Mingli Yu <Mingli.Yu@windriver.com> | 2 | From: Mingli Yu <Mingli.Yu@windriver.com> |
3 | Date: Fri, 24 Aug 2018 12:04:03 +0800 | 3 | Date: Fri, 24 Aug 2018 12:04:03 +0800 |
4 | Subject: [PATCH] test-gatt: Fix hung issue | 4 | Subject: [PATCH] test-gatt: Fix hung issue |
@@ -21,16 +21,15 @@ no action. | |||
21 | Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] | 21 | Upstream-Status: Submitted [https://marc.info/?l=linux-bluetooth&m=153508881804635&w=2] |
22 | 22 | ||
23 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> | 23 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> |
24 | |||
25 | --- | 24 | --- |
26 | unit/test-gatt.c | 2 +- | 25 | unit/test-gatt.c | 2 +- |
27 | 1 file changed, 1 insertion(+), 1 deletion(-) | 26 | 1 file changed, 1 insertion(+), 1 deletion(-) |
28 | 27 | ||
29 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c | 28 | diff --git a/unit/test-gatt.c b/unit/test-gatt.c |
30 | index 5e06d4e..4864d36 100644 | 29 | index 1613fbc..25dd614 100644 |
31 | --- a/unit/test-gatt.c | 30 | --- a/unit/test-gatt.c |
32 | +++ b/unit/test-gatt.c | 31 | +++ b/unit/test-gatt.c |
33 | @@ -4546,7 +4546,7 @@ int main(int argc, char *argv[]) | 32 | @@ -4547,7 +4547,7 @@ int main(int argc, char *argv[]) |
34 | test_server, service_db_1, NULL, | 33 | test_server, service_db_1, NULL, |
35 | raw_pdu(0x03, 0x00, 0x02), | 34 | raw_pdu(0x03, 0x00, 0x02), |
36 | raw_pdu(0xbf, 0x00), | 35 | raw_pdu(0xbf, 0x00), |
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch b/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch index 881494a354..b85c050ffc 100644 --- a/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch +++ b/meta/recipes-connectivity/bluez5/bluez5/0001-tests-add-a-target-for-building-tests-without-runnin.patch | |||
@@ -1,20 +1,19 @@ | |||
1 | From 738e73b386352fd90f1f26cc1ee75427cf4dc23b Mon Sep 17 00:00:00 2001 | 1 | From bbfecd4407b6425f409c4657ac96e67f0a995a12 Mon Sep 17 00:00:00 2001 |
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | 2 | From: Alexander Kanavin <alex.kanavin@gmail.com> |
3 | Date: Fri, 1 Apr 2016 17:07:34 +0300 | 3 | Date: Fri, 1 Apr 2016 17:07:34 +0300 |
4 | Subject: [PATCH] tests: add a target for building tests without running them | 4 | Subject: [PATCH] tests: add a target for building tests without running them |
5 | 5 | ||
6 | Upstream-Status: Inappropriate [oe specific] | 6 | Upstream-Status: Inappropriate [oe specific] |
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | 7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> |
8 | |||
9 | --- | 8 | --- |
10 | Makefile.am | 3 +++ | 9 | Makefile.am | 3 +++ |
11 | 1 file changed, 3 insertions(+) | 10 | 1 file changed, 3 insertions(+) |
12 | 11 | ||
13 | diff --git a/Makefile.am b/Makefile.am | 12 | diff --git a/Makefile.am b/Makefile.am |
14 | index e738eb3..dab17dd 100644 | 13 | index 68bf058..a376d10 100644 |
15 | --- a/Makefile.am | 14 | --- a/Makefile.am |
16 | +++ b/Makefile.am | 15 | +++ b/Makefile.am |
17 | @@ -710,6 +710,9 @@ endif | 16 | @@ -713,6 +713,9 @@ endif |
18 | TESTS = $(unit_tests) | 17 | TESTS = $(unit_tests) |
19 | AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 | 18 | AM_TESTS_ENVIRONMENT = MALLOC_CHECK_=3 MALLOC_PERTURB_=69 |
20 | 19 | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch b/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch deleted file mode 100644 index 516d859069..0000000000 --- a/meta/recipes-connectivity/bluez5/bluez5/0004-src-shared-util.c-include-linux-limits.h.patch +++ /dev/null | |||
@@ -1,27 +0,0 @@ | |||
1 | From b53df61b41088b68c127ac76cc71683ac3453b9d Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex@linutronix.de> | ||
3 | Date: Mon, 12 Dec 2022 13:10:19 +0100 | ||
4 | Subject: [PATCH] src/shared/util.c: include linux/limits.h | ||
5 | |||
6 | MAX_INPUT is defined in that file. This matters on non-glibc | ||
7 | systems such as those using musl. | ||
8 | |||
9 | Upstream-Status: Submitted [to linux-bluetooth@vger.kernel.org,luiz.von.dentz@intel.com,frederic.danis@collabora.com] | ||
10 | Signed-off-by: Alexander Kanavin <alex@linutronix.de> | ||
11 | |||
12 | --- | ||
13 | src/shared/util.c | 1 + | ||
14 | 1 file changed, 1 insertion(+) | ||
15 | |||
16 | diff --git a/src/shared/util.c b/src/shared/util.c | ||
17 | index c0c2c4a..036dc0d 100644 | ||
18 | --- a/src/shared/util.c | ||
19 | +++ b/src/shared/util.c | ||
20 | @@ -23,6 +23,7 @@ | ||
21 | #include <unistd.h> | ||
22 | #include <dirent.h> | ||
23 | #include <limits.h> | ||
24 | +#include <linux/limits.h> | ||
25 | #include <string.h> | ||
26 | |||
27 | #ifdef HAVE_SYS_RANDOM_H | ||
diff --git a/meta/recipes-connectivity/bluez5/bluez5_5.72.bb b/meta/recipes-connectivity/bluez5/bluez5_5.78.bb index 9fda960ea7..23d1ad69d8 100644 --- a/meta/recipes-connectivity/bluez5/bluez5_5.72.bb +++ b/meta/recipes-connectivity/bluez5/bluez5_5.78.bb | |||
@@ -1,6 +1,6 @@ | |||
1 | require bluez5.inc | 1 | require bluez5.inc |
2 | 2 | ||
3 | SRC_URI[sha256sum] = "499d7fa345a996c1bb650f5c6749e1d929111fa6ece0be0e98687fee6124536e" | 3 | SRC_URI[sha256sum] = "830fed1915c5d375b8de0f5e6f45fcdea0dcc5ff5ffb3d31db6ed0f00d73c5e3" |
4 | 4 | ||
5 | CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" | 5 | CVE_STATUS[CVE-2020-24490] = "cpe-incorrect: This issue has kernel fixes rather than bluez fixes" |
6 | 6 | ||