[libvirt] [PATCH] spec: F15 still uses cgconfig

Commit ecd8725c dropped attempts to probe the cgconfig service on new enough Fedora where systemd took over that aspect of the system, but mistakenly used F14 instead of F15 as the cutoff point. https://bugzilla.redhat.com/show_bug.cgi?id=741358 * libvirt.spec.in (with_cgconfig): Check cgconfig service in F15. --- libvirt.spec.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index c0ea898..03d6f1f 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -894,9 +894,9 @@ done %endif %if %{with_cgconfig} -# Starting with Fedora 15, systemd automounts all cgroups, and cgconfig is +# Starting with Fedora 16, systemd automounts all cgroups, and cgconfig is # no longer a necessary service. -%if 0%{?fedora} <= 14 || 0%{?rhel} <= 6 +%if 0%{?fedora} <= 15 || 0%{?rhel} <= 6 if [ "$1" -eq "1" ]; then /sbin/chkconfig cgconfig on fi -- 1.7.4.4

Don't force RHEL to build HyperV support yet. * libvirt.spec.in (%{?rhel}): Provide default for with_hyperv. --- libvirt.spec.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/libvirt.spec.in b/libvirt.spec.in index 03d6f1f..b87e3f6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -97,7 +97,8 @@ %endif # RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, -# VMWare, libxenserver (xenapi), or libxenlight (Xen 4.1 and newer) +# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), +# or HyperV. %if 0%{?rhel} %define with_openvz 0 %define with_vbox 0 @@ -106,6 +107,7 @@ %define with_vmware 0 %define with_xenapi 0 %define with_libxl 0 +%define with_hyperv 0 %endif # RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC -- 1.7.4.4

On 09/26/2011 06:45 PM, Eric Blake wrote:
Don't force RHEL to build HyperV support yet.
* libvirt.spec.in (%{?rhel}): Provide default for with_hyperv. --- libvirt.spec.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in index 03d6f1f..b87e3f6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -97,7 +97,8 @@ %endif
# RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, -# VMWare, libxenserver (xenapi), or libxenlight (Xen 4.1 and newer) +# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), +# or HyperV. %if 0%{?rhel} %define with_openvz 0 %define with_vbox 0 @@ -106,6 +107,7 @@ %define with_vmware 0 %define with_xenapi 0 %define with_libxl 0 +%define with_hyperv 0 %endif
# RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
ACK

On Mon, Sep 26, 2011 at 04:45:48PM -0600, Eric Blake wrote:
Don't force RHEL to build HyperV support yet.
* libvirt.spec.in (%{?rhel}): Provide default for with_hyperv. --- libvirt.spec.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in index 03d6f1f..b87e3f6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -97,7 +97,8 @@ %endif
# RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, -# VMWare, libxenserver (xenapi), or libxenlight (Xen 4.1 and newer) +# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), +# or HyperV. %if 0%{?rhel} %define with_openvz 0 %define with_vbox 0 @@ -106,6 +107,7 @@ %define with_vmware 0 %define with_xenapi 0 %define with_libxl 0 +%define with_hyperv 0 %endif
# RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
ACK, but we arguably want similar changes to mingw32-libvirt.spec.in and autobuild.sh's mingw32 part Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|

On 09/27/2011 03:00 AM, Daniel P. Berrange wrote:
On Mon, Sep 26, 2011 at 04:45:48PM -0600, Eric Blake wrote:
Don't force RHEL to build HyperV support yet.
* libvirt.spec.in (%{?rhel}): Provide default for with_hyperv. --- libvirt.spec.in | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in index 03d6f1f..b87e3f6 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -97,7 +97,8 @@ %endif
# RHEL doesn't ship OpenVZ, VBox, UML, PowerHypervisor, -# VMWare, libxenserver (xenapi), or libxenlight (Xen 4.1 and newer) +# VMWare, libxenserver (xenapi), libxenlight (Xen 4.1 and newer), +# or HyperV. %if 0%{?rhel} %define with_openvz 0 %define with_vbox 0 @@ -106,6 +107,7 @@ %define with_vmware 0 %define with_xenapi 0 %define with_libxl 0 +%define with_hyperv 0 %endif
# RHEL-5 has restricted QEMU to x86_64 only and is too old for LXC
ACK, but we arguably want similar changes to mingw32-libvirt.spec.in and autobuild.sh's mingw32 part
I'm pushing this one as-is, and submitting a 3/1 that addresses the additional concerns about the mingw spec file. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

