[PATCHv2 2/2] virt-viewer: add recipe


Markus Volk
 

virt-viewer is a minimal tool for displaying the graphical console of a v=
irtual machine.
The console is accessed using the VNC or SPICE protocol. The guest can be=
referred to
based on its name, ID, or UUID. If the guest is not already running, then=
the viewer can
be told to wait until it starts before attempting to connect to the conso=
le. The viewer
can connect directly to both local and remotely hosted machines , optiona=
lly using SSL/TLS
encryption.

virt-viewer is the required client for the debian based proxmox ve. That'=
s also the environ-
ment for which it was tested at runtime (only on x86_64).

I have successfully compiled it for x86_64, aarch64 and qemumips. Other p=
latforms might work
(as long as gobject-introspection is available), but are untested.
Adding the vnc protocol would pull in a layer dependency on meta-gnome.

Signed-off-by: Markus Volk <f_l_k@...>
---
.../virt-viewer/virt-viewer_11.0.bb | 29 +++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 recipes-extended/virt-viewer/virt-viewer_11.0.bb

diff --git a/recipes-extended/virt-viewer/virt-viewer_11.0.bb b/recipes-e=
xtended/virt-viewer/virt-viewer_11.0.bb
new file mode 100644
index 0000000..d71e558
--- /dev/null
+++ b/recipes-extended/virt-viewer/virt-viewer_11.0.bb
@@ -0,0 +1,29 @@
+SUMMARY =3D "Virtual Machine Viewer"
+LICENSE =3D "GPL-2.0-only"
+LIC_FILES_CHKSUM =3D "file://COPYING;md5=3D59530bdf33659b29e73d4adb9f9f6=
552"
+
+# for ovirt support librest-0.7 and libgovirt would be needed
+DEPENDS =3D " \
+ desktop-file-utils-native \
+ glib-2.0 \
+ gtk+3 \
+ libxml2 \
+"
+
+SRC_URI =3D "git://gitlab.com/virt-viewer/virt-viewer.git;protocol=3Dhtt=
ps;branch=3Dmaster"
+
+SRCREV =3D "1e99e5e4f409da91638eb79067ec738994c28ef5"
+PV =3D "11.0+git${SRCPV}"
+S =3D "${WORKDIR}/git"
+
+PACKAGECONFIG ?=3D "libvirt spice vte"
+
+PACKAGECONFIG[libvirt] =3D "-Dlibvirt=3Denabled,-Dlibvirt=3Ddisabled,lib=
virt libvirt-glib"
+PACKAGECONFIG[spice] =3D "-Dspice=3Denabled,-Dspice=3Ddisabled,spice-gtk=
spice-protocol"
+PACKAGECONFIG[vnc] =3D "-Dvnc=3Denabled,-Dvnc=3Ddisabled,gtk-vnc"
+PACKAGECONFIG[vte] =3D "-Dvte=3Denabled,-Dvte=3Ddisabled,vte"
+
+inherit meson pkgconfig gtk-icon-cache mime mime-xdg gobject-introspecti=
on
+
+FILES:${PN} +=3D "${datadir}"
+GIR_MESON_OPTION =3D ''
--=20
2.34.1


Bruce Ashfield
 



On Tue, Nov 1, 2022 at 12:31 PM Markus Volk <f_l_k@...> wrote:
virt-viewer is a minimal tool for displaying the graphical console of a virtual machine.
The console is accessed using the VNC or SPICE protocol. The guest can be referred to
based on its name, ID, or UUID. If the guest is not already running, then the viewer can
be told to wait until it starts before attempting to connect to the console. The viewer
can connect directly to both local and remotely hosted machines , optionally using SSL/TLS
encryption.

virt-viewer is the required client for the debian based proxmox ve. That's also the environ-
ment for which it was tested at runtime (only on x86_64).

I have successfully compiled it for x86_64, aarch64 and qemumips. Other platforms might work
(as long as gobject-introspection is available), but are untested.
Adding the vnc protocol would pull in a layer dependency on meta-gnome.

Signed-off-by: Markus Volk <f_l_k@...>
---
 .../virt-viewer/virt-viewer_11.0.bb           | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 recipes-extended/virt-viewer/virt-viewer_11.0.bb

diff --git a/recipes-extended/virt-viewer/virt-viewer_11.0.bb b/recipes-extended/virt-viewer/virt-viewer_11.0.bb
new file mode 100644
index 0000000..d71e558
--- /dev/null
+++ b/recipes-extended/virt-viewer/virt-viewer_11.0.bb
@@ -0,0 +1,29 @@
+SUMMARY = "Virtual Machine Viewer"
+LICENSE = "GPL-2.0-only"
+LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
+
+# for ovirt support librest-0.7 and libgovirt would be needed
+DEPENDS = " \
+       desktop-file-utils-native \
+       glib-2.0 \
+       gtk+3 \

gtk+3 was a concern about a new dependency, but I just double checked and since it is part of the main meta-openembedded layer, it isn't a new dependency.

Bruce

 
+       libxml2 \
+"
+
+SRC_URI = "git://gitlab.com/virt-viewer/virt-viewer.git;protocol=https;branch=master"
+
+SRCREV = "1e99e5e4f409da91638eb79067ec738994c28ef5"
+PV = "11.0+git${SRCPV}"
+S = "${WORKDIR}/git"
+
+PACKAGECONFIG ?= "libvirt spice vte"
+
+PACKAGECONFIG[libvirt] = "-Dlibvirt=enabled,-Dlibvirt=disabled,libvirt libvirt-glib"
+PACKAGECONFIG[spice] = "-Dspice=enabled,-Dspice=disabled,spice-gtk spice-protocol"
+PACKAGECONFIG[vnc] = "-Dvnc=enabled,-Dvnc=disabled,gtk-vnc"
+PACKAGECONFIG[vte] = "-Dvte=enabled,-Dvte=disabled,vte"
+
+inherit meson pkgconfig gtk-icon-cache mime mime-xdg gobject-introspection
+
+FILES:${PN} += "${datadir}"
+GIR_MESON_OPTION = ''
--
2.34.1






--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II