app-emulation/libvirt-9999: Provide modern runtime directory
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 10 Feb 2020 12:50:20 +0000 (13:50 +0100)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 10 Feb 2020 16:03:48 +0000 (10:03 -0600)
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@redhat.com>
Signed-off-by: Matthias Maier <tamiko@gentoo.org>
app-emulation/libvirt/libvirt-9999.ebuild

index 648922f96f29de967358b1a1a691d31f4bec501d..c2205b44c10b5de4f73228462bc8805f05a8eb83 100644 (file)
@@ -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