render / rpms / libvirt

Forked from rpms/libvirt 10 months ago
Clone
Laine Stump 38c4b7
From 5d219e1bd98b562eed28e1df424a2590bb92b366 Mon Sep 17 00:00:00 2001
Laine Stump 38c4b7
From: Eric Blake <eblake@redhat.com>
Laine Stump 38c4b7
Date: Mon, 26 Sep 2011 14:28:47 -0600
Laine Stump 38c4b7
Subject: [PATCH 1/2] spec: F15 still uses cgconfig, RHEL lacks hyperv
Laine Stump 38c4b7
Laine Stump 38c4b7
Commit ecd8725c dropped attempts to probe the cgconfig service on
Laine Stump 38c4b7
new enough Fedora where systemd took over that aspect of the system,
Laine Stump 38c4b7
but mistakenly used F14 instead of F15 as the cutoff point.
Laine Stump 38c4b7
Laine Stump 38c4b7
https://bugzilla.redhat.com/show_bug.cgi?id=741358
Laine Stump 38c4b7
Laine Stump 38c4b7
Also, RHEL does not include HyperV support yet.
Laine Stump 38c4b7
Laine Stump 38c4b7
* libvirt.spec.in (with_cgconfig): Check cgconfig service in F15.
Laine Stump 38c4b7
(%{?rhel}): Provide default for with_hyperv.
Laine Stump 38c4b7
---
Laine Stump 38c4b7
 libvirt.spec.in |    8 +++++---
Laine Stump 38c4b7
 1 files changed, 5 insertions(+), 3 deletions(-)
Laine Stump 38c4b7
Laine Stump 38c4b7
diff --git a/libvirt.spec.in b/libvirt.spec.in
Laine Stump 38c4b7
index c0ea898..b87e3f6 100644
Laine Stump 38c4b7
--- a/libvirt.spec.in
Laine Stump 38c4b7
+++ b/libvirt.spec.in
Laine Stump 38c4b7
@@ -97,7 +97,8 @@
Laine Stump 38c4b7
 %endif
Laine Stump 38c4b7
 
Laine Stump 38c4b7
 # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor,
Laine Stump 38c4b7
-# VMWare, libxenserver (xenapi), or libxenlight (Xen 4.1 and newer)
Laine Stump 38c4b7
+# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer),
Laine Stump 38c4b7
+# or HyperV.
Laine Stump 38c4b7
 %if 0%{?rhel}
Laine Stump 38c4b7
 %define with_openvz 0
Laine Stump 38c4b7
 %define with_vbox 0
Laine Stump 38c4b7
@@ -106,6 +107,7 @@
Laine Stump 38c4b7
 %define with_vmware 0
Laine Stump 38c4b7
 %define with_xenapi 0
Laine Stump 38c4b7
 %define with_libxl 0
Laine Stump 38c4b7
+%define with_hyperv 0
Laine Stump 38c4b7
 %endif
Laine Stump 38c4b7
 
Laine Stump 38c4b7
 # RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
Laine Stump 38c4b7
@@ -894,9 +896,9 @@ done
Laine Stump 38c4b7
 %endif
Laine Stump 38c4b7
 
Laine Stump 38c4b7
 %if %{with_cgconfig}
Laine Stump 38c4b7
-# Starting with Fedora 15, systemd automounts all cgroups, and cgconfig is
Laine Stump 38c4b7
+# Starting with Fedora 16, systemd automounts all cgroups, and cgconfig is
Laine Stump 38c4b7
 # no longer a necessary service.
Laine Stump 38c4b7
-%if 0%{?fedora} <= 14 || 0%{?rhel} <= 6
Laine Stump 38c4b7
+%if 0%{?fedora} <= 15 || 0%{?rhel} <= 6
Laine Stump 38c4b7
 if [ "$1" -eq "1" ]; then
Laine Stump 38c4b7
 /sbin/chkconfig cgconfig on
Laine Stump 38c4b7
 fi
Laine Stump 38c4b7
-- 
Laine Stump 38c4b7
1.7.4.4
Laine Stump 38c4b7