The sys-apps/dbus package should always --enable-checks and should not make it depend on the debug USE flag. The checks are necessary as they validate external input. Code like the following from dbus-object-tree.c:_dbus_object_tree_unregister_and_unlock will segfault if you try to unregister a non-existent path, as the checks are completely removed if we disable checks and asserts. subtree = find_subtree (tree, path, &i); #ifndef DBUS_DISABLE_CHECKS if (subtree == NULL) { _dbus_warn ("Attempted to unregister path (path[0] = %s path[1] = %s) which isn't registered\n", path[0] ? path[0] : "null", path[1] ? path[1] : "null"); goto unlock; } #else _dbus_assert (subtree != NULL); #endif _dbus_assert (subtree->parent == NULL || (i >= 0 && subtree->parent->subtrees[i] == subtree)); subtree->message_function = NULL;
I swear I had this in there ages ago.... Someone must have reverted it. It's in 0.62-r1 and up.