virt-viewer: add opengl to REQUIRED_DISTRO_FEATURES

Fixes:
  ERROR: Nothing PROVIDES 'spice-gtk' (but /build/layers/meta-virtualization/recipes-extended/virt-viewer/virt-viewer_11.0.bb DEPENDS on or otherwise requires it)
spice-gtk was skipped: missing required distro feature 'opengl' (not in DISTRO_FEATURES)
  ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
  Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'virt-viewer', 'spice-gtk']

Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
This commit is contained in:
Mingli Yu 2022-12-20 21:15:29 +08:00 committed by Bruce Ashfield
parent e48b934c83
commit d95762855e

View File

@ -16,6 +16,8 @@ SRCREV = "1e99e5e4f409da91638eb79067ec738994c28ef5"
PV = "11.0+git${SRCPV}"
S = "${WORKDIR}/git"
REQUIRED_DISTRO_FEATURES = "opengl"
PACKAGECONFIG ?= "libvirt spice vte"
PACKAGECONFIG[libvirt] = "-Dlibvirt=enabled,-Dlibvirt=disabled,libvirt libvirt-glib"
@ -23,7 +25,7 @@ PACKAGECONFIG[spice] = "-Dspice=enabled,-Dspice=disabled,spice-gtk spice-protoco
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
inherit meson pkgconfig gtk-icon-cache mime mime-xdg gobject-introspection features_check
FILES:${PN} += "${datadir}"
GIR_MESON_OPTION = ''