From 455637e8010840ee76c6ad8ae36c189606919262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20=C4=8Cerm=C3=A1k?= Date: Fri, 26 Apr 2024 10:57:32 +0200 Subject: [PATCH] package/dbus: set runstatedir to /run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit DBus 1.14.x now has the Containers1 interface which uses path in runstatedir (by default set to /var/run) for creating sockets. With the default, Systemd complains about it being a legacy directory: systemd-tmpfiles[102]: /usr/lib/tmpfiles.d/dbus.conf:13: Line references path below legacy directory /var/run/, updating /var/run/dbus/containers → /run/dbus/containers; please update the tmpfiles.d/ drop-in file accordingly. Set the configure option runstatedir to /run to use the preferred path to avoid the warning and use the /run directory consistently. Setting the value only affects the path of these sockets and to the PID file, which is already explicitly set by another option. We already tried to set the --runstatedir option globally, but that confuses older autotools, so in the end it got reverted in c8af4eef4982ada8f890eea9fb15fee51e1db4fd. Signed-off-by: Jan Čermák Signed-off-by: Arnout Vandecappelle --- package/dbus/dbus.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/dbus/dbus.mk b/package/dbus/dbus.mk index 097b89205e..c60bf473cd 100644 --- a/package/dbus/dbus.mk +++ b/package/dbus/dbus.mk @@ -33,7 +33,8 @@ DBUS_CONF_OPTS = \ --disable-xml-docs \ --disable-doxygen-docs \ --with-system-socket=/run/dbus/system_bus_socket \ - --with-system-pid-file=/run/messagebus.pid + --with-system-pid-file=/run/messagebus.pid \ + --runstatedir=/run ifeq ($(BR2_STATIC_LIBS),y) DBUS_CONF_OPTS += LIBS='-pthread'