[Pkg-libvirt-maintainers] Bug#799771: virt-manager: Dependency missing: gir1.2-spice-client-gtk-3.0 gir1.2-spice-client-gtk-2.0
Adel Belhouane
bugs.a.b at free.fr
Tue Mar 29 02:20:56 UTC 2016
Package: virt-manager
Followup-For: Bug #799771
Tags: patch
Hello,
I got the same problem, and I'd say it's a regression from version
1.0.1-5. This one line patch (to the debian patch) pasted below will
fix it by handling the gi.require_version() too. Spice is no longer needed.
Tested working ok for version 1.3.2-1/experimental on armhf (and patch
applies the same to version 1.2.1-4).
regards,
Adel
diff -U5 -rN a/debian/patches/Make-SpiceClientGtk-optional.patch b/debian/patches/Make-SpiceClientGtk-optional.patch
--- a/debian/patches/Make-SpiceClientGtk-optional.patch 2016-02-04 11:23:21.000000000 +0100
+++ b/debian/patches/Make-SpiceClientGtk-optional.patch 2016-03-29 03:29:12.260132728 +0200
@@ -49,10 +49,10 @@
+try:
+ gi.require_version('SpiceClientGtk', '3.0')
+ from gi.repository import SpiceClientGtk
+ from gi.repository import SpiceClientGLib
+ have_spice_gtk = True
-+except ImportError:
++except (ValueError, ImportError):
+ have_spice_gtk = False
import logging
import socket
More information about the Pkg-libvirt-maintainers
mailing list