obexd: Remove --enable-threads option
PATCH 1/1 obexd: Remove --enable-threads option
Threading support is always enabled in dbus since version 1.8 released in 2014:
• libdbus always behaves as if dbus_threads_init_default() had been called (thread-safety by default)
so remove the obsolete option.
Note that we also require glib 2.36, which is newer than the version of glib with GThread support built-in:
[Since 2.32]
This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.
--- configure.ac | 8 -------- obexd/src/main.c | 7 ------- obexd/src/plugin.c | 5 ----- 3 files changed, 20 deletions(-)
configure.ac +0 -8
@@ -83,14 +83,6 @@ AC_CHECK_DECLS([basename], [], PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.36) - -if (test "${enable_threads}" = "yes"); then - AC_DEFINE(NEED_THREADS, 1, [Define if threading support is required]) - PKG_CHECK_MODULES(GTHREAD, gthread-2.0 >= 2.16) - GLIB_CFLAGS="$GLIB_CFLAGS $GTHREAD_CFLAGS" - GLIB_LIBS="$GLIB_LIBS $GTHREAD_LIBS" -fi - PKG_CHECK_MODULES(DBUS, dbus-1 >= 1.10) AC_ARG_WITH([dbusconfdir], AS_HELP_STRING([--with-dbusconfdir=DIR],
obexd/src/main.c +0 -7
@@ -285,13 +285,6 @@ int main(int argc, char *argv[]) signal =setup_signalfd (); -#ifdef NEED_THREADS -if (dbus_threads_init_default () == FALSE) { -fprintf (stderr,"Can't init usage of threads\n" ); -exit (EXIT_FAILURE ); - } -#endif -if (manager_init () == FALSE) {error ("manager_init failed" );exit (EXIT_FAILURE );
obexd/src/plugin.c +0 -5
@@ -28,12 +28,7 @@* will crash on exit. This is a bug inside these libraries, but there is * nothing much that can be done about it. One bad example is libebook. */ -#ifdef NEED_THREADS #define PLUGINFLAG (RTLD_NOW | RTLD_NODELETE) -#else -#define PLUGINFLAG (RTLD_NOW) -#endif -#define IS_ENABLED (x) (x)static GSList *plugins =NULL ;
Signature · 1 line
2.50.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=980566
---Test result---
Test Summary:
CheckPatch PENDING 0.29 seconds GitLint PENDING 0.31 seconds BuildEll PASS 20.21 seconds BluezMake PASS 2633.10 seconds MakeCheck PASS 20.14 seconds MakeDistcheck PASS 184.17 seconds CheckValgrind PASS 235.34 seconds CheckSmatch PASS 303.97 seconds bluezmakeextell PASS 127.80 seconds IncrementalBuild PENDING 0.33 seconds ScanBuild PASS 911.53 seconds
Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:
##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series Output:
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 6 lines · On Wed, 9 Jul 2025 16:36:03 +0200 you wrote:
Threading support is always enabled in dbus since version 1.8 released in 2014:
• libdbus always behaves as ifdbus_threads_init_default()had been called (thread-safety by default)
so remove the obsolete option.
Quoted 7 lines
Note that we also require glib 2.36, which is newer than the version of glib with GThread support built-in:
[Since 2.32]
This function is no longer necessary. The GLib threading system is automatically initialized at the start of your program.[...]
Here is the summary with links:
- [BlueZ] obexd: Remove --enable-threads option
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=1c6f080d7f40
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html