Index: head/deskutils/virt-manager/Makefile =================================================================== --- head/deskutils/virt-manager/Makefile (revision 426602) +++ head/deskutils/virt-manager/Makefile (revision 426603) @@ -1,56 +1,57 @@ # $FreeBSD$ 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}/ MAINTAINER= novel@FreeBSD.org COMMENT= Toolkit to interact with virtualization capabilities LICENSE= LGPL3 LIB_DEPENDS= libvirt.so:devel/libvirt RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.2:devel/py-dbus \ ${PYTHON_PKGNAMEPREFIX}libxml2>=2.7.8:textproc/py-libxml2 \ vte3>=0:x11-toolkits/vte3 \ ${PYTHON_PKGNAMEPREFIX}ipaddr>=0:devel/py-ipaddr \ ${PYTHON_PKGNAMEPREFIX}urlgrabber>=0:www/py-urlgrabber \ ${PYTHON_PKGNAMEPREFIX}libvirt>=0:devel/py-libvirt \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests \ gtk-vnc>=0.4.4:net/gtk-vnc \ libvirt-glib>=0.1.9:devel/libvirt-glib \ libosinfo>=0:devel/libosinfo \ spice-gtk>=0.26:deskutils/spice-gtk PYDISTUTILS_INSTALLNOSINGLE= yes PYDISTUTILS_CONFIGURE_TARGET= configure PYDISTUTILS_CONFIGUREARGS= --prefix=${PREFIX} INSTALLS_ICONS= yes USES= python:2.7 gettext shebangfix USE_PYTHON= noegginfo autoplist distutils NO_ARCH= yes USE_GNOME= introspection:run intltool librsvg2 pygobject3 INSTALLS_ICONS= yes python_OLD_CMD= "/usr/bin/python2 -tt" SHEBANG_FILES= virt-manager \ virt-install \ virt-clone \ virt-convert \ virt-xml GLIB_SCHEMAS= org.virt-manager.virt-manager.gschema.xml #add workaround for two autoplist functions post-install: @${MKDIR} ${STAGEDIR}/${PREFIX}/share/glib-2.0/schemas/ .for file in ${GLIB_SCHEMAS} ${INSTALL_DATA} ${WRKSRC}/data/${file} ${STAGEDIR}/${PREFIX}/share/glib-2.0/schemas .endfor .include Index: head/deskutils/virt-manager/files/patch-virtManager_viewers.py =================================================================== --- head/deskutils/virt-manager/files/patch-virtManager_viewers.py (nonexistent) +++ head/deskutils/virt-manager/files/patch-virtManager_viewers.py (revision 426603) @@ -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) + + + ##################### Property changes on: head/deskutils/virt-manager/files/patch-virtManager_viewers.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property