use stock libvirt starting with fedora22
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 20 Jun 2015 14:43:43 +0000 (16:43 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Sat, 20 Jun 2015 14:43:43 +0000 (16:43 +0200)
lxc.mk

diff --git a/lxc.mk b/lxc.mk
index 391653b..621faca 100644 (file)
--- a/lxc.mk
+++ b/lxc.mk
@@ -134,11 +134,11 @@ IN_NODEIMAGE += fprobe-ulog
 endif
 
 #################### libvirt version selection
-# settling with using version 1.2.1 on all fedoras
-# although this does not solve the slice re-creation issue seen on f20
 
+# use fedora's libvirt starting with f22
+ifneq "$(DISTRONAME)" "$(filter $(DISTRONAME),f18 f20 f21)"
 local_libvirt=true
-separate_libvirt_python=true
+endif
 
 #
 # libvirt
@@ -165,13 +165,9 @@ ALL += libvirt
 IN_NODEREPO += libvirt
 IN_NODEIMAGE += libvirt
 
-endif
-
 #
 ## libvirt-python
 #
-ifeq "$(separate_libvirt_python)" "true"
-
 libvirt-python-MODULES := libvirt-python
 libvirt-python-SPEC    := libvirt-python.spec
 libvirt-python-BUILD-FROM-SRPM := yes
@@ -192,7 +188,7 @@ ALL += libvirt-python
 IN_NODEREPO += libvirt-python
 IN_NODEIMAGE += libvirt-python
 
-endif
+endif # local_libvirt
 
 #
 # DistributedRateLimiting