Add support for elogind. - #786
Conversation
Elogind provides the systemd/sd-device.h and systemd/sd-hwdb.h headers, can be used as a drop-in replacement of systemd. * meson.build ([systemd]): Add elogind alternative name for dependency check. * meson_options.txt [systemd]: Mention elogind in description.
|
AppStream does not use any of the login API. It uses libsystemd to interface with udev and read the hwdb to identify devices on the system. The elogind docs say:
That lets me believe that when building with it, we will just end up with completely broken functionality. Under these circumstances, isn't it better to just build without systemd when it isn't available? At least that will provide an obvious error message, while reading stub data will result in permission warnings or odd failure messages that may be harder to reason about. |
|
elogind implements/imports the bits of systemd needed for modern desktops like GNOME, which is a larger subset than just logind; I've reviewed the source of elogind; its hwdb support makes use of udev (which it links to) for example. These are not stubs. |
|
Okay, that wasn't clear to me. In that case, this patch is fine, thanks! |
Elogind provides the systemd/sd-device.h and systemd/sd-hwdb.h
headers, can be used as a drop-in replacement of systemd.