app-emulation/libvirt: update live ebuild
authorMatthias Maier <tamiko@gentoo.org>
Fri, 29 Jun 2018 04:19:26 +0000 (23:19 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Fri, 29 Jun 2018 04:19:26 +0000 (23:19 -0500)
Thanks to Michal Privoznik for the updated patch.

Closes: https://bugs.gentoo.org/659206
Package-Manager: Portage-2.3.41, Repoman-2.3.9

app-emulation/libvirt/files/libvirt-4.5.0-do_not_use_sysconf.patch [moved from app-emulation/libvirt/files/libvirt-4.4.0-do_not_use_sysconf.patch with 100% similarity]
app-emulation/libvirt/libvirt-9999.ebuild

index 21cd6af1aa34dcbc0a11b1fffb624c396f8cb750..ba94138cba80cacda9749950975669b3ac6c6bcc 100644 (file)
@@ -122,7 +122,7 @@ DEPEND="${RDEPEND}
        virtual/pkgconfig"
 
 PATCHES=(
-       "${FILESDIR}"/${PN}-4.2.0-do_not_use_sysconf.patch
+       "${FILESDIR}"/${PN}-4.5.0-do_not_use_sysconf.patch
        "${FILESDIR}"/${PN}-1.2.16-fix_paths_in_libvirt-guests_sh.patch
        "${FILESDIR}"/${PN}-3.10.0-r2-fix_paths_for_apparmor.patch
 )
@@ -237,12 +237,6 @@ src_prepare() {
 }
 
 src_configure() {
-       #
-       # With 4.1.0 we should always enable networking support - otherwise not
-       # even minimal networking is available. Yes, this degrades
-       # USE=virt-network to a mere runtime-dep USE flag. But let's keep it
-       # for compatibility and convenience.
-       #
        local myeconfargs=(
                $(use_with apparmor)
                $(use_with apparmor apparmor-profiles)
@@ -276,6 +270,7 @@ src_configure() {
                $(use_with udev)
                $(use_with uml)
                $(use_with vepa virtualport)
+               $(use_with virt-network network)
                $(use_with wireshark-plugins wireshark-dissector)
                $(use_with xen)
                $(use_with xen xen-inotify)
@@ -283,8 +278,6 @@ src_configure() {
                $(use_with zeroconf avahi)
                $(use_with zfs storage-zfs)
 
-               --with-network
-
                --without-hal
                --without-netcf
                --without-sanlock
@@ -343,9 +336,7 @@ src_install() {
        # Remove bogus, empty directories. They are either not used, or
        # libvirtd is able to create them on demand
        rm -rf "${D}"/etc/sysconfig
-       rm -rf "${D}"/var/cache
-       rm -rf "${D}"/var/run
-       rm -rf "${D}"/var/log
+       rm -rf "${D}"/var
 
        use libvirtd || return 0
        # From here, only libvirtd-related instructions, be warned!