From 884b8b424f0ec399dfc72c069edc13e92c992708 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 18 Jul 2025 10:01:41 +0300 Subject: [PATCH] mesa_%.bbappend: DISTRO_FEATURES for wayland Conditionally add wayland-protocols to DEPENDS and RDEPENDS if variable DISTRO_FEATURES includes wayland. This work was sponsored by GOVCERT.LU. Suggested-by: Daniel F. Dickinson Signed-off-by: Leon Anavi --- recipes-graphics/mesa/mesa_%.bbappend | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/recipes-graphics/mesa/mesa_%.bbappend b/recipes-graphics/mesa/mesa_%.bbappend index 07c4c72..f0b47df 100644 --- a/recipes-graphics/mesa/mesa_%.bbappend +++ b/recipes-graphics/mesa/mesa_%.bbappend @@ -44,9 +44,17 @@ GALLIUMDRIVERS = "softpipe" PACKAGECONFIG[opencl] = "-Dgallium-opencl=icd,-Dgallium-opencl=disabled," -DEPENDS += " wayland-protocols llvm python3-pyyaml python3-pyyaml-native" +DEPENDS += " \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-protocols', '', d)} \ + llvm \ + python3-pyyaml \ + python3-pyyaml-native \ +" -RDEPENDS:libgl-mesa += " llvm wayland-protocols" +RDEPENDS:libgl-mesa += " \ + llvm \ + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland-protocols', '', d)} \ +" PACKAGES =+ " \ libgallium \