dbus: fix new cmake build
authorRosen Penev <redacted>
Sun, 18 Apr 2021 03:09:37 +0000 (20:09 -0700)
committerRosen Penev <redacted>
Sun, 25 Apr 2021 20:46:17 +0000 (13:46 -0700)
CMake was using the wrong paths. Fix them up.

Signed-off-by: Rosen Penev <redacted>
utils/dbus/Makefile
utils/dbus/patches/010-cmake-paths.patch [new file with mode: 0644]

index 94bfa2e94f1c13c01be30a3ca62c80befa06e9de..5fc4da22c63f473640baa6ee5523a547f2a94909 100644 (file)
@@ -72,6 +72,9 @@ $(call Package/dbus/Default/description)
 endef
 
 CMAKE_OPTIONS += \
+       -DDBUS_SYSTEM_SOCKET=/var/run/dbus/system_bus_socket \
+       -DDBUS_SESSION_SOCKET_DIR=/tmp \
+       -DDBUS_SYSTEM_PID_FILE=/var/run/dbus.pid \
        -DDBUS_BUILD_TESTS=OFF \
        -DDBUS_LINUX=ON \
        -DDBUS_DISABLE_ASSERT=ON \
@@ -84,6 +87,8 @@ CMAKE_OPTIONS += \
        -DDBUS_ENABLE_VERBOSE_MODE=OFF \
        -DDBUS_DISABLE_CHECKS=ON \
        -DDBUS_BUILD_X11=OFF \
+       -DDBUS_ENABLE_DOXYGEN_DOCS=OFF \
+       -DENABLE_QT_HELP=OFF
 
 define Build/InstallDev
        $(INSTALL_DIR) $(1)/usr/include
diff --git a/utils/dbus/patches/010-cmake-paths.patch b/utils/dbus/patches/010-cmake-paths.patch
new file mode 100644 (file)
index 0000000..36431eb
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -510,11 +510,11 @@ if(WIN32)
+ else(WIN32)
+     set(DBUS_SESSION_BUS_LISTEN_ADDRESS "unix:tmpdir=${DBUS_SESSION_SOCKET_DIR}" CACHE STRING "session bus default listening address")
+     set(DBUS_SESSION_BUS_CONNECT_ADDRESS "autolaunch:" CACHE STRING "session bus fallback address for clients")
+-    set(sysconfdir "")
++    set(sysconfdir "/usr/share")
+     set(configdir ${sysconfdir}/dbus-1 )
+     set(DBUS_SYSTEM_CONFIG_FILE  ${configdir}/system.conf)
+     set(DBUS_SESSION_CONFIG_FILE ${configdir}/session.conf)
+-    set(DBUS_USER "messagebus")
++    set(DBUS_USER "root")
+     set(DBUS_TEST_USER "nobody")
+   # For best security, assume that all non-Windows platforms can do
+   # credentials-passing.
git clone https://git.99rst.org/PROJECT