Subject: polkitd: package fails to install if systemd-standalone-sysusers is installed

From: Maxim R Chintalov <[email-masked]>
Date: Wed, 13 Mar 2024 23:06:31 +0000

Package: polkitd
Version: 124-1devuan1
Severity: normal

If package systemd-standalone-sysusers is installed, the polkitd
postinst script will attempt to invoke it:

case "$1" in
    configure)
        if ! getent passwd polkitd >/dev/null; then
            user_changed=yes
        else
            user_changed=
        fi

        # Intentionally not using dh_installsysusers: we need enough control
        # over sequencing to reload dbus-daemon after doing this, but before
        # restarting polkitd
        if command -v systemd-sysusers >/dev/null; then
            systemd-sysusers ${DPKG_ROOT:+--root="$DPKG_ROOT"} polkit.conf
        else
            adduser --group --system --quiet --gecos 'polkit' \
                --no-create-home --home /nonexistent polkitd
            addgroup --system --quiet polkitd
        fi

However, it fails because the file /usr/lib/sysusers.d/polkit.conf
is missing from Devuan. This appears the be a reintroduction of
bug 717: https://bugs.devuan.org/cgi/bugreport.cgi?bug=717

systemd-standalone-sysusers must be uninstalled for installation
to succeed.

I am using Devuan ceres with Xfce and runit.