All of lore.kernel.org
 help / color / mirror / Atom feed
From: Payton Fack <facksweng@gmail.com>
To: Bartosz Golaszewski <brgl@kernel.org>,
	 Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>,
	 linux-gpio@vger.kernel.org
Cc: Vincent Fazio <vfazio@gmail.com>, Payton Fack <facksweng@gmail.com>
Subject: [PATCH libgpiod v3 0/2] dbus: add optional D-Bus activation for gpio-manager
Date: Wed, 02 Dec 2026 15:06:28 -0600	[thread overview]
Message-ID: <20261202-master-v3-0-08bbf2ce59b0@gmail.com> (raw)

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>


             reply	other threads:[~2026-12-02 21:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 21:06 Payton Fack [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-master-v3-0-08bbf2ce59b0@gmail.com \
    --to=facksweng@gmail.com \
    --cc=bartosz.golaszewski@oss.qualcomm.com \
    --cc=brgl@kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=vfazio@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.