bluez: update to 5.87

Upstream dropped the standalone hcidump tool, whose functionality has
lived inside btmon for years, so stop installing it; bluez-utils-btmon
covers it. Refresh 211-shared-gatt-helpers-Ignore-invalid-characteristic-
entries.patch, which otherwise applies with an offset of twelve lines,
and give 201-readline.patch and 202-fix-endianness.patch the git headers
the formality check asks for.

Signed-off-by: Alexandru Ardelean <alex@shruggie.ro>
This commit is contained in:
Alexandru Ardelean authored and Alexandru Ardelean committed 2026-10-12 12:44:19 +03:00
1 parent 7d904ec476
commit 1416520e8b
5 files changed
+44 -23

No files matched your search

+3 -4
View File
@@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=bluez
PKG_VERSION:=5.86
PKG_RELEASE:=2
PKG_VERSION:=5.87
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
PKG_HASH:=99f144540c6070591e4c53bcb977eb42664c62b7b36cb35a29cf72ded339621d
PKG_HASH:=26bdcf2cebd7310c6f598850606b037ef0c515fe6608ebc54d22c50c4c32b35f
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
@@ -121,7 +121,6 @@ define Package/bluez-utils/install
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ciptool $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hciattach $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hciconfig $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hcidump $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hcitool $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/hex2hcd $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/l2ping $(1)/usr/bin/
+24 -13
View File
@@ -1,3 +1,14 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nicolas Thill <nico@openwrt.org>
Date: Fri, 9 Jan 2015 21:04:35 +0100
Subject: [PATCH] Makefile.tools: link the readline users against ncurses
The tools that link -lreadline need -lncurses spelled out next to it to
link on OpenWrt.
---
Makefile.tools | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
--- a/Makefile.tools
+++ b/Makefile.tools
@@ -19,7 +19,7 @@ client_bluetoothctl_SOURCES = client/mai
@@ -9,16 +20,16 @@
endif
if ZSH_COMPLETIONS
@@ -385,7 +385,7 @@ tools_meshctl_SOURCES = tools/meshctl.c
@@ -388,7 +388,7 @@ tools_meshctl_SOURCES = tools/meshctl.c
tools/mesh-gatt/onoff-model.c
tools_meshctl_LDADD = gdbus/libgdbus-internal.la src/libshared-glib.la \
lib/libbluetooth-internal.la \
- $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline
+ $(GLIB_LIBS) $(DBUS_LIBS) -ljson-c -lreadline -lncurses
EXTRA_DIST += tools/mesh-gatt/local_node.json tools/mesh-gatt/prov_db.json
endif
@@ -404,7 +404,7 @@ tools_mesh_cfgclient_SOURCES = tools/mes
bin_PROGRAMS += tools/mesh-cfgclient
@@ -405,7 +405,7 @@ tools_mesh_cfgclient_SOURCES = tools/mes
mesh/crypto.h mesh/crypto.c
tools_mesh_cfgclient_LDADD = lib/libbluetooth-internal.la src/libshared-ell.la \
@@ -27,7 +38,7 @@
bin_PROGRAMS += tools/mesh-cfgtest
@@ -512,7 +512,7 @@ noinst_PROGRAMS += tools/btmgmt tools/ob
@@ -487,7 +487,7 @@ noinst_PROGRAMS += tools/btmgmt tools/ob
tools_obex_client_tool_SOURCES = $(gobex_sources) $(btio_sources) \
tools/obex-client-tool.c
tools_obex_client_tool_LDADD = lib/libbluetooth-internal.la \
@@ -36,7 +47,7 @@
tools_obex_server_tool_SOURCES = $(gobex_sources) $(btio_sources) \
tools/obex-server-tool.c
@@ -523,16 +523,16 @@ tools_bluetooth_player_SOURCES = tools/b
@@ -498,16 +498,16 @@ tools_bluetooth_player_SOURCES = tools/b
client/player.c
tools_bluetooth_player_LDADD = gdbus/libgdbus-internal.la \
src/libshared-glib.la \
@@ -50,13 +61,13 @@
tools_btmgmt_SOURCES = tools/btmgmt.c src/uuid-helper.c client/display.c \
client/mgmt.c
tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-mainloop.la \
- -lreadline
+ -lreadline -lncurses
tools_btmgmt_LDADD = lib/libbluetooth-internal.la src/libshared-glib.la \
- $(GLIB_LIBS) -lreadline
+ $(GLIB_LIBS) -lreadline -lncurses
if DEPRECATED
noinst_PROGRAMS += attrib/gatttool
@@ -542,7 +542,7 @@ attrib_gatttool_SOURCES = attrib/gatttoo
@@ -517,7 +517,7 @@ attrib_gatttool_SOURCES = attrib/gatttoo
attrib/utils.c src/log.c client/display.c \
client/display.h
attrib_gatttool_LDADD = lib/libbluetooth-internal.la \
@@ -65,10 +76,10 @@
endif
endif
@@ -592,5 +592,5 @@ tools/btpclient.$(OBJEXT): src/libshared
@@ -573,5 +573,5 @@ client/btpclient/btpclient.$(OBJEXT): sr
tools_btpclientctl_SOURCES = tools/btpclientctl.c client/display.c
tools_btpclientctl_LDADD = src/libshared-mainloop.la src/libshared-glib.la \
client_btpclient_btpclientctl_SOURCES = client/btpclient/btpclientctl.c client/display.c
client_btpclient_btpclientctl_LDADD = src/libshared-mainloop.la src/libshared-glib.la \
- lib/libbluetooth-internal.la -lreadline
+ lib/libbluetooth-internal.la -lreadline -lncurses
endif
+13 -2
View File
@@ -1,9 +1,20 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Daniel Engberg <daniel.engberg.lists@pyret.net>
Date: Mon, 30 Apr 2018 08:11:13 +0200
Subject: [PATCH] shared/util: include endian.h
util.h uses the __BYTE_ORDER macros, which musl declares in endian.h
instead of pulling them in through sys/types.h.
---
src/shared/util.h | 1 +
1 file changed, 1 insertion(+)
--- a/src/shared/util.h
+++ b/src/shared/util.h
@@ -18,6 +18,7 @@
#include <string.h>
@@ -20,6 +20,7 @@
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
+#include <endian.h>
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
@@ -34,7 +34,7 @@ This commit prevents the call to btd_adv_manager_refresh for non-LE devices.
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -661,7 +661,9 @@ static void settings_changed(struct btd_
@@ -660,7 +660,9 @@ static void settings_changed(struct btd_
*/
if (!adapter->discovery_discoverable)
store_adapter_info(adapter);
@@ -20,7 +20,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
--- a/src/shared/gatt-helpers.c
+++ b/src/shared/gatt-helpers.c
@@ -1158,6 +1158,26 @@ struct bt_gatt_request *bt_gatt_discover
@@ -1170,6 +1170,26 @@ struct bt_gatt_request *bt_gatt_discover
return bt_gatt_request_ref(op);
}
@@ -47,7 +47,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
static void discover_chrcs_cb(uint8_t opcode, const void *pdu,
uint16_t length, void *user_data)
{
@@ -1166,6 +1186,7 @@ static void discover_chrcs_cb(uint8_t op
@@ -1178,6 +1198,7 @@ static void discover_chrcs_cb(uint8_t op
uint8_t att_ecode = 0;
size_t data_length;
uint16_t last_handle;
@@ -55,7 +55,7 @@ Signed-off-by: Daniel Golle <daniel@makrotopia.org>
if (opcode == BT_ATT_OP_ERROR_RSP) {
success = false;
@@ -1194,21 +1215,24 @@ static void discover_chrcs_cb(uint8_t op
@@ -1206,21 +1227,24 @@ static void discover_chrcs_cb(uint8_t op
goto done;
}