elogind: disable utmp for musl

This silences the startup warning log:

    "elogind[1044]: Failed to set utmp path to /dev/null/utmp: Not supported"

By disabling utmp usage by elogind for musl targets
This commit is contained in:
Stan Schwertly 2019-10-05 13:35:18 -04:00 committed by Helmut Pozimski
parent c6e17b5d4b
commit a00620dba1

View file

@ -1,7 +1,7 @@
# Template file for 'elogind'
pkgname=elogind
version=241.3
revision=2
revision=3
build_style=meson
configure_args="-Dcgroup-controller=elogind -Dhalt-path=/usr/bin/halt
-Drootlibexecdir=/usr/libexec/elogind -Dreboot-path=/usr/bin/reboot
@ -20,6 +20,10 @@ distfiles="https://github.com/${pkgname}/${pkgname}/archive/v${version}.tar.gz"
checksum=d6a465479c8a629d49ea9374f6199b0c60e7e42eade0fcd8265fc37085386365
conf_files="/etc/elogind/logind.conf"
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
configure_args+=" -Dutmp=false"
fi
pre_check() {
# test-fs-util checks for /etc/machine-id/foo and expects ENOTDIR
# since /etc/machine-id is expected to be a file.