Skip to contentSkip to conversation

package/dbus-broker: install dbus.socket for session bus

PATCH Superseded Norbert Lange 1 participant 1 message Jan 21

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/dbus-broker: install dbus.socket for session bus

The unit file for the per-user session bus was missing, copy the file from the dbus package and install it.

---
 package/dbus-broker/dbus-broker.mk   | 5 +++++
 package/dbus-broker/dbus-user.socket | 6 ++++++
 2 files changed, 11 insertions(+)
 create mode 100644 package/dbus-broker/dbus-user.socket
package/dbus-broker/dbus-broker.mk +5 -0
index 7e029879f9..b3723a1114 100644
@@ -62,8 +62,13 @@ define DBUS_BROKER_INSTALL_INIT_SYSTEMD
 		$(TARGET_DIR)/usr/share/dbus-1/system.conf
 	$(INSTALL) -D -m 0644 $(DBUS_BROKER_PKGDIR)/dbus.socket \
 		$(TARGET_DIR)/usr/lib/systemd/system/dbus.socket
+	$(INSTALL) -D -m 0644 $(DBUS_BROKER_PKGDIR)/dbus-user.socket \
+		$(TARGET_DIR)/usr/lib/systemd/user/dbus.socket
+	mkdir -p $(TARGET_DIR)/usr/lib/systemd/user/sockets.target.wants
 	$(HOST_MAKE_ENV) ln -sf ../dbus.socket \
 		$(TARGET_DIR)/usr/lib/systemd/system/sockets.target.wants/dbus.socket
+	$(HOST_MAKE_ENV) ln -sf ../dbus.socket \
+		$(TARGET_DIR)/usr/lib/systemd/user/sockets.target.wants/dbus.socket
 endef
 
 $(eval $(meson-package))
package/dbus-broker/dbus-user.socket new file +6 -0
new file mode 100644
index 0000000000..dc5ed8995d
@@ -0,0 +1,6 @@
+[Unit]
+Description=D-Bus User Message Bus Socket
+
+[Socket]
+ListenStream=%t/bus
+ExecStartPost=-/usr/bin/systemctl --user set-environment DBUS_SESSION_BUS_ADDRESS=unix:path=%t/bus
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot