* [PATCH 2/5] libsdl2: Depend on virtual/egl
2022-03-08 15:52 [PATCH 1/5] qemu: Depend on virtual/egl Khem Raj
@ 2022-03-08 15:52 ` Khem Raj
2022-03-09 12:31 ` [OE-core] " Ross Burton
2022-03-08 15:52 ` [PATCH 3/5] piglit: Remove virtual/libgl Khem Raj
` (3 subsequent siblings)
4 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2022-03-08 15:52 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
virtual/libgl may not be implemented by some non-mesa graphics in
embedded space, this ensures that libsdl2 can build on such stacks
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb
index 90724ab8b79..58bc94cc86b 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.20.bb
@@ -67,7 +67,7 @@ PACKAGECONFIG[directfb] = "-DSDL_DIRECTFB=ON,-DSDL_DIRECTFB=OFF,directfb,direc
PACKAGECONFIG[gles2] = "-DSDL_OPENGLES=ON,-DSDL_OPENGLES=OFF,virtual/libgles2"
PACKAGECONFIG[jack] = "-DSDL_JACK=ON,-DSDL_JACK=OFF,jack"
PACKAGECONFIG[kmsdrm] = "-DSDL_KMSDRM=ON,-DSDL_KMSDRM=OFF,libdrm virtual/libgbm"
-PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/libgl"
+PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
PACKAGECONFIG[pulseaudio] = "-DSDL_PULSEAUDIO=ON,-DSDL_PULSEAUDIO=OFF,pulseaudio"
PACKAGECONFIG[wayland] = "-DSDL_WAYLAND=ON,-DSDL_WAYLAND=OFF,wayland-native wayland wayland-protocols libxkbcommon"
PACKAGECONFIG[x11] = "-DSDL_X11=ON,-DSDL_X11=OFF,virtual/libx11 libxext libxrandr libxrender"
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [OE-core] [PATCH 2/5] libsdl2: Depend on virtual/egl
2022-03-08 15:52 ` [PATCH 2/5] libsdl2: " Khem Raj
@ 2022-03-09 12:31 ` Ross Burton
2022-03-17 14:54 ` Khem Raj
0 siblings, 1 reply; 10+ messages in thread
From: Ross Burton @ 2022-03-09 12:31 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Tue, 8 Mar 2022 at 15:52, Khem Raj <raj.khem@gmail.com> wrote:
> -PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/libgl"
> +PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
What does libSDL2 look for, then? Is it EGL explicitly? Or GLX? Or
something else.
I agree that the virtual/libgl thing is a mess, but if we're clearing
it up we need to clear about what is changing.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [OE-core] [PATCH 2/5] libsdl2: Depend on virtual/egl
2022-03-09 12:31 ` [OE-core] " Ross Burton
@ 2022-03-17 14:54 ` Khem Raj
0 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2022-03-17 14:54 UTC (permalink / raw)
To: Ross Burton; +Cc: Patches and discussions about the oe-core layer
On Wed, Mar 9, 2022 at 4:31 AM Ross Burton <ross@burtonini.com> wrote:
>
> On Tue, 8 Mar 2022 at 15:52, Khem Raj <raj.khem@gmail.com> wrote:
> > -PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/libgl"
> > +PACKAGECONFIG[opengl] = "-DSDL_OPENGL=ON,-DSDL_OPENGL=OFF,virtual/egl"
>
> What does libSDL2 look for, then? Is it EGL explicitly? Or GLX? Or
> something else.
it looks for egl implementation provider which in X case is same as
virtual/libgl provider ( mesa )
in next release I think we should make clear difference between openGL
implementations instead of
specifying pins on libraries
>
> I agree that the virtual/libgl thing is a mess, but if we're clearing
> it up we need to clear about what is changing.
>
> Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 3/5] piglit: Remove virtual/libgl
2022-03-08 15:52 [PATCH 1/5] qemu: Depend on virtual/egl Khem Raj
2022-03-08 15:52 ` [PATCH 2/5] libsdl2: " Khem Raj
@ 2022-03-08 15:52 ` Khem Raj
2022-03-08 15:52 ` [PATCH 4/5] waffle: Use the right dependencies as needed Khem Raj
` (2 subsequent siblings)
4 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2022-03-08 15:52 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
virtual/libgl is usually provided by same package that provides
virtual/egl by the stacks which implement it, removing virtual/libgl
means we can build it on stacks not implementing GL
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-graphics/piglit/piglit_git.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/piglit/piglit_git.bb b/meta/recipes-graphics/piglit/piglit_git.bb
index 865eb4c272c..3ae7a14e465 100644
--- a/meta/recipes-graphics/piglit/piglit_git.bb
+++ b/meta/recipes-graphics/piglit/piglit_git.bb
@@ -23,7 +23,7 @@ S = "${WORKDIR}/git"
X11_DEPS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'virtual/libx11 libxrender libglu', '', d)}"
X11_RDEPS = "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'mesa-demos', '', d)}"
-DEPENDS = "libpng waffle libxkbcommon virtual/libgl python3-mako-native python3-numpy-native python3-six-native virtual/egl"
+DEPENDS = "libpng waffle libxkbcommon python3-mako-native python3-numpy-native python3-six-native virtual/egl"
inherit cmake pkgconfig python3native features_check bash-completion
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 4/5] waffle: Use the right dependencies as needed
2022-03-08 15:52 [PATCH 1/5] qemu: Depend on virtual/egl Khem Raj
2022-03-08 15:52 ` [PATCH 2/5] libsdl2: " Khem Raj
2022-03-08 15:52 ` [PATCH 3/5] piglit: Remove virtual/libgl Khem Raj
@ 2022-03-08 15:52 ` Khem Raj
2022-03-08 15:52 ` [PATCH 5/5] webkitgtk: Depend on virtual/egl instead of virtual/libgl Khem Raj
2022-03-09 12:30 ` [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl Ross Burton
4 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2022-03-08 15:52 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
using virtual/libgl is a broad brush, we can be more specific and ask
for dependencies which are really needed
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-graphics/waffle/waffle_1.7.0.bb | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/meta/recipes-graphics/waffle/waffle_1.7.0.bb b/meta/recipes-graphics/waffle/waffle_1.7.0.bb
index 0ff82036e7e..b9315157007 100644
--- a/meta/recipes-graphics/waffle/waffle_1.7.0.bb
+++ b/meta/recipes-graphics/waffle/waffle_1.7.0.bb
@@ -31,16 +31,16 @@ REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('DEPENDS', 'virtual/${MLPREFIX
# I say virtual/libgl, actually wants gl.pc
PACKAGECONFIG[glx] = "-Dglx=enabled,-Dglx=disabled,virtual/${MLPREFIX}libgl libx11"
-# I say virtual/libgl, actually wants wayland-egl.pc, egl.pc, and the wayland
+# wants wayland-egl.pc, egl.pc, and the wayland
# DISTRO_FEATURE.
-PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,virtual/${MLPREFIX}libgl wayland wayland-native wayland-protocols"
+PACKAGECONFIG[wayland] = "-Dwayland=enabled,-Dwayland=disabled,virtual/${MLPREFIX}egl wayland wayland-native wayland-protocols"
-# I say virtual/libgl, actually wants gbm.pc egl.pc
-PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled,virtual/${MLPREFIX}libgl udev"
+# wants gbm.pc egl.pc
+PACKAGECONFIG[gbm] = "-Dgbm=enabled,-Dgbm=disabled,virtual/${MLPREFIX}egl virtual/${MLPREFIX}libgbm udev"
-# I say virtual/libgl, actually wants egl.pc
-PACKAGECONFIG[x11-egl] = "-Dx11_egl=enabled,-Dx11_egl=disabled,virtual/${MLPREFIX}libgl libxcb"
-PACKAGECONFIG[surfaceless-egl] = "-Dsurfaceless_egl=enabled,-Dsurfaceless_egl=disabled,virtual/${MLPREFIX}libgl"
+# wants egl.pc
+PACKAGECONFIG[x11-egl] = "-Dx11_egl=enabled,-Dx11_egl=disabled,virtual/${MLPREFIX}egl libxcb"
+PACKAGECONFIG[surfaceless-egl] = "-Dsurfaceless_egl=enabled,-Dsurfaceless_egl=disabled,virtual/${MLPREFIX}egl"
# TODO: optionally build manpages and examples
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* [PATCH 5/5] webkitgtk: Depend on virtual/egl instead of virtual/libgl
2022-03-08 15:52 [PATCH 1/5] qemu: Depend on virtual/egl Khem Raj
` (2 preceding siblings ...)
2022-03-08 15:52 ` [PATCH 4/5] waffle: Use the right dependencies as needed Khem Raj
@ 2022-03-08 15:52 ` Khem Raj
2022-03-09 12:30 ` [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl Ross Burton
4 siblings, 0 replies; 10+ messages in thread
From: Khem Raj @ 2022-03-08 15:52 UTC (permalink / raw)
To: openembedded-core; +Cc: Khem Raj
This ensures that platforms not implementing GL ( perhaps only providing
GLES ) are able to build webkit
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
meta/recipes-sato/webkit/webkitgtk_2.34.6.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb b/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb
index 52cc185eb33..8cea8a86000 100644
--- a/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb
+++ b/meta/recipes-sato/webkit/webkitgtk_2.34.6.bb
@@ -60,8 +60,8 @@ PACKAGECONFIG[x11] = "-DENABLE_X11_TARGET=ON,-DENABLE_X11_TARGET=OFF,virtual/lib
PACKAGECONFIG[geoclue] = "-DENABLE_GEOLOCATION=ON,-DENABLE_GEOLOCATION=OFF,geoclue"
PACKAGECONFIG[enchant] = "-DENABLE_SPELLCHECK=ON,-DENABLE_SPELLCHECK=OFF,enchant2"
PACKAGECONFIG[gles2] = "-DENABLE_GLES2=ON,-DENABLE_GLES2=OFF,virtual/libgles2"
-PACKAGECONFIG[webgl] = "-DENABLE_WEBGL=ON,-DENABLE_WEBGL=OFF,virtual/libgl"
-PACKAGECONFIG[opengl] = "-DENABLE_GRAPHICS_CONTEXT_GL=ON,-DENABLE_GRAPHICS_CONTEXT_GL=OFF,virtual/libgl"
+PACKAGECONFIG[webgl] = "-DENABLE_WEBGL=ON,-DENABLE_WEBGL=OFF,virtual/egl"
+PACKAGECONFIG[opengl] = "-DENABLE_GRAPHICS_CONTEXT_GL=ON,-DENABLE_GRAPHICS_CONTEXT_GL=OFF,virtual/egl"
PACKAGECONFIG[opengl-or-es] = "-DUSE_OPENGL_OR_ES=ON,-DUSE_OPENGL_OR_ES=OFF"
PACKAGECONFIG[libsecret] = "-DUSE_LIBSECRET=ON,-DUSE_LIBSECRET=OFF,libsecret"
PACKAGECONFIG[libhyphen] = "-DUSE_LIBHYPHEN=ON,-DUSE_LIBHYPHEN=OFF,libhyphen"
--
2.35.1
^ permalink raw reply related [flat|nested] 10+ messages in thread* Re: [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl
2022-03-08 15:52 [PATCH 1/5] qemu: Depend on virtual/egl Khem Raj
` (3 preceding siblings ...)
2022-03-08 15:52 ` [PATCH 5/5] webkitgtk: Depend on virtual/egl instead of virtual/libgl Khem Raj
@ 2022-03-09 12:30 ` Ross Burton
2022-03-17 15:29 ` Khem Raj
4 siblings, 1 reply; 10+ messages in thread
From: Ross Burton @ 2022-03-09 12:30 UTC (permalink / raw)
To: Khem Raj; +Cc: openembedded-core
On Tue, 8 Mar 2022 at 15:52, Khem Raj <raj.khem@gmail.com> wrote:
> -PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/libgl"
> +PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/egl"
Either the packageconfig name is wrong, or this patch is wrong: GLX is
explicitly big-GL not EGL.
Ross
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl
2022-03-09 12:30 ` [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl Ross Burton
@ 2022-03-17 15:29 ` Khem Raj
2022-03-23 16:30 ` Richard Purdie
0 siblings, 1 reply; 10+ messages in thread
From: Khem Raj @ 2022-03-17 15:29 UTC (permalink / raw)
To: Ross Burton; +Cc: Patches and discussions about the oe-core layer
On Wed, Mar 9, 2022 at 4:30 AM Ross Burton <ross@burtonini.com> wrote:
>
> On Tue, 8 Mar 2022 at 15:52, Khem Raj <raj.khem@gmail.com> wrote:
> > -PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/libgl"
> > +PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/egl"
>
> Either the packageconfig name is wrong, or this patch is wrong: GLX is
> explicitly big-GL not EGL.
Neither seems to be wrong. see
https://github.com/qemu/qemu/blob/master/configure#L2289-L2313
It's expecting epoxy with egl. So virtual/egl is a better
representation. Maybe we should
add epoxy to depends section of packageconfig separately.
>
> Ross
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [OE-core] [PATCH 1/5] qemu: Depend on virtual/egl
2022-03-17 15:29 ` Khem Raj
@ 2022-03-23 16:30 ` Richard Purdie
0 siblings, 0 replies; 10+ messages in thread
From: Richard Purdie @ 2022-03-23 16:30 UTC (permalink / raw)
To: Khem Raj, Ross Burton; +Cc: Patches and discussions about the oe-core layer
On Thu, 2022-03-17 at 08:29 -0700, Khem Raj wrote:
> On Wed, Mar 9, 2022 at 4:30 AM Ross Burton <ross@burtonini.com> wrote:
> >
> > On Tue, 8 Mar 2022 at 15:52, Khem Raj <raj.khem@gmail.com> wrote:
> > > -PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/libgl"
> > > +PACKAGECONFIG[glx] = "--enable-opengl,--disable-opengl,virtual/egl"
> >
> > Either the packageconfig name is wrong, or this patch is wrong: GLX is
> > explicitly big-GL not EGL.
>
> Neither seems to be wrong. see
> https://github.com/qemu/qemu/blob/master/configure#L2289-L2313
>
> It's expecting epoxy with egl. So virtual/egl is a better
> representation. Maybe we should
> add epoxy to depends section of packageconfig separately.
I think Ross' point is that the PACKAGECONFIG option could do with renaming
since it isn't GLX at all...
Cheers,
Richard
^ permalink raw reply [flat|nested] 10+ messages in thread