diff --git a/virt-manager.changes b/virt-manager.changes index a39af902..29f3666e 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Mar 28 08:00:48 MDT 2014 - carnold@suse.com + +- Requires for grub2-x86_64-xen is only valid for x86_64 + virt-manager.spec + ------------------------------------------------------------------- Wed Mar 27 18:54:21 MDT 2014 - carnold@suse.com diff --git a/virt-manager.spec b/virt-manager.spec index 15b529d0..f2bed168 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -68,16 +68,17 @@ Patch154: virtinst-detect-suse-distros.patch Patch155: virtinst-xen-drive-type.patch Patch156: virtinst-modify-gui-defaults.patch Patch157: virtinst-pvgrub2-bootloader.patch +Patch158: virtinst-set-qemu-emulator.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define verrel %{version}-%{release} -Requires: avahi -Requires: dbus-1-x11 -Requires: dconf +Requires: virt-manager-common = %{verrel} +Requires: avahi Requires: gtk3 Requires: python-gconf -Requires: virt-manager-common = %{verrel} +Requires: dconf +Requires: dbus-1-x11 Requires: vm-install >= 0.5.6 # Libvirt-glib @@ -92,12 +93,12 @@ Requires: typelib-1_0-Vte-2_90 Requires: gtk-vnc2 Requires: libspice-client-glib-2_0-8 Requires: libspice-client-gtk-3_0-4 -Requires: python-gobject-cairo -Requires: typelib-1_0-GVnc-1_0 -Requires: typelib-1_0-Gtk-3_0 -Requires: typelib-1_0-GtkVnc-2_0 Requires: typelib-1_0-SpiceClientGlib-2_0 Requires: typelib-1_0-SpiceClientGtk-3_0 +Requires: typelib-1_0-Gtk-3_0 +Requires: typelib-1_0-GVnc-1_0 +Requires: typelib-1_0-GtkVnc-2_0 +Requires: python-gobject-cairo Recommends: python-SpiceClientGtk Requires: virt-install @@ -126,12 +127,14 @@ Group: System/Monitoring # This version not strictly required: virt-manager should work with older, # however varying amounts of functionality will not be enabled. Requires: libvirt-python >= 0.7.0 +Requires: python-urlgrabber Requires: python-ipaddr Requires: python-libxml2 -Requires: python-urlgrabber +%ifarch x86_64 %if 0%{?suse_version} >= 1315 Requires: grub2-x86_64-xen %endif +%endif %description common Common files used by the different virt-manager interfaces, as well as @@ -144,10 +147,10 @@ Group: System/Monitoring Requires: virt-manager-common = %{verrel} -Provides: python-virtinst Provides: virt-clone -Provides: virt-convert Provides: virt-image +Provides: virt-convert +Provides: python-virtinst Obsoletes: python-virtinst <= 0.600.4 Supplements: virt-manager @@ -191,6 +194,7 @@ machine). %patch155 -p1 %patch156 -p1 %patch157 -p1 +%patch158 -p1 %build %if %{qemu_user} diff --git a/virtinst-set-qemu-emulator.patch b/virtinst-set-qemu-emulator.patch new file mode 100644 index 00000000..a473b24b --- /dev/null +++ b/virtinst-set-qemu-emulator.patch @@ -0,0 +1,29 @@ +Index: virt-manager-1.0.1/virtinst/guest.py +=================================================================== +--- virt-manager-1.0.1.orig/virtinst/guest.py ++++ virt-manager-1.0.1/virtinst/guest.py +@@ -19,6 +19,7 @@ + # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + # MA 02110-1301 USA. + ++import os + import logging + + import urlgrabber.progress as progress +@@ -724,12 +725,13 @@ class Guest(XMLBuilder): + self.emulator = None + return + +- if self.emulator: ++ preferred_emulator = "/usr/lib/xen/bin/qemu-system-i386" ++ if self.emulator and self.emulator == preferred_emulator: + return + + if self.os.is_hvm() and self.type == "xen": +- if self.conn.caps.host.cpu.arch == "x86_64": +- self.emulator = "/usr/lib64/xen/bin/qemu-dm" ++ if os.path.exists(preferred_emulator): ++ self.emulator = preferred_emulator + else: + self.emulator = "/usr/lib/xen/bin/qemu-dm" +