commit:     05da722fe8ad1c924d188b5099bc1f189c406fb4
Author:     Michal Privoznik <mprivozn <AT> redhat <DOT> com>
AuthorDate: Mon Feb 10 12:50:20 2020 +0000
Commit:     Matthias Maier <tamiko <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 16:03:48 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05da722f

app-emulation/libvirt-9999: Provide modern runtime directory

Because of autoconf-2.69 and its defaults, the configure script
will default to /var/run instead of /run. This may trigger
warnings in some packages which expect libvirt to provide modern
paths (e.g. systemd and location of .socket files).

Bug: https://bugs.gentoo.org/708782
Closes: https://github.com/gentoo/gentoo/pull/14613
Signed-off-by: Michal Privoznik <mprivozn <AT> redhat.com>
Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>

 app-emulation/libvirt/libvirt-9999.ebuild | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/app-emulation/libvirt/libvirt-9999.ebuild 
b/app-emulation/libvirt/libvirt-9999.ebuild
index 648922f96f2..c2205b44c10 100644
--- a/app-emulation/libvirt/libvirt-9999.ebuild
+++ b/app-emulation/libvirt/libvirt-9999.ebuild
@@ -280,6 +280,7 @@ my_src_configure() {
                --disable-werror
 
                --localstatedir=/var
+               --with-runstatedir=/run
                --enable-dependency-tracking
        )
 
@@ -314,6 +315,7 @@ my_src_install() {
        # libvirtd is able to create them on demand
        rm -rf "${D}"/etc/sysconfig
        rm -rf "${D}"/var
+       rm -rf "${D}"/run
 
        newbashcomp "${S}/tools/bash-completion/vsh" virsh
        bashcomp_alias virsh virt-admin

Reply via email to