All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH libgpiod v3 0/2] dbus: add optional D-Bus activation for gpio-manager
@ 2026-12-02 21:06 Payton Fack
  2026-12-02 21:06 ` [PATCH libgpiod v3 1/2] meson: fail if systemd is enabled but D-Bus is not available Payton Fack
  2026-12-02 21:06 ` [PATCH libgpiod v3 2/2] dbus: add optional D-Bus activation file for gpio-manager Payton Fack
  0 siblings, 2 replies; 3+ messages in thread
From: Payton Fack @ 2026-12-02 21:06 UTC (permalink / raw)
  To: Bartosz Golaszewski, Bartosz Golaszewski, linux-gpio
  Cc: Vincent Fazio, Payton Fack

This series adds an optional D-Bus activation file so that dbus-daemon
can start gpio-manager on demand via systemd, and tightens a related
meson check.

The first patch fixes the existing check that -Dsystemd=enabled requires
D-Bus. The systemd data files are installed from the dbus subdirectory,
which is only processed when the D-Bus dependencies are found, but the
check only verified that the dbus option was not disabled. With
-Ddbus=auto and missing dependencies, the build would silently skip the
systemd files. Assert on dbus_enabled instead.

The second patch installs an io.gpiod1.service system-service file whose
SystemdService= points at gpio-manager.service. It is gated behind a new
dbus-activation feature option that defaults to disabled and requires
systemd support, since on-demand activation is not wanted on every
system.

Changes in v3:
- Add a new patch cleaning up the systemd/D-Bus dependency check in meson.
- Use pkg-config paths for the install location of the D-Bus activation
  file instead of hardcoding it.
- Make dbus-activation default to disabled.
- Fail the build if dbus-activation is enabled while D-Bus is disabled.
- Link to v2: https://lore.kernel.org/linux-gpio/20261029154623.387575-1-facksweng@gmail.com/

Changes in v2:
- Make service run as gpio-manager user
- Force debus service to use systemd to start
- Fix dbus-activation systemd dependency
- Link to v1: https://lore.kernel.org/linux-gpio/20261026221323.2235111-1-facksweng@gmail.com/

Signed-off-by: Payton Fack <facksweng@gmail.com>
---
Payton Fack (2):
      meson: fail if systemd is enabled but D-Bus is not available
      dbus: add optional D-Bus activation file for gpio-manager

 dbus/data/io.gpiod1.service |  8 ++++++++
 dbus/data/meson.build       |  7 +++++++
 meson.build                 | 37 +++++++++++++++++++++++++++++++------
 meson_options.txt           |  6 ++++++
 4 files changed, 52 insertions(+), 6 deletions(-)
---
base-commit: b1071a55288d595a80709204a73932eb19a0a400
change-id: 20261202-master-d4f13a68bbfb

Best regards,
--  
Payton Fack <facksweng@gmail.com>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-12-02 21:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 21:06 [PATCH libgpiod v3 0/2] dbus: add optional D-Bus activation for gpio-manager Payton Fack
2026-12-02 21:06 ` [PATCH libgpiod v3 1/2] meson: fail if systemd is enabled but D-Bus is not available Payton Fack
2026-12-02 21:06 ` [PATCH libgpiod v3 2/2] dbus: add optional D-Bus activation file for gpio-manager Payton Fack

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.