mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
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:
parent
c6e17b5d4b
commit
a00620dba1
1 changed files with 5 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'elogind'
|
# Template file for 'elogind'
|
||||||
pkgname=elogind
|
pkgname=elogind
|
||||||
version=241.3
|
version=241.3
|
||||||
revision=2
|
revision=3
|
||||||
build_style=meson
|
build_style=meson
|
||||||
configure_args="-Dcgroup-controller=elogind -Dhalt-path=/usr/bin/halt
|
configure_args="-Dcgroup-controller=elogind -Dhalt-path=/usr/bin/halt
|
||||||
-Drootlibexecdir=/usr/libexec/elogind -Dreboot-path=/usr/bin/reboot
|
-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
|
checksum=d6a465479c8a629d49ea9374f6199b0c60e7e42eade0fcd8265fc37085386365
|
||||||
conf_files="/etc/elogind/logind.conf"
|
conf_files="/etc/elogind/logind.conf"
|
||||||
|
|
||||||
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
|
configure_args+=" -Dutmp=false"
|
||||||
|
fi
|
||||||
|
|
||||||
pre_check() {
|
pre_check() {
|
||||||
# test-fs-util checks for /etc/machine-id/foo and expects ENOTDIR
|
# test-fs-util checks for /etc/machine-id/foo and expects ENOTDIR
|
||||||
# since /etc/machine-id is expected to be a file.
|
# since /etc/machine-id is expected to be a file.
|
||||||
|
|
Loading…
Add table
Reference in a new issue