summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-11-30 20:18:48 +0100
committerLennart Poettering <lennart@poettering.net>2013-11-30 20:18:48 +0100
commit626851be97b4332fc0401d754c81ae7bbc0f5dc4 (patch)
treee164c6cbc5722fa8ba5eb41968f5645964260b47 /src/core
parent4734b895641bd1cfb47b2eb62b0ce3f2565aa578 (diff)
bus: do kdbus only if this is enabled on the configure switch
Since we want to retain the ability to break kernel ←→ userspace ABI after the next release, let's not make use by default of kdbus, so that people with future kernels will not suddenly break with current systemd versions. kdbus support is left in all builds but must now be explicitly requested at runtime (for example via setting $DBUS_SESSION_BUS). Via a configure switch the old behaviour can be restored. In fact, we change autogen.sh to do this, so that git builds (which run autogen.sh) get kdbus by default, but tarball builds (which ue the configure defaults) do not get it, and hence this stays out of the distros by default.
Diffstat (limited to 'src/core')
-rw-r--r--src/core/manager.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index 7de0b26811..badf19e954 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -414,6 +414,7 @@ static int manager_setup_kdbus(Manager *m) {
assert(m);
+#ifdef ENABLE_KDBUS
if (m->kdbus_fd >= 0)
return 0;
@@ -428,6 +429,8 @@ static int manager_setup_kdbus(Manager *m) {
}
log_info("Successfully set up kdbus on %s", p);
+#endif
+
return 0;
}