From 34226ac6329450013b3d13f756148d86bf6e8453 Mon Sep 17 00:00:00 2001 From: Mingli Yu Date: Sat, 10 Dec 2022 13:18:39 +0800 Subject: [PATCH] grail: add opengl to REQUIRED_DISTRO_FEATURES Fixes: ERROR: Nothing PROVIDES 'frame' (but /build/layers/meta-openembedded/meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb DEPENDS on or otherwise requires it) frame 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', 'geis', 'grail', 'frame'] Signed-off-by: Mingli Yu Signed-off-by: Khem Raj --- meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb b/meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb index 6646c8bfc1..067052c036 100644 --- a/meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb +++ b/meta-oe/recipes-support/canonical-multitouch/grail_3.1.1.bb @@ -8,7 +8,7 @@ LIC_FILES_CHKSUM = " \ file://COPYING.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ " -inherit autotools pkgconfig +inherit autotools pkgconfig features_check DEPENDS = "frame" CXXFLAGS:append:toolchain-clang = " -Wno-pessimizing-move" @@ -19,6 +19,8 @@ UPSTREAM_CHECK_URI = "https://launchpad.net/grail/trunk" SRC_URI[md5sum] = "0df1b3ec6167920f310e2effe6e2ad44" SRC_URI[sha256sum] = "5eed1f650f042481daa3a2de5e7d43261fe343b2a1b1e240f3b7fc26572c9df3" +REQUIRED_DISTRO_FEATURES = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'opengl', '', d)}" + PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}" PACKAGECONFIG[x11] = "--with-x11, --without-x11, libxi"