Control: tag -1 + patch
On Wed, 17 Nov 2021 16:36:58 +0200 Matti Kurkela wrote:
As packaged, the SAP server component no longer has any actual
implementation to access a card reader: the upstream removed the last
actual implementation (for the long-dead STE U8500 platform) in
2017-07-13. Only the dummy implementation in sap-dummy.c is left:
https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/profiles/sap?id=3a140aa35b7b7dc1d7b031eec40590187f70a980
[...]> Starting bluetoothd with the option "--noplugin=sap" by default (as
already suggested) would be one way to do it. Another way would be to
patch the `bootstrap-configure` file in the source root directory, to
change `--enable-sap` to `--disable-sap`.
In its current form, the SIM Access Profile support of BlueZ is only
useful for developers, and even that requires modifying
/etc/dbus-1/system.d/bluetooth.conf before it will do anything other
than display an error message on Bluetooth service start-up. This is
true of both the version in bullseye and the current unstable version.
It seems since
<https://git.kernel.org/pub/scm/bluetooth/bluez.git/commit/?id=1d76b2ee1f098f144c006e83e9de04f91b1ec9b3>
"build: Add option to enable SAP profile"
2016-11-17 14:15:42 +0200
the SAP plugin is not built by default.
Ubuntu does not have --enable-sap in their
https://git.launchpad.net/ubuntu/+source/bluez/tree/debian/rules
for a long time, see
https://git.launchpad.net/ubuntu/+source/bluez/commit/debian/rules?id=3df71d750c11c4fffdaa59e56064ae3471e60b8c
I suggest to drop --enable-sap from debian/rules (see the attached
patch) to not confuse users troubleshooting their bluetooth issues.
As an alternative, src/bluetooth.service.in may be patched to disable
this plugin:
ExecStart=@pkglibexecdir@/bluetoothd --noplugin=sap
Do not build SIM Access Profile (sap) plugin
The sap plugin is not enabled by default,
unlikely useful nowadays, and causes a warning
on daemon startup due to missed D-Bus policy in
/etc/dbus-1/system.d/bluetooth.conf
See also: <https://github.com/bluez/bluez/issues/441>
(Closes: #803265)
--- bluez/debian/rules.orig 2024-01-03 09:39:10.381835631 +0000
+++ bluez/debian/rules 2024-01-03 09:41:34.515448901 +0000
@@ -19,7 +19,6 @@
--enable-library \
--enable-test \
--enable-nfc \
- --enable-sap \
--enable-monitor \
--enable-udev \
--enable-obex \