* libvirt.spec.in (%configure): Drop unused %{one} macro. * mingw32-libvirt.spec.in (%{rhel}): Compile ESX but not HyperV on mingw build for RHEL. (%build): Make configure honor spec conditionals. Reorder to match libvirt.spec. * autobuild.sh (mingw): Update list to match. Suggested by Daniel P. Berrange. --- autobuild.sh | 16 +++++++----- libvirt.spec.in | 3 +- mingw32-libvirt.spec.in | 58 ++++++++++++++++++++++++++++++++++++++++------ 3 files changed, 60 insertions(+), 17 deletions(-) diff --git a/autobuild.sh b/autobuild.sh index 491f1b8..9853287 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -71,21 +71,23 @@ if [ -x /usr/bin/i686-pc-mingw32-gcc ]; then --host=i686-pc-mingw32 \ --prefix="$AUTOBUILD_INSTALL_ROOT/i686-pc-mingw32/sys-root/mingw" \ --enable-compile-warnings=error \ - --without-sasl \ - --without-avahi \ - --without-polkit \ - --without-python \ --without-xen \ --without-qemu \ + --without-openvz \ --without-lxc \ - --without-uml \ --without-vbox \ - --without-openvz \ + --without-xenapi \ + --without-uml \ + --without-sasl \ + --without-avahi \ + --without-polkit \ + --without-python \ + --without-libvirtd \ --without-phyp \ + --without-hyperv \ --without-netcf \ --without-audit \ --without-dtrace \ - --without-libvirtd make make install diff --git a/libvirt.spec.in b/libvirt.spec.in index b87e3f6..18b798d 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -47,7 +47,7 @@ %define with_libxl 0%{!?_without_libxl:%{server_drivers}} %define with_vmware 0%{!?_without_vmware:%{server_drivers}} -# Then the hypervisor drivers that talk a native remote protocol +# Then the hypervisor drivers that talk via a native remote protocol %define with_phyp 0%{!?_without_phyp:1} %define with_esx 0%{!?_without_esx:1} %define with_hyperv 0%{!?_without_hyperv:1} @@ -710,7 +710,6 @@ of recent versions of Linux (and other OSes). %{?_without_python} \ %{?_without_libvirtd} \ %{?_without_uml} \ - %{?_without_one} \ %{?_without_phyp} \ %{?_without_esx} \ %{?_without_hyperv} \ diff --git a/mingw32-libvirt.spec.in b/mingw32-libvirt.spec.in index f651d11..57c67ae 100644 --- a/mingw32-libvirt.spec.in +++ b/mingw32-libvirt.spec.in @@ -5,6 +5,21 @@ %define __find_provides %{_mingw32_findprovides} %define __debug_install_post %{_mingw32_debug_install_post} +# The mingw build is client only. Set up defaults for hypervisor drivers +# that talk via a native remote protocol, and for which prereq mingw +# libraries exist. +%define with_phyp 0%{!?_without_phyp:1} +%define with_esx 0%{!?_without_esx:1} +%define with_hyperv 0%{!?_without_hyperv:0} # missing libwsman +%define with_xenapi 0%{!?_without_xenapi:1} + +# RHEL ships ESX but not PowerHypervisor, HyperV, or libxenserver (xenapi) +%if 0%{?rhel} +%define with_phyp 0 +%define with_xenapi 0 +%define with_hyperv 0 +%endif + Name: mingw32-libvirt Version: @VERSION@ Release: 3%{?dist}%{?extra_release} @@ -29,6 +44,13 @@ BuildRequires: pkgconfig # Need native version for msgfmt BuildRequires: gettext +%if %{with_phyp} +BuildRequires: mingw32-libssh2 +%endif +%if %{with_esx} +BuildRequires: mingw32-curl +%endif + BuildArch: noarch %{?_mingw32_debug_package} @@ -42,23 +64,43 @@ MinGW Windows libvirt virtualization library. %build +%if ! %{with_phyp} +%define _without_phyp --without-phyp +%endif + +%if ! %{with_esx} +%define _without_esx --without-esx +%endif + +%if ! %{with_hyperv} +%define _without_hyperv --without-hyperv +%endif + +%if ! %{with_xenapi} +%define _without_xenapi --without-xenapi +%endif + # XXX enable SASL in future %{_mingw32_configure} \ + --without-xen \ + --without-qemu \ + --without-openvz \ + --without-lxc \ + --without-vbox \ + %{?_without_xenapi} \ --without-sasl \ --without-avahi \ --without-polkit \ --without-python \ - --without-xen \ - --without-qemu \ - --without-lxc \ + --without-libvirtd \ --without-uml \ - --without-vbox \ - --without-openvz \ - --without-phyp \ + %{?_without_phyp} \ + %{?_without_esx} \ + %{?_without_hyperv} \ + --without-vmware \ --without-netcf \ --without-audit \ - --without-dtrace \ - --without-libvirtd + --without-dtrace make -- 1.7.4.4

