From bd4e9d7c10dfb9d8798495b56932a9bf34bb7133 Mon Sep 17 00:00:00 2001 From: Helmut Pozimski Date: Sat, 12 Oct 2019 09:44:54 +0200 Subject: [PATCH] libvirt: disable remember_owner by default on musl systems fixes #14721 --- srcpkgs/libvirt/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/libvirt/template b/srcpkgs/libvirt/template index c9b271fe4d187c..4468112a04820c 100644 --- a/srcpkgs/libvirt/template +++ b/srcpkgs/libvirt/template @@ -1,7 +1,7 @@ # Template file for 'libvirt' pkgname=libvirt version=5.8.0 -revision=1 +revision=2 build_style=gnu-configure configure_args="--without-hal --with-storage-lvm --with-qemu --with-qemu-user=libvirt --with-qemu-group=libvirt --without-netcf @@ -56,6 +56,7 @@ make_dirs=" pre_configure() { autoreconf -fi } + post_install() { # runit services vsv libvirtd @@ -65,6 +66,12 @@ post_install() { rm -rf ${DESTDIR}/etc/sysconfig # Remove unused stuff. rm -rf ${DESTDIR}/var/log + + # workaround for musl not providing an utmpx implementation + if [ "$XBPS_TARGET_LIBC" = "musl" ]; + then + echo "remember_owner = 0" >> ${DESTDIR}/etc/libvirt/qemu.conf + fi } libvirt-devel_package() {