Skip to contentSkip to conversation

xf86-video-amdgpu: add opengl to REQUIRED_DISTRO_FEATURES

PATCH New [email protected] 1 participant 2 messages Dec 9, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 xf86-video-amdgpu: add opengl to REQUIRED_DISTRO_FEATURES

From: Mingli Yu <[email protected]>

Fix the below yocto compliance issue:
ERROR: Nothing PROVIDES 'virtual/libgbm' (but /build/layers/meta-openembedded/meta-oe/recipes-graphics/xorg-driver/xf86-video-amdgpu_22.0.0.bb DEPENDS on or otherwise requires it). Close matches:
virtual/libc
virtual/libomxil
virtual/libusb0
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers.
Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'xf86-video-amdgpu', 'virtual/libgbm']

---
 .../recipes-graphics/xorg-driver/xf86-video-amdgpu_22.0.0.bb    | 2 ++
 1 file changed, 2 insertions(+)
meta-oe/recipes-graphics/xorg-driver/xf86-video-amdgpu_22.0.0.bb +2 -0
index 94e2ea43e..3082e2e6b 100644
@@ -12,6 +12,8 @@ SRC_URI[sha256sum] = "bc47a1a8854e790270fa5de2fb9dfe8558139b03d8f68ac1057dcd235d
 XORG_DRIVER_COMPRESSOR = ".tar.gz"
 DEPENDS += "virtual/libx11 libdrm virtual/libgbm xorgproto"
 
+REQUIRED_DISTRO_FEATURES += "opengl"
+
 PACKAGECONFIG ??= "udev glamor"
 PACKAGECONFIG[udev] = "--enable-udev,--disable-udev,udev"
 PACKAGECONFIG[glamor] = "--enable-glamor,--disable-glamor"
Signature · 1 line
2.25.1
#1 lore raw

PATCH 2/2 spice-gtk: add opengl to REQUIRED_DISTRO_FEATURES

From: Mingli Yu <[email protected]>

Fixes:
ERROR: Nothing PROVIDES 'libepoxy' (but /build/layers/meta-openembedded/meta-networking/recipes-support/spice/spice-gtk_0.4.1.bb DEPENDS on or otherwise requires it)
libepoxy 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', 'spice-gtk', 'libepoxy']

---
 meta-networking/recipes-support/spice/spice-gtk_0.4.1.bb | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-networking/recipes-support/spice/spice-gtk_0.4.1.bb +3 -1
index a6130cab3..d654a36f4 100644
@@ -41,7 +41,9 @@ DEPENDS = " \
 
 RDEPENDS:${PN} = "python3-pyparsing python3-six"
 
-inherit meson pkgconfig vala gobject-introspection
+inherit meson pkgconfig vala gobject-introspection features_check
+
+REQUIRED_DISTRO_FEATURES = "opengl"
 
 EXTRA_OEMESON = "-Dpie=true -Dvapi=enabled -Dintrospection=enabled"
 
Signature · 1 line
2.25.1