[packages/libvirt] - updated to 0.9.13 - updated sasl, lxc patches - removed obsolete lxc-without-selinux, driver-modules

qboosh qboosh at pld-linux.org
Wed Jul 11 18:15:22 CEST 2012


commit bf3e9ac80cbbe199f372f21e1d98ecb1102bd43b
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Jul 11 18:14:33 2012 +0200

    - updated to 0.9.13
    - updated sasl,lxc patches
    - removed obsolete lxc-without-selinux,driver-modules patches
    - some separate driver modules have been merged back by upstream (only server drivers are kept in modules)

 libvirt-driver-modules.patch | 159 -------------------------------------------
 libvirt-lxc.patch            |  19 +++---
 libvirt-sasl.patch           |  97 ++------------------------
 libvirt.spec                 | 143 +++-----------------------------------
 lxc-without-selinux.patch    |  22 ------
 5 files changed, 24 insertions(+), 416 deletions(-)
---
diff --git a/libvirt-lxc.patch b/libvirt-lxc.patch
index 88c7217..f0d8f7d 100644
--- a/libvirt-lxc.patch
+++ b/libvirt-lxc.patch
@@ -1,15 +1,14 @@
-diff -ur libvirt-0.9.12/src/lxc/lxc_controller.c libvirt-0.9.12-lxc/src/lxc/lxc_controller.c
---- libvirt-0.9.12/src/lxc/lxc_controller.c	2012-05-17 11:55:25.719689270 +0200
-+++ libvirt-0.9.12-lxc/src/lxc/lxc_controller.c	2012-05-17 11:54:54.623023703 +0200
-@@ -43,6 +43,7 @@
- #include <dirent.h>
+--- libvirt-0.9.13/src/lxc/lxc_controller.c.orig	2012-06-25 09:06:18.000000000 +0200
++++ libvirt-0.9.13/src/lxc/lxc_controller.c	2012-07-08 11:48:06.949684744 +0200
+@@ -44,6 +44,7 @@
  #include <grp.h>
  #include <sys/stat.h>
+ #include <time.h>
 +#include <sys/time.h>
  
  #if HAVE_CAPNG
  # include <cap-ng.h>
-@@ -559,6 +560,7 @@
+@@ -558,6 +559,7 @@
      return ret;
  }
  
