Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

95.3. bluez-5.87

Bluetooth protocol stack for Linux

5.87-1 · GPL-2.0-or-later AND LGPL-2.1-or-later · 0.9 SBU · 6.8 MiB, 130 files · 41_system, 47 of 1047 · ports/core/hardware/bluez

Homepage: https://github.com/bluez/bluez

BlueZ is the Linux Bluetooth stack in user space: bluetoothd, the system daemon that manages adapters and devices over D-Bus; obexd, the file-transfer and phonebook service on the session bus; bluetoothctl and the other tools; and libbluetooth. pipewire’s Bluetooth audio, networkmanager’s Bluetooth networking and the other ports that name it talk to the daemon or link the library. fs/etc/init.d/60_bluetooth.sh starts bluetoothd at boot.

Depends on: dbus, glib, python3-docutils, eudev, readline, libical, alsa-lib, cups.

Required by (11): bluedevil, bluez-qt, brltty, gpsd, kodi, libpcap, libsigrok, networkmanager, pipewire, qt6-qtconnectivity, supertuxkart.

Sources: bluez-5.87.tar.xz (2.2 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install bluez'

build.sh:

./configure --prefix=/usr \
            --sysconfdir=/etc \
            --libexecdir=/usr/lib \
            --localstatedir=/var \
            --enable-library \
            --disable-systemd \
            --enable-obex \
            --enable-cups \
            --enable-midi \
            --enable-deprecated \
            --enable-sixaxis \
            --enable-hid2hci \
            --disable-mesh \
            --disable-btpclient \
            --disable-external-ell
make
make DESTDIR=$PKG install

install -d $PKG/usr/sbin
ln -svf ../lib/bluetooth/bluetoothd $PKG/usr/sbin/bluetoothd

Programs: bluemoon, bluetoothctl, bluetoothd, btattach, btmon, ciptool, hciattach, hciconfig, hcitool, hex2hcd, isotest, l2ping, l2test, mpris-proxy, rctest, rfcomm, sdptool.

Libraries: libbluetooth.so.

Directories: /etc/bluetooth, /usr/include/bluetooth, /usr/lib/bluetooth, /usr/share/licenses/bluez, /var/lib/bluetooth.