On Tue, May 2, 2023 at 9:06 AM Randolph Sapp <r...@ti.com> wrote: > > On 5/2/23 10:56, Martin Jansa wrote: > > The version which was merged with: > > > > PACKAGECONFIG ??= "x11" > > > > Should still respect x11 in DISTRO_FEATURES, now this causes: > > > > ERROR: Nothing PROVIDES 'libxi' (but > > meta-oe/recipes-core/glfw/glfw_3.3.bb <http://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 <http://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 <http://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 <http://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 <http://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. > > > > Yeah, that's expected behavior at this point. You need to manually > override the PACKAGECONFIG for wayland in this patch. Just slightly > better than no wayland at all. > > The only way we can get around it is if this layer or one of it's > dependencies decides to adopt extra-cmake-modules. They the > packageconfig can automatically configure itself. Discussion on who's > job it is to carry this package has yet to conclude. >
May be bring it to meta-oe at this point. > > REQUIRED_DISTRO_FEATURES is satisfied by "opengl" and > > ANY_OF_DISTRO_FEATURES by "wayland", but the default PACKAGECONFIG > > doesn't match with that. > > > > On Fri, Apr 28, 2023 at 6:32 PM Randolph Sapp via lists.openembedded.org > > <http://lists.openembedded.org> <rs=ti....@lists.openembedded.org > > <mailto:ti....@lists.openembedded.org>> wrote: > > > > On 4/28/23 06:16, akuster808 wrote: > > > Doesn't this need to land it Master first? Kirkstone is in the > > subject > > > > > > - armin > > > > > > > Perhaps, but I've only had a chance to test it against kirkstone so I > > flagged it as such. At this point I'm still vetting solutions to this > > dependency chain though. Looking for something this layer would > > actually > > like to carry. > > > > > On 4/27/23 12:47 PM, r...@ti.com <mailto:r...@ti.com> wrote: > > >> From: Randolph Sapp <r...@ti.com <mailto:r...@ti.com>> > > >> > > >> GLFW has the ability to use a wayland backend. This patch adds a > > config > > >> for it, but does not enable it by default because it has a > > dependency on > > >> extra-cmake-modules which is provided (most commonly) by > > meta-qt5-extra. > > >> > > >> Signed-off-by: Randolph Sapp <r...@ti.com <mailto:r...@ti.com>> > > >> --- > > >> meta-oe/recipes-core/glfw/glfw_3.3.bb <http://glfw_3.3.bb> | > > 14 ++++++++++++-- > > >> 1 file changed, 12 insertions(+), 2 deletions(-) > > >> > > >> diff --git a/meta-oe/recipes-core/glfw/glfw_3.3.bb > > <http://glfw_3.3.bb> > > >> b/meta-oe/recipes-core/glfw/glfw_3.3.bb <http://glfw_3.3.bb> > > >> index b31bba6b6b..5b0d61241e 100644 > > >> --- a/meta-oe/recipes-core/glfw/glfw_3.3.bb <http://glfw_3.3.bb> > > >> +++ b/meta-oe/recipes-core/glfw/glfw_3.3.bb <http://glfw_3.3.bb> > > >> @@ -20,7 +20,17 @@ EXTRA_OECMAKE += "-DBUILD_SHARED_LIBS=ON > > >> -DGLFW_BUILD_DOCS=OFF" > > >> CFLAGS += "-fPIC" > > >> -DEPENDS = "libpng libglu zlib libxrandr libxinerama libxi > > libxcursor" > > >> -REQUIRED_DISTRO_FEATURES = "x11 opengl" > > >> +DEPENDS = "libpng libglu zlib" > > >> +REQUIRED_DISTRO_FEATURES = "opengl" > > >> +ANY_OF_DISTRO_FEATURES = "wayland x11" > > >> + > > >> +# upstream considers x11 and wayland backends mutually > > exclusive and > > >> will > > >> +# prioritize wayland if it is enabled, but wayland has > > dependencies > > >> that cannot > > >> +# be satisfied by this layer so it is disabled by default > > >> + > > >> +PACKAGECONFIG ??= "x11" > > >> + > > >> +PACKAGECONFIG[wayland] = "-DGLFW_USE_WAYLAND=ON,,wayland > > >> wayland-native wayland-protocols extra-cmake-modules libxkbcommon" > > >> +PACKAGECONFIG[x11] = ",,libxrandr libxinerama libxi libxcursor" > > >> COMPATIBLE_HOST:libc-musl = "null" > > > > > > > > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#102263): https://lists.openembedded.org/g/openembedded-devel/message/102263 Mute This Topic: https://lists.openembedded.org/mt/98540896/21656 Group Owner: openembedded-devel+ow...@lists.openembedded.org Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-