summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2023-05-03 16:47:41 +0200
committerKhem Raj <raj.khem@gmail.com>2023-05-03 21:24:55 -0700
commita25c1289a4f9636cffd42c74844724b53255285d (patch)
treeafc5038630c371ba9960441e9a21a4f7b6032ae3 /meta-oe/recipes-core
parent5d33d2c530c85b3dbbac135234855be10f58351b (diff)
downloadmeta-openembedded-a25c1289a4f9636cffd42c74844724b53255285d.tar.gz
glfw: respect DISTRO_FEATURES when enabling x11 in default PACKAGECONFIG and return it to REQUIRED_DISTRO_FEATURES
x11 was recently removed from REQUIRED_DISTRO_FEATURES but it should still respect x11 in DISTRO_FEATURES, now this causes: ERROR: Nothing PROVIDES 'libxi' (but meta-oe/recipes-core/glfw/glfw_3.3.bb DEPENDS on or otherwise requires it) libxi was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) ERROR: Nothing PROVIDES 'libxinerama' (but meta-oe/recipes-core/glfw/glfw_3.3.bb DEPENDS on or otherwise requires it) libxinerama was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) ERROR: Nothing PROVIDES 'libxrandr' (but meta-oe/recipes-core/glfw/glfw_3.3.bb DEPENDS on or otherwise requires it) libxrandr was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) ERROR: Nothing PROVIDES 'libglu' (but meta-oe/recipes-core/glfw/glfw_3.3.bb DEPENDS on or otherwise requires it) libglu was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) ERROR: Nothing PROVIDES 'libxcursor' (but meta-oe/recipes-core/glfw/glfw_3.3.bb DEPENDS on or otherwise requires it) libxcursor was skipped: missing required distro feature 'x11' (not in DISTRO_FEATURES) when wayland and opengl are in DISTRO_FEATURES, but x11 isn't. REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG doesn't match with that. Also move libglu to x11 PACKAGECONFIG, because that also has x11 in REQUIRED_DISTRO_FEATURES. Return x11 to REQUIRED_DISTRO_FEATURES because even with this change it still fails to build without x11 in DISTRO_FEATURES, so until wayland support is resolved it does require x11 to build, otherwise fails with: glfw/3.3+gitAUTOINC+781fbbadb0-r0/recipe-sysroot-native/usr/share/cmake-3.25/Modules/FindPackageHandleStandardArgs.cmake:230 (message): | Could NOT find X11 (missing: X11_X11_INCLUDE_PATH X11_X11_LIB) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core')
-rw-r--r--meta-oe/recipes-core/glfw/glfw_3.3.bb8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb b/meta-oe/recipes-core/glfw/glfw_3.3.bb
index 5b0d61241e..f4d983a6e0 100644
--- a/meta-oe/recipes-core/glfw/glfw_3.3.bb
+++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb
@@ -20,17 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON -DGLFW_BUILD_DOCS=OFF"
20 20
21CFLAGS += "-fPIC" 21CFLAGS += "-fPIC"
22 22
23DEPENDS = "libpng libglu zlib" 23DEPENDS = "libpng zlib"
24REQUIRED_DISTRO_FEATURES = "opengl" 24REQUIRED_DISTRO_FEATURES = "opengl x11"
25ANY_OF_DISTRO_FEATURES = "wayland x11" 25ANY_OF_DISTRO_FEATURES = "wayland x11"
26 26
27# upstream considers x11 and wayland backends mutually exclusive and will 27# upstream considers x11 and wayland backends mutually exclusive and will
28# prioritize wayland if it is enabled, but wayland has dependencies that cannot 28# prioritize wayland if it is enabled, but wayland has dependencies that cannot
29# be satisfied by this layer so it is disabled by default 29# be satisfied by this layer so it is disabled by default
30 30
31PACKAGECONFIG ??= "x11" 31PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
32 32
33PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon" 33PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland wayland-native wayland-protocols extra-cmake-modules libxkbcommon"
34PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor" 34PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor libglu"
35 35
36COMPATIBLE_HOST:libc-musl = "null" 36COMPATIBLE_HOST:libc-musl = "null"