@@ -17,7 +16,7 @@ diff -ur libvirt-0.9.12/src/lxc/lxc_controller.c libvirt-0.9.12-lxc/src/lxc/lxc_
  
  /**
   * lxcSetContainerResources
-@@ -618,10 +620,13 @@
+@@ -617,10 +619,13 @@
                               _("Unable to add task %d to cgroup for domain %s"),
                               getpid(), def->name);
      }
@@ -32,7 +31,7 @@ diff -ur libvirt-0.9.12/src/lxc/lxc_controller.c libvirt-0.9.12-lxc/src/lxc/lxc_
  
      return rc;
  }
-@@ -710,6 +715,63 @@
+@@ -709,6 +714,63 @@
  static bool quit = false;
  static virMutex lock;
  static int sigpipe[2];
@@ -96,7 +95,7 @@ diff -ur libvirt-0.9.12/src/lxc/lxc_controller.c libvirt-0.9.12-lxc/src/lxc/lxc_
  
  static void lxcSignalChildHandler(int signum ATTRIBUTE_UNUSED)
  {
-@@ -1135,6 +1196,18 @@
+@@ -1134,6 +1196,18 @@
          goto cleanup;
      }
  
@@ -115,7 +114,7 @@ diff -ur libvirt-0.9.12/src/lxc/lxc_controller.c libvirt-0.9.12-lxc/src/lxc/lxc_
      VIR_DEBUG("serverFd=%d clientFd=%d",
                serverFd, clientFd);
      virResetLastError();
-@@ -1554,6 +1627,7 @@
+@@ -1539,6 +1613,7 @@
          goto cleanup;
      VIR_FORCE_CLOSE(control[1]);
      VIR_FORCE_CLOSE(containerhandshake[1]);
diff --git a/libvirt-sasl.patch b/libvirt-sasl.patch
index b07852c..5162910 100644
--- a/libvirt-sasl.patch
+++ b/libvirt-sasl.patch
@@ -40,44 +40,6 @@ diff -ru libvirt-0.8.8/daemon/Makefile.am libvirt-0.8.8-sasl/daemon/Makefile.am
  install-data-sasl:
  uninstall-data-sasl:
 diff -ru libvirt-0.8.8/daemon/test_libvirtd.aug libvirt-0.8.8-sasl/daemon/test_libvirtd.aug
---- libvirt-0.8.8/daemon/test_libvirtd.aug	2011-01-31 02:30:59.000000000 +0100
-+++ libvirt-0.8.8-sasl/daemon/test_libvirtd.aug	2011-04-28 11:45:47.697741165 +0200
-@@ -108,7 +108,7 @@
- #          the network providing auth (eg, TLS/x509 certificates)
- #
- #  - sasl: use SASL infrastructure. The actual auth scheme is then
--#          controlled from /etc/sasl2/libvirt.conf. For the TCP
-+#          controlled from /etc/sasl/libvirt.conf. For the TCP
- #          socket only GSSAPI & DIGEST-MD5 mechanisms will be used.
- #          For non-TCP or TLS sockets,  any scheme is allowed.
- #
-@@ -139,7 +139,7 @@
- # If you don't enable SASL, then all TCP traffic is cleartext.
- # Don't do this outside of a dev/test scenario. For real world
- # use, always enable SASL and use the GSSAPI or DIGEST-MD5
--# mechanism in /etc/sasl2/libvirt.conf
-+# mechanism in /etc/sasl/libvirt.conf
- auth_tcp = \"sasl\"
- 
- # Change the authentication scheme for TLS sockets.
-@@ -383,7 +383,7 @@
-         { "#comment" = "the network providing auth (eg, TLS/x509 certificates)" }
-         { "#comment" = "" }
-         { "#comment" = "- sasl: use SASL infrastructure. The actual auth scheme is then" }
--        { "#comment" = "controlled from /etc/sasl2/libvirt.conf. For the TCP" }
-+        { "#comment" = "controlled from /etc/sasl/libvirt.conf. For the TCP" }
-         { "#comment" = "socket only GSSAPI & DIGEST-MD5 mechanisms will be used." }
-         { "#comment" = "For non-TCP or TLS sockets,  any scheme is allowed." }
-         { "#comment" = "" }
-@@ -414,7 +414,7 @@
-         { "#comment" = "If you don't enable SASL, then all TCP traffic is cleartext." }
-         { "#comment" = "Don't do this outside of a dev/test scenario. For real world" }
-         { "#comment" = "use, always enable SASL and use the GSSAPI or DIGEST-MD5" }
--        { "#comment" = "mechanism in /etc/sasl2/libvirt.conf" }
-+        { "#comment" = "mechanism in /etc/sasl/libvirt.conf" }
-         { "auth_tcp" = "sasl" }
-         { "#empty" }
-         { "#comment" = "Change the authentication scheme for TLS sockets." }
 diff -ru libvirt-0.8.8/docs/auth.html libvirt-0.8.8-sasl/docs/auth.html
 --- libvirt-0.8.8/docs/auth.html	2011-02-17 05:13:12.000000000 +0100
 +++ libvirt-0.8.8-sasl/docs/auth.html	2011-04-28 11:45:43.429741167 +0200
@@ -126,9 +88,8 @@ diff -ru libvirt-0.8.8/libvirt.spec.in libvirt-0.8.8-sasl/libvirt.spec.in
  %endif
  
  %files devel
-diff -ru libvirt-0.8.8/src/qemu/qemu.conf libvirt-0.8.8-sasl/src/qemu/qemu.conf
---- libvirt-0.8.8/src/qemu/qemu.conf	2011-02-16 07:36:53.000000000 +0100
-+++ libvirt-0.8.8-sasl/src/qemu/qemu.conf	2011-04-28 11:45:47.091741165 +0200
+--- libvirt-0.9.13/src/qemu/qemu.conf.orig	2012-05-31 16:23:22.000000000 +0200
++++ libvirt-0.9.13/src/qemu/qemu.conf	2012-07-08 11:37:16.366378718 +0200
 @@ -74,18 +74,18 @@
  # Examples include vinagre, virt-viewer and virt-manager
  # itself. UltraVNC, RealVNC, TightVNC do not support this
@@ -137,7 +98,7 @@ diff -ru libvirt-0.8.8/src/qemu/qemu.conf libvirt-0.8.8-sasl/src/qemu/qemu.conf
 +# It is necessary to configure /etc/sasl/qemu.conf to choose
  # the desired SASL plugin (eg, GSSPI for Kerberos)
  #
- # vnc_sasl = 1
+ #vnc_sasl = 1
  
  
 -# The default SASL configuration file is located in /etc/sasl2/
@@ -146,58 +107,12 @@ diff -ru libvirt-0.8.8/src/qemu/qemu.conf libvirt-0.8.8-sasl/src/qemu/qemu.conf
  # override the configs in this location. Set this parameter to
  # point to the directory, and create a qemu.conf in that location
  #
--# vnc_sasl_dir = "/some/directory/sasl2"
-+# vnc_sasl_dir = "/some/directory/sasl"
- 
+-#vnc_sasl_dir = "/some/directory/sasl2"
++#vnc_sasl_dir = "/some/directory/sasl"
  
  
+ # QEMU implements an extension for providing audio over a VNC connection,
 diff -ru libvirt-0.8.8/src/qemu/test_libvirtd_qemu.aug libvirt-0.8.8-sasl/src/qemu/test_libvirtd_qemu.aug
---- libvirt-0.8.8/src/qemu/test_libvirtd_qemu.aug	2011-01-31 02:30:59.000000000 +0100
-+++ libvirt-0.8.8-sasl/src/qemu/test_libvirtd_qemu.aug	2011-04-28 11:45:47.103741165 +0200
-@@ -67,18 +67,18 @@
- # Examples include vinagre, virt-viewer and virt-manager
- # itself. UltraVNC, RealVNC, TightVNC do not support this
- #
--# It is necessary to configure /etc/sasl2/qemu.conf to choose
-+# It is necessary to configure /etc/sasl/qemu.conf to choose
- # the desired SASL plugin (eg, GSSPI for Kerberos)
- #
- vnc_sasl = 1
- 
- 
--# The default SASL configuration file is located in /etc/sasl2/
-+# The default SASL configuration file is located in /etc/sasl/
- # When running libvirtd unprivileged, it may be desirable to
- # override the configs in this location. Set this parameter to
- # point to the directory, and create a qemu.conf in that location
- #
--vnc_sasl_dir = \"/some/directory/sasl2\"
-+vnc_sasl_dir = \"/some/directory/sasl\"
- 
- security_driver = \"selinux\"
- 
-@@ -181,18 +181,18 @@
- { "#comment" = "Examples include vinagre, virt-viewer and virt-manager" }
- { "#comment" = "itself. UltraVNC, RealVNC, TightVNC do not support this" }
- { "#comment" = "" }
--{ "#comment" = "It is necessary to configure /etc/sasl2/qemu.conf to choose" }
-+{ "#comment" = "It is necessary to configure /etc/sasl/qemu.conf to choose" }
- { "#comment" = "the desired SASL plugin (eg, GSSPI for Kerberos)" }
- { "#comment" = "" }
- { "vnc_sasl" = "1" }
- { "#empty" }
- { "#empty" }
--{ "#comment" = "The default SASL configuration file is located in /etc/sasl2/" }
-+{ "#comment" = "The default SASL configuration file is located in /etc/sasl/" }
- { "#comment" = "When running libvirtd unprivileged, it may be desirable to" }
- { "#comment" = "override the configs in this location. Set this parameter to" }
- { "#comment" = "point to the directory, and create a qemu.conf in that location" }
- { "#comment" = "" }
--{ "vnc_sasl_dir" = "/some/directory/sasl2" }
-+{ "vnc_sasl_dir" = "/some/directory/sasl" }
- { "#empty" }
- { "security_driver" = "selinux" }
- { "#empty" }
 diff -ru libvirt-0.8.8/tests/confdata/libvirtd.conf libvirt-0.8.8-sasl/tests/confdata/libvirtd.conf
 --- libvirt-0.8.8/tests/confdata/libvirtd.conf	2010-05-27 14:03:22.000000000 +0200
 +++ libvirt-0.8.8-sasl/tests/confdata/libvirtd.conf	2011-04-28 11:45:46.878741165 +0200
diff --git a/libvirt.spec b/libvirt.spec
index 7b16ad2..468fd98 100644
--- a/libvirt.spec
+++ b/libvirt.spec
@@ -27,20 +27,18 @@
 Summary:	Toolkit to interact with virtualization capabilities
 Summary(pl.UTF-8):	Narzędzia współpracujące z funkcjami wirtualizacji
 Name:		libvirt
-Version:	0.9.12
-Release:	4
+Version:	0.9.13
+Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	ftp://ftp.libvirt.org/libvirt/%{name}-%{version}.tar.gz
-# Source0-md5:	5e842bc55733ceba60c64767580ff3e4
+# Source0-md5:	86cbe53ee662e3b9e8bb0c63c737ba27
 Source1:	%{name}.init
 Source2:	%{name}.tmpfiles
 Patch0:		%{name}-sasl.patch
 Patch1:		%{name}-lxc.patch
 Patch2:		%{name}-qemu-acl.patch
 Patch3:		%{name}-xend.patch
-Patch4:		lxc-without-selinux.patch
-Patch5:		%{name}-driver-modules.patch
 URL:		http://www.libvirt.org/
 BuildRequires:	audit-libs-devel
 BuildRequires:	augeas-devel
@@ -95,6 +93,12 @@ Requires:	libselinux >= 2.0.82
 Requires:	libssh2 >= 1.0
 Requires:	libxml2 >= 1:2.6.0
 Requires:	openwsman-libs >= 2.2.3
+Obsoletes:	libvirt-daemon-esx
+Obsoletes:	libvirt-daemon-hyperv
+Obsoletes:	libvirt-daemon-openvz
+Obsoletes:	libvirt-daemon-phyp
+Obsoletes:	libvirt-daemon-vbox
+Obsoletes:	libvirt-daemon-vmware
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -260,36 +264,6 @@ Demon działający po stronie serwera wymagany do zarządzania funkcjami
 wirtualizacji nowych wersji Linuksa. Wymaga podpakietu specyficznego
 dla hipernadzorcy.
 
-%package daemon-esx
-Summary:	Server side driver required to run VMware ESX guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości VMware ESX
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-esx
-Server side driver required to manage the virtualization capabilities
-of the VMware ESX emulators.
-
-%description daemon-esx -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji emulatora VMware ESX.
-
-%package daemon-hyperv
-Summary:	Server side driver required to run Microsoft Hyper-V guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości Microsoft Hyper-V
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-hyperv
-Server side driver required to manage the virtualization capabilities
-of the Microsoft Hyper-V emulators.
-
-%description daemon-hyperv -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji emulatora Microsoft Hyper-V.
-
 %package daemon-libxl
 Summary:	Server side driver required to run XEN guests (xenlight)
 Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości XEN (xenlight)
@@ -322,36 +296,6 @@ of LXC.
 Sterownik wymagany po stronie serwera do zarządzania funkcjami
 wirtualizacji LXC.
 
-%package daemon-openvz
-Summary:	Server side driver required to run OpenVZ guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości OpenVZ
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-openvz
-Server side driver required to manage the virtualization capabilities
-of OpenVZ.
-
-%description daemon-openvz -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji OpenVZ.
-
-%package daemon-phyp
-Summary:	Server side driver required to run Power Hypervisors guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości Power Hypervisors
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-phyp
-Server side driver required to manage the virtualization capabilities
-of Power Hypervisors.
-
-%description daemon-phyp -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji Power Hypervisors.
-
 %package daemon-qemu
 Summary:	Server side driver required to run QEMU guests
 Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości QEMU
@@ -388,36 +332,6 @@ of UML.
 Sterownik wymagany po stronie serwera do zarządzania funkcjami
 wirtualizacji UML.
 
-%package daemon-vbox
-Summary:	Server side driver required to run Oracle VirtualBox guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości Oracle VirtualBox
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-vbox
-Server side driver required to manage the virtualization capabilities
-of Oracle VirtualBox.
-
-%description daemon-vbox -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji Oracle VirtualBox.
-
-%package daemon-vmware
-Summary:	Server side driver required to run VMware Workstation guests
-Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości VMware Workstation
-Group:		Libraries
-Requires:	%{name}-daemon = %{version}-%{release}
-Provides:	libvirt(hypervisor)
-
-%description daemon-vmware
-Server side driver required to manage the virtualization capabilities
-of VMware Workstation.
-
-%description daemon-vmware -l pl.UTF-8
-Sterownik wymagany po stronie serwera do zarządzania funkcjami
-wirtualizacji VMware Workstation.
-
 %package daemon-xen
 Summary:	Server side driver required to run XEN guests
 Summary(pl.UTF-8):	Sterownik wymagany po stronie serwera do uruchamiania gości XEN
@@ -492,8 +406,6 @@ biblioteki libvirt.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
-%patch4 -p1
-%patch5 -p1
 
 # weird translations
 %{__rm} po/{my,eu_ES}.{po,gmo}
@@ -733,19 +645,6 @@ NORESTART=1
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_test.so
-
-%if %{with esx}
-%files daemon-esx
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_esx.so
-%endif
-
-%if %{with hyperv}
-%files daemon-hyperv
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_hyperv.so
-%endif
 
 %if %{with libxl}
 %files daemon-libxl
@@ -770,18 +669,6 @@ NORESTART=1
 %attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so
 %endif
 
-%if %{with openvz}
-%files daemon-openvz
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_openvz.so
-%endif
-
-%if %{with phyp}
-%files daemon-phyp
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_phyp.so
-%endif
-
 %if %{with qemu}
 %files daemon-qemu
 %defattr(644,root,root,755)
@@ -806,18 +693,6 @@ NORESTART=1
 %attr(700,root,root) %dir /var/log/libvirt/uml
 %endif
 
-%if %{with vbox}
-%files daemon-vbox
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so
-%endif
-
-%if %{with vmware}
-%files daemon-vmware
-%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libvirt/connection-driver/libvirt_driver_vmware.so
-%endif
-
 %if %{with xen}
 %files daemon-xen
 %defattr(644,root,root,755)


More information about the pld-cvs-commit mailing list