From a00620dba13be4d0adb6d5ba8a7b16f6ad73adef Mon Sep 17 00:00:00 2001 From: Stan Schwertly Date: Sat, 5 Oct 2019 13:35:18 -0400 Subject: [PATCH] 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 --- srcpkgs/elogind/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/elogind/template b/srcpkgs/elogind/template index 7d03f4e5fc0..3573956c521 100644 --- a/srcpkgs/elogind/template +++ b/srcpkgs/elogind/template @@ -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.