diff --git a/virt-manager-Gtk-30.patch b/virt-manager-Gtk-30.patch new file mode 100644 index 00000000..d2194d6a --- /dev/null +++ b/virt-manager-Gtk-30.patch @@ -0,0 +1,33 @@ +Index: virt-manager-1.0.1/virtManager/config.py +=================================================================== +--- virt-manager-1.0.1.orig/virtManager/config.py ++++ virt-manager-1.0.1/virtManager/config.py +@@ -21,8 +21,10 @@ import os + import logging + + # pylint: disable=E0611 ++import gi + from gi.repository import Gio + from gi.repository import GLib ++gi.require_version('Gtk', '3.0') + from gi.repository import Gtk + # pylint: enable=E0611 + +Index: virt-manager-1.0.1/virtManager/console.py +=================================================================== +--- virt-manager-1.0.1.orig/virtManager/console.py ++++ virt-manager-1.0.1/virtManager/console.py +@@ -21,10 +21,13 @@ + # + + # pylint: disable=E0611 ++import gi + from gi.repository import GObject + from gi.repository import Gtk + from gi.repository import Gdk ++gi.require_version('GtkVnc', '2.0') + from gi.repository import GtkVnc ++gi.require_version('SpiceclientGtk', '3.0') + from gi.repository import SpiceClientGtk + from gi.repository import SpiceClientGLib + # pylint: enable=E0611 diff --git a/virt-manager.changes b/virt-manager.changes index 6ebb2173..74157b0f 100644 --- a/virt-manager.changes +++ b/virt-manager.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Mon Oct 20 06:40:47 UTC 2014 - dimstar@opensuse.org + +- Add virt-manager-Gtk-30.patch: Specify in the code that we expect + Gtk 3.0 typelibs. The sumbold typelib(Gtk), as auto-detected by + go-find-deps, is provided by Gtk2 and Gtk3. As we also pull in + Vte, though, we are certain that we DO require the Gtk 3.0 + variant (boo#901868). + ------------------------------------------------------------------- Thu Oct 9 11:22:14 MDT 2014 - carnold@suse.com diff --git a/virt-manager.spec b/virt-manager.spec index bfa4163e..f3e0b895 100644 --- a/virt-manager.spec +++ b/virt-manager.spec @@ -129,6 +129,7 @@ Patch164: virtinst-refresh_before_fetch_pool.patch Patch165: virtinst-nfs-install-sanitize.patch Patch166: virtinst-ppc64le.patch Patch167: virtinst-ignore-error-403-on-directories.patch +Patch168: virt-manager-Gtk-30.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -300,6 +301,7 @@ machine). %patch165 -p1 %patch166 -p1 %patch167 -p1 +%patch168 -p1 %build %if %{qemu_user}