package/p11-kit: explicitly enable or disable systemd units

The --with-systemd option controls only if systemd units are
installed, so there is no build time dependency. Disable systemd
unconditionally for the host package because Buildroot cannot and
should not install systemd units on the host.

Fixes host-p11-kit install error:

install: reguläre Datei '/usr/lib/systemd/user/p11-kit-server.socket' kann nicht angelegt werden: Keine Berechtigung
install: reguläre Datei '/usr/lib/systemd/user/p11-kit-server.service' kann nicht angelegt werden: Keine Berechtigung

Signed-off-by: Fiona Klute (Othermo GmbH) <fiona.klute@gmx.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Fiona Klute (Othermo GmbH)
2026-07-27 17:45:23 +02:00
committed by Peter Korsgaard
parent 766d3a6e87
commit a0cadb4552

View File

@@ -44,13 +44,20 @@ P11_KIT_CONF_OPTS += \
--without-libtasn1 --without-libtasn1
endif endif
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
P11_KIT_CONF_OPTS += --with-systemd
else
P11_KIT_CONF_OPTS += --without-systemd
endif
HOST_P11_KIT_DEPENDENCIES = host-pkgconf HOST_P11_KIT_DEPENDENCIES = host-pkgconf
HOST_P11_KIT_CONF_OPTS = \ HOST_P11_KIT_CONF_OPTS = \
--without-libffi \ --without-libffi \
--without-trust-paths \ --without-trust-paths \
--disable-trust-module \ --disable-trust-module \
--without-libtasn1 --without-libtasn1 \
--without-systemd
$(eval $(autotools-package)) $(eval $(autotools-package))
$(eval $(host-autotools-package)) $(eval $(host-autotools-package))