commit virt-viewer for openSUSE:Factory
Hello community, here is the log from the commit of package virt-viewer for openSUSE:Factory checked in at Thu Aug 6 00:51:51 CEST 2009. -------- --- virt-viewer/virt-viewer.changes 2008-11-07 18:51:32.000000000 +0100 +++ /mounts/work_src_done/STABLE/virt-viewer/virt-viewer.changes 2009-08-04 16:37:19.000000000 +0200 @@ -1,0 +2,43 @@ +Thu Jul 30 20:12:15 MDT 2009 - carnold@novell.com + +- Update to virt-viewer version 0.2.0 + + Switch UI over to use Glade + + Support graphical dialog for VNC and libvirt authentication + + Resize window to match VNC desktop size where possible + + Scale down VNC desktop if it cannot fit in host desktop space + + Allow user to resize window to arbitrary size, scaling VNC + + Fix blocking of accelerators + + Allow automatic reconnect to a VM via --reconnect + + Use libvirt events to detect when VM changes state + + Wait for VM to appear if it does not exist + + Fix plugin build with newer xulrunner + + Port & build for Mingw32 target + +------------------------------------------------------------------- +Tue Jul 28 09:35:16 MDT 2009 - carnold@novell.com + +- bnc#522740 - SLES10SP3 Xen - Unable to install Netware OES2 + 6.5SP8 VM + +------------------------------------------------------------------- +Tue Jun 16 13:38:28 MDT 2009 - carnold@novell.com + +- bnc#448474 - Patch to enable keys that sends a NetWare server to + the debugger. + netware-keycombo.patch + +------------------------------------------------------------------- +Fri May 8 08:25:15 MDT 2009 - carnold@novell.com + +- bnc#499560 - Viirt-viewer needs ability to crash dump Windows VMs + with Ctrl+Scroll+Scroll + windows-keycombo.patch + +------------------------------------------------------------------- +Mon Mar 9 09:57:00 MDT 2009 - jfehlig@novell.com + +- Connect viewer to vnc-listen address specified in domain + configuration (bnc#436629) + vnc-listen.patch + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- virt-viewer-0.0.3.tar.gz New: ---- netware-keycombo.patch virt-viewer-0.2.0.tar.gz vnc-listen.patch windows-keycombo.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virt-viewer.spec ++++++ --- /var/tmp/diff_new_pack.6K9Vjv/_old 2009-08-06 00:50:31.000000000 +0200 +++ /var/tmp/diff_new_pack.6K9Vjv/_new 2009-08-06 00:50:31.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package virt-viewer (Version 0.0.3) +# spec file for package virt-viewer (Version 0.2.0) # -# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,19 +18,23 @@ Name: virt-viewer -Version: 0.0.3 -Release: 3 +Version: 0.2.0 +Release: 1 Summary: Virtual Machine Viewer Group: System/Monitoring License: GPL v2 or later Url: http://www.virt-manager.org BuildRoot: %{_tmppath}/%{name}-%{version}-build -Source0: virt-viewer-0.0.3.tar.gz +Source0: virt-viewer-0.2.0.tar.gz Patch0: netcat.diff +Patch1: vnc-listen.patch +Patch2: windows-keycombo.patch +Patch3: netware-keycombo.patch BuildRequires: gtk2-devel BuildRequires: libvirt-devel BuildRequires: libxml2-devel BuildRequires: gtk-vnc-devel >= 0.1.0 +BuildRequires: libglade2-devel #our build requirements BuildRequires: xen-devel Requires: netcat @@ -50,6 +54,9 @@ %prep %setup -q %patch0 -p1 +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 %build # Note: remote GTKVNC_CFLAGS and GTKVNC_LIBS when gtk-vnc.pc is fixed in STABLE @@ -68,5 +75,10 @@ %doc COPYING AUTHORS ChangeLog %{_bindir}/%{name} %{_mandir}/man1/%{name}* +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/ui +/usr/share/virt-viewer/ui/about.glade +/usr/share/virt-viewer/ui/auth.glade +/usr/share/virt-viewer/ui/viewer.glade %changelog ++++++ netcat.diff ++++++ --- /var/tmp/diff_new_pack.6K9Vjv/_old 2009-08-06 00:50:31.000000000 +0200 +++ /var/tmp/diff_new_pack.6K9Vjv/_new 2009-08-06 00:50:31.000000000 +0200 @@ -1,7 +1,8 @@ -diff -Nuar virt-viewer-0.0.3.orig/src/main.c virt-viewer-0.0.3/src/main.c ---- virt-viewer-0.0.3.orig/src/main.c 2008-03-10 08:49:48.000000000 -0600 -+++ virt-viewer-0.0.3/src/main.c 2008-11-07 10:42:50.000000000 -0700 -@@ -767,7 +767,7 @@ +Index: virt-viewer-0.2.0/src/viewer.c +=================================================================== +--- virt-viewer-0.2.0.orig/src/viewer.c ++++ virt-viewer-0.2.0/src/viewer.c +@@ -792,7 +792,7 @@ static int viewer_open_tunnel_ssh(const cmd[n++] = sshuser; } cmd[n++] = sshhost; ++++++ netware-keycombo.patch ++++++ Index: virt-viewer-0.2.0/src/viewer.c =================================================================== --- virt-viewer-0.2.0.orig/src/viewer.c +++ virt-viewer-0.2.0/src/viewer.c @@ -68,7 +68,7 @@ static const char * const menuNames[LAST }; -#define MAX_KEY_COMBO 3 +#define MAX_KEY_COMBO 4 struct keyComboDef { guint keys[MAX_KEY_COMBO]; guint nkeys; @@ -80,6 +80,11 @@ static const struct keyComboDef keyCombo { { GDK_Control_L, GDK_Alt_L, GDK_BackSpace }, 3, "Ctrl+Alt+_Backspace"}, { { GDK_Control_R, GDK_Scroll_Lock, GDK_Scroll_Lock }, 3, "Ctrl+Scroll+Scroll"}, { {}, 0, "" }, + { { GDK_F8 }, 1, "F_8"}, + { { GDK_F10 }, 1, "F_10"}, + { { GDK_Alt_L, GDK_F10 }, 2, "Alt+F_10"}, + { { GDK_Alt_R, GDK_Shift_R, GDK_Shift_L, GDK_Escape }, 4, "Alt+Shift+Shift+Esc"}, + { {}, 0, "" }, { { GDK_Control_L, GDK_Alt_L, GDK_F1 }, 3, "Ctrl+Alt+F_1"}, { { GDK_Control_L, GDK_Alt_L, GDK_F2 }, 3, "Ctrl+Alt+F_2"}, { { GDK_Control_L, GDK_Alt_L, GDK_F3 }, 3, "Ctrl+Alt+F_3"}, ++++++ virt-viewer-0.0.3.tar.gz -> virt-viewer-0.2.0.tar.gz ++++++ ++++ 65214 lines of diff (skipped) ++++++ vnc-listen.patch ++++++ Index: virt-viewer-0.2.0/src/viewer.c =================================================================== --- virt-viewer-0.2.0.orig/src/viewer.c +++ virt-viewer-0.2.0/src/viewer.c @@ -660,7 +660,7 @@ static int viewer_matches_domain(VirtVie return 0; } -static char * viewer_extract_vnc_port(virDomainPtr dom) +static char * viewer_extract_vnc_port(virDomainPtr dom, char **host) { char *xmldesc = virDomainGetXMLDesc(dom, 0); xmlDocPtr xml = NULL; @@ -673,6 +673,14 @@ static char * viewer_extract_vnc_port(vi if (!pctxt || !pctxt->sax) goto error; + obj = xmlXPathEval((const xmlChar *)"string(/domain/devices/graphics[@type='vnc']/@listen)", ctxt); + if (obj && obj->type == XPATH_STRING && + obj->stringval && obj->stringval[0]) { + *host = strdup((const char*)obj->stringval); + xmlXPathFreeObject(obj); + obj = NULL; + } + xml = xmlCtxtReadDoc(pctxt, (const xmlChar *)xmldesc, "domain.xml", NULL, XML_PARSE_NOENT | XML_PARSE_NONET | XML_PARSE_NOWARNING); @@ -832,18 +840,26 @@ static int viewer_activate(VirtViewer *v char *host = NULL; char *transport = NULL; char *user = NULL; + char *vnchost = NULL; int port, fd = -1; int ret = -1; if (viewer->active) goto cleanup; - if ((vncport = viewer_extract_vnc_port(dom)) == NULL) + if ((vncport = viewer_extract_vnc_port(dom, &vnchost)) == NULL) + { + free(vnchost); + vnchost = NULL; goto cleanup; + } if (viewer_extract_host(viewer->uri, &host, &transport, &user, &port) < 0) goto cleanup; + if (vnchost == NULL) + vnchost = strdup("127.0.0.1"); + DEBUG_LOG("Remote host is %s and transport %s user %s", host, transport ? transport : "", user ? user : ""); @@ -859,7 +875,7 @@ static int viewer_activate(VirtViewer *v if (fd >= 0) { vnc_display_open_fd(VNC_DISPLAY(viewer->vnc), fd); } else { - vnc_display_open_host(VNC_DISPLAY(viewer->vnc), host, vncport); + vnc_display_open_host(VNC_DISPLAY(viewer->vnc), vnchost, vncport); } viewer_set_status(viewer, "Connecting to VNC server"); ++++++ windows-keycombo.patch ++++++ Index: virt-viewer-0.2.0/src/viewer.c =================================================================== --- virt-viewer-0.2.0.orig/src/viewer.c +++ virt-viewer-0.2.0/src/viewer.c @@ -78,6 +78,7 @@ struct keyComboDef { static const struct keyComboDef keyCombos[] = { { { GDK_Control_L, GDK_Alt_L, GDK_Delete }, 3, "Ctrl+Alt+_Del"}, { { GDK_Control_L, GDK_Alt_L, GDK_BackSpace }, 3, "Ctrl+Alt+_Backspace"}, + { { GDK_Control_R, GDK_Scroll_Lock, GDK_Scroll_Lock }, 3, "Ctrl+Scroll+Scroll"}, { {}, 0, "" }, { { GDK_Control_L, GDK_Alt_L, GDK_F1 }, 3, "Ctrl+Alt+F_1"}, { { GDK_Control_L, GDK_Alt_L, GDK_F2 }, 3, "Ctrl+Alt+F_2"}, ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@Hilbert.suse.de