Currently net-mgmt/virt-viewer compiles without spice protocol support. Since we have deskutils/spice-gtk in ports tree I think it could be build with libspice-client-gtk-3.0.so and libspice-client-glib-2.0.so but removing --without-spice-gtk in Makefile dont help.
spice-gtk needs libusb-1.0 >= 1.0.16 on systems not supporting udev, but we only have libusb-1.0 1.0.9 on FreeBSD 10.1.
Can you please clarify the extend of this "not working"? This may be an upstream bug, as well, so any logs or screenshots may help. Thanks! -jgh
I have deskutils/spice-gtk installed and libspice-client-gtk* and libspice-client-glib* libs are both present. I have removed --without-spice-gtk from /usr/ports/net-mgmt/virt-viewer/Makefile and successfully rebuild the port. But virt-viewer is not configured with spice support: checking for SPICE_GTK... no and shurik@thinkpad:~> ldd /usr/local/bin/virt-viewer |grep spice shurik@thinkpad:~> The same on linux box: user@linux-lfzk:~> ldd /usr/bin/virt-viewer |grep spice libspice-client-gtk-3.0.so.4 => /usr/lib/libspice-client-gtk-3.0.so.4 (0xb7102000) libspice-client-glib-2.0.so.8 => /usr/lib/libspice-client-glib-2.0.so.8 (0xb64dc000) So, adding spice support to net-mgmt/virt-viewer is not trivial and requires something more?(as Ting-Wei Lan points)
I am looking into this, as it seems it is a matter of pointing to the correct libraries and pkgdata path. I'll also engage upstream during the process for any questions. The config.log is noting it can't find spice-protocol.pc, and it isn't part of the one in our tree. So this could be a version issue with spice, as well.
Created attachment 156722 [details] spice-protocol port I was able to get this to build, and attach to spice-gtk with some modifications. I will add this to the port, however after doing a: pkg install openssl spice-gtk, and then rebuilding virt-viewer as is, I was able to get it to build with spice-gtk support (and add --with-spice-gtk). (I will modify the virt-viewer port appropriately to bring everything it needs in) [helfman@its-helfman03 ~/workspace/ports/net-mgmt/virt-viewer]$ ldd /usr/local/bin/virt-viewer |grep spice libspice-client-gtk-3.0.so.4 => /usr/local/lib/libspice-client-gtk-3.0.so.4 (0x801b9e000) libspice-client-glib-2.0.so.8 => /usr/local/lib/libspice-client-glib-2.0.so.8 (0x80417a000) Additionally, I needed to add another port, which I will attach (untested, not built on pourdiere, yet, either)
Created attachment 156729 [details] virt-viewer patch Here is the update to virt-viewer. Again, not yet build tested.
I have successfully build virt-viewer port with your patches and connect to vm spice console (oVirt). All works great. Thank you, jgh!
A commit references this bug: Author: jgh Date: Wed May 13 20:53:40 UTC 2015 New revision: 386266 URL: https://svnweb.freebsd.org/changeset/ports/386266 Log: Add new port: devel/spice-protocol Spice protocol defines a set of protocol messages for accessing, controlling, and receiving inputs from remote computing devices (e.g., keyboard, video, mouse) across networks, and sending output to them. A controlled device can reside on either side, client and/or server. WWW: http://www.spice-space.org PR: 200046 (to support fixing) Changes: head/devel/Makefile head/devel/spice-protocol/ head/devel/spice-protocol/Makefile head/devel/spice-protocol/distinfo head/devel/spice-protocol/pkg-descr head/devel/spice-protocol/pkg-plist
A commit references this bug: Author: jgh Date: Thu May 14 00:04:20 UTC 2015 New revision: 386280 URL: https://svnweb.freebsd.org/changeset/ports/386280 Log: - add spice support - bump portrevision PR: 200046 Reported by: shuriku@shurik.kiev.ua Changes: head/net-mgmt/virt-viewer/Makefile