Skip to content

meson: Add an explicit systemd feature

Previously when checkin for systemd were 3 different states:

  • Have systemd .pc available
  • Systemd not found, silently move on
  • Passed an unitdirpath explicitly

This could potentially result into having enable-backend feature set to true, but silently skipping over installing the systemd service file cause systemd was omitted from the build dependencies while also not passing an explicit unit dir path, which you rarely want to anyway.

Add an explicit systemd feature in meson_options, so we can error out when systemd is not found instead, and require explicitly disabling the feature.

Merge request reports