aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornovel <novel@FreeBSD.org>2016-11-21 00:10:19 +0800
committernovel <novel@FreeBSD.org>2016-11-21 00:10:19 +0800
commitb674c61f9b169e95e55190b81493423442a8bf75 (patch)
tree9b17ab5e5a47a73b67716b3b60a5f969da53797e
parent803e61d36ac7c6547bc1f3a124593fb8656c739b (diff)
downloadfreebsd-ports-gnome-b674c61f9b169e95e55190b81493423442a8bf75.tar.gz
freebsd-ports-gnome-b674c61f9b169e95e55190b81493423442a8bf75.tar.zst
freebsd-ports-gnome-b674c61f9b169e95e55190b81493423442a8bf75.zip
deskutils/virt-manager: fix spice console
- add an upstream patch to fix spice console - bump PORTREVISION PR: 214625 Submitted by: Alexandr Krivulya Obtained from: upstream git repository
-rw-r--r--deskutils/virt-manager/Makefile1
-rw-r--r--deskutils/virt-manager/files/patch-virtManager_viewers.py35
2 files changed, 36 insertions, 0 deletions
diff --git a/deskutils/virt-manager/Makefile b/deskutils/virt-manager/Makefile
index 5af28c74b0d8..b05d55a8da82 100644
--- a/deskutils/virt-manager/Makefile
+++ b/deskutils/virt-manager/Makefile
@@ -2,6 +2,7 @@
PORTNAME= virt-manager
PORTVERSION= 1.4.0
+PORTREVISION= 1
CATEGORIES= deskutils net-mgmt
MASTER_SITES= http://virt-manager.org/download/sources/${PORTNAME}/ \
LOCAL/jgh/deskutils/${PORTNAME}/
diff --git a/deskutils/virt-manager/files/patch-virtManager_viewers.py b/deskutils/virt-manager/files/patch-virtManager_viewers.py
new file mode 100644
index 000000000000..dd6ec8e3dc12
--- /dev/null
+++ b/deskutils/virt-manager/files/patch-virtManager_viewers.py
@@ -0,0 +1,35 @@
+--- virtManager/viewers.py.orig 2016-06-17 21:37:47 UTC
++++ virtManager/viewers.py
+@@ -538,16 +538,23 @@ class SpiceViewer(Viewer):
+ GObject.GObject.connect(self._spice_session, "channel-new",
+ self._channel_new_cb)
+
+- self._usbdev_manager = SpiceClientGLib.UsbDeviceManager.get(
+- self._spice_session)
+- self._usbdev_manager.connect("auto-connect-failed",
+- self._usbdev_redirect_error)
+- self._usbdev_manager.connect("device-error",
+- self._usbdev_redirect_error)
++ # Distros might have usb redirection compiled out, like OpenBSD
++ # https://bugzilla.redhat.com/show_bug.cgi?id=1348479
++ try:
++ self._usbdev_manager = SpiceClientGLib.UsbDeviceManager.get(
++ self._spice_session)
++ self._usbdev_manager.connect("auto-connect-failed",
++ self._usbdev_redirect_error)
++ self._usbdev_manager.connect("device-error",
++ self._usbdev_redirect_error)
+
+- autoredir = self.config.get_auto_redirection()
+- if autoredir:
+- gtk_session.set_property("auto-usbredir", True)
++ autoredir = self.config.get_auto_redirection()
++ if autoredir:
++ gtk_session.set_property("auto-usbredir", True)
++ except:
++ self._usbdev_manager = None
++ logging.debug("Error initializing spice usb device manager",
++ exc_info=True)
+
+
+ #####################