From d4cb2abd8362e1a3cab669d90d322b7c3c4b2c78 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 c9b271fe4d1..4468112a048 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() {