On 09/26/2011 04:31 PM, Eric Blake wrote:
Commit ecd8725c dropped attempts to probe the cgconfig service on new enough Fedora where systemd took over that aspect of the system, but mistakenly used F14 instead of F15 as the cutoff point.
https://bugzilla.redhat.com/show_bug.cgi?id=741358
* libvirt.spec.in (with_cgconfig): Check cgconfig service in F15. --- libvirt.spec.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in index c0ea898..03d6f1f 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -894,9 +894,9 @@ done %endif
%if %{with_cgconfig} -# Starting with Fedora 15, systemd automounts all cgroups, and cgconfig is +# Starting with Fedora 16, systemd automounts all cgroups, and cgconfig is # no longer a necessary service. -%if 0%{?fedora}<= 14 || 0%{?rhel}<= 6 +%if 0%{?fedora}<= 15 || 0%{?rhel}<= 6 if [ "$1" -eq "1" ]; then /sbin/chkconfig cgconfig on fi
ACK

On 09/26/2011 11:35 PM, Laine Stump wrote:
On 09/26/2011 04:31 PM, Eric Blake wrote:
Commit ecd8725c dropped attempts to probe the cgconfig service on new enough Fedora where systemd took over that aspect of the system, but mistakenly used F14 instead of F15 as the cutoff point.
https://bugzilla.redhat.com/show_bug.cgi?id=741358
* libvirt.spec.in (with_cgconfig): Check cgconfig service in F15. --- libvirt.spec.in | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/libvirt.spec.in b/libvirt.spec.in index c0ea898..03d6f1f 100644 --- a/libvirt.spec.in +++ b/libvirt.spec.in @@ -894,9 +894,9 @@ done %endif
%if %{with_cgconfig} -# Starting with Fedora 15, systemd automounts all cgroups, and cgconfig is +# Starting with Fedora 16, systemd automounts all cgroups, and cgconfig is # no longer a necessary service. -%if 0%{?fedora}<= 14 || 0%{?rhel}<= 6 +%if 0%{?fedora}<= 15 || 0%{?rhel}<= 6 if [ "$1" -eq "1" ]; then /sbin/chkconfig cgconfig on fi
ACK
Thanks; pushed (actually, I merged 1/1 and 2/1 into a single patch, since they were both short). -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org
participants (3)
-
Daniel P. Berrange
-
Eric Blake
-
Laine Stump