All of lore.kernel.org
 help / color / mirror / Atom feed
* [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland
@ 2022-06-04  5:30 Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 2/6] libxcb: " Markus Volk
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/xorg-lib/xorg-lib-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
index 60bc8c76fa..30122f2bfa 100644
--- a/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
+++ b/meta/recipes-graphics/xorg-lib/xorg-lib-common.inc
@@ -23,4 +23,4 @@ UNKNOWN_CONFIGURE_OPT_IGNORE += "--enable-malloc0returnsnull --disable-malloc0re
                                 --without-xmlto --with-xmlto \
 "
 
-REQUIRED_DISTRO_FEATURES ?= "x11"
+ANY_OF_DISTRO_FEATURES ?= "x11 wayland"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [oe-core][PATCHv2 2/6] libxcb: allow to build for wayland
  2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
@ 2022-06-04  5:30 ` Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 3/6] xdg-utils: " Markus Volk
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/xorg-lib/libxcb_1.15.bb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xorg-lib/libxcb_1.15.bb b/meta/recipes-graphics/xorg-lib/libxcb_1.15.bb
index 839577326e..6205030591 100644
--- a/meta/recipes-graphics/xorg-lib/libxcb_1.15.bb
+++ b/meta/recipes-graphics/xorg-lib/libxcb_1.15.bb
@@ -24,7 +24,7 @@ FILES:${PN} = "${libdir}/libxcb.so.*"
 inherit autotools pkgconfig features_check
 
 # The libxau and others requires x11 in DISTRO_FEATURES
-REQUIRED_DISTRO_FEATURES = "x11"
+ANY_OF_DISTRO_FEATURES = "x11 wayland"
 
 export PYTHON = "python3"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [oe-core][PATCHv2 3/6] xdg-utils: allow to build for wayland
  2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 2/6] libxcb: " Markus Volk
@ 2022-06-04  5:30 ` Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends " Markus Volk
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb b/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
index 73acf6b744..ef698d9f09 100644
--- a/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
+++ b/meta/recipes-extended/xdg-utils/xdg-utils_1.1.3.bb
@@ -31,8 +31,9 @@ UPSTREAM_CHECK_REGEX = "xdg-utils-(?P<pver>((\d+[\.\-_]*)+)((rc|alpha|beta)\d+)?
 # Needs brokensep as this doesn't use automake
 inherit autotools-brokensep features_check
 
-# The xprop requires x11 in DISTRO_FEATURES
-REQUIRED_DISTRO_FEATURES = "x11"
+ANY_OF_DISTRO_FEATURES = "x11 wayland"
 
 DEPENDS = "xmlto-native libxslt-native"
-RDEPENDS:${PN} += "xprop"
+
+PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)}"
+PACKAGECONFIG[x11] = ",,,xprop"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 2/6] libxcb: " Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 3/6] xdg-utils: " Markus Volk
@ 2022-06-04  5:30 ` Markus Volk
  2022-06-04 13:27   ` Richard Purdie
  2022-06-04  5:30 ` [oe-core][PATCHv2 5/6] xorg-font-common.inc: allow to build " Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 6/6] xorg-app-common: " Markus Volk
  4 siblings, 1 reply; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

This fixes "Could not initialize egl display" in libsdl2 apps for
wayland without DISTRO_FEATURE x11

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
index 8519e7f732..e057b5cbbc 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
@@ -56,14 +56,16 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \
 
 # opengl packageconfig factored out to make it easy for distros
 # and BSP layers to pick either (desktop) opengl, gles2, or no GL
-PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
+PACKAGECONFIG_GL ?= " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'gles2', '', d)} \
+"
 
 PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
 PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
 PACKAGECONFIG ??= " \
     ${PACKAGECONFIG_GL} \
-    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
-    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
+    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11 wayland', d)} \
     ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
 "
 PACKAGECONFIG[alsa]       = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [oe-core][PATCHv2 5/6] xorg-font-common.inc: allow to build for wayland
  2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
                   ` (2 preceding siblings ...)
  2022-06-04  5:30 ` [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends " Markus Volk
@ 2022-06-04  5:30 ` Markus Volk
  2022-06-04  5:30 ` [oe-core][PATCHv2 6/6] xorg-app-common: " Markus Volk
  4 siblings, 0 replies; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/recipes-graphics/xorg-font/xorg-font-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xorg-font/xorg-font-common.inc b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
index 2df23efed4..f552bb0076 100644
--- a/meta/recipes-graphics/xorg-font/xorg-font-common.inc
+++ b/meta/recipes-graphics/xorg-font/xorg-font-common.inc
@@ -15,7 +15,7 @@ S = "${WORKDIR}/${XORG_PN}-${PV}"
 inherit autotools pkgconfig features_check
 
 # The mkfontscale-native requires x11 in DISTRO_FEATURES
-REQUIRED_DISTRO_FEATURES = "x11"
+ANY_OF_DISTRO_FEATURES = "x11 wayland"
 
 EXTRA_OEMAKE += "FCCACHE=/bin/true UTIL_DIR=${STAGING_DIR_TARGET}\$\(MAPFILES_PATH\)"
 
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [oe-core][PATCHv2 6/6] xorg-app-common: allow to build for wayland
  2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
                   ` (3 preceding siblings ...)
  2022-06-04  5:30 ` [oe-core][PATCHv2 5/6] xorg-font-common.inc: allow to build " Markus Volk
@ 2022-06-04  5:30 ` Markus Volk
  4 siblings, 0 replies; 11+ messages in thread
From: Markus Volk @ 2022-06-04  5:30 UTC (permalink / raw)
  To: openembedded-core; +Cc: Markus Volk

---
 meta/recipes-graphics/xorg-app/xorg-app-common.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-graphics/xorg-app/xorg-app-common.inc b/meta/recipes-graphics/xorg-app/xorg-app-common.inc
index 5dbe8abe86..7aed6e7138 100644
--- a/meta/recipes-graphics/xorg-app/xorg-app-common.inc
+++ b/meta/recipes-graphics/xorg-app/xorg-app-common.inc
@@ -6,7 +6,7 @@ LICENSE = "MIT"
 DEPENDS = "util-macros-native virtual/libx11"
 
 # depends on virtual/libx11
-REQUIRED_DISTRO_FEATURES = "x11"
+ANY_OF_DISTRO_FEATURES = "x11 wayland"
 
 SRC_URI_EXT = "bz2"
 SRC_URI = "${XORG_MIRROR}/individual/app/${BPN}-${PV}.tar.${SRC_URI_EXT}"
-- 
2.25.1



^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-04  5:30 ` [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends " Markus Volk
@ 2022-06-04 13:27   ` Richard Purdie
  2022-06-04 16:25     ` Markus Volk
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Purdie @ 2022-06-04 13:27 UTC (permalink / raw)
  To: Markus Volk, openembedded-core

On Sat, 2022-06-04 at 07:30 +0200, Markus Volk wrote:
> This fixes "Could not initialize egl display" in libsdl2 apps for
> wayland without DISTRO_FEATURE x11
> 
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
> 
> diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
> index 8519e7f732..e057b5cbbc 100644
> --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
> +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
> @@ -56,14 +56,16 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \
>  
>  # opengl packageconfig factored out to make it easy for distros
>  # and BSP layers to pick either (desktop) opengl, gles2, or no GL
> -PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
> +PACKAGECONFIG_GL ?= " \
> +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
> +    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'gles2', '', d)} \
> +"
>  
>  PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
>  PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
>  PACKAGECONFIG ??= " \
>      ${PACKAGECONFIG_GL} \
> -    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
> -    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
> +    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11 wayland', d)} \
>      ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
>  "
>  PACKAGECONFIG[alsa]       = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"

I think this is breaking mingw builds:

https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/5320


Cheers,

Richard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-04 13:27   ` Richard Purdie
@ 2022-06-04 16:25     ` Markus Volk
  2022-06-06 11:30       ` Richard Purdie
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Volk @ 2022-06-04 16:25 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

Could it be that we need to add a wayland exception here as well, since 
xorgproto can now be built for wayland?

https://git.yoctoproject.org/meta-mingw/tree/recipes-graphics/libsdl2/libsdl2_%25.bbappend?h=master-next#n4

Am 04.06.22 um 15:27 schrieb Richard Purdie:
> On Sat, 2022-06-04 at 07:30 +0200, Markus Volk wrote:
>> This fixes "Could not initialize egl display" in libsdl2 apps for
>> wayland without DISTRO_FEATURE x11
>>
>> Signed-off-by: Markus Volk <f_l_k@t-online.de>
>> ---
>>   meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb | 8 +++++---
>>   1 file changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
>> index 8519e7f732..e057b5cbbc 100644
>> --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
>> +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.22.bb
>> @@ -56,14 +56,16 @@ EXTRA_OECMAKE = "-DSDL_OSS=OFF -DSDL_ESD=OFF -DSDL_ARTS=OFF \
>>   
>>   # opengl packageconfig factored out to make it easy for distros
>>   # and BSP layers to pick either (desktop) opengl, gles2, or no GL
>> -PACKAGECONFIG_GL ?= "${@bb.utils.filter('DISTRO_FEATURES', 'opengl', d)}"
>> +PACKAGECONFIG_GL ?= " \
>> +    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 opengl', 'opengl', '', d)} \
>> +    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland opengl', 'gles2', '', d)} \
>> +"
>>   
>>   PACKAGECONFIG:class-native = "x11 ${PACKAGECONFIG_GL}"
>>   PACKAGECONFIG:class-nativesdk = "${@bb.utils.filter('DISTRO_FEATURES', 'x11', d)} ${PACKAGECONFIG_GL}"
>>   PACKAGECONFIG ??= " \
>>       ${PACKAGECONFIG_GL} \
>> -    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11', d)} \
>> -    ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
>> +    ${@bb.utils.filter('DISTRO_FEATURES', 'alsa directfb pulseaudio x11 wayland', d)} \
>>       ${@bb.utils.contains("TUNE_FEATURES", "neon","arm-neon","",d)} \
>>   "
>>   PACKAGECONFIG[alsa]       = "-DSDL_ALSA=ON,-DSDL_ALSA=OFF,alsa-lib,"
> I think this is breaking mingw builds:
>
> https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/5320
>
>
> Cheers,
>
> Richard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-04 16:25     ` Markus Volk
@ 2022-06-06 11:30       ` Richard Purdie
  2022-06-06 12:50         ` Markus Volk
  0 siblings, 1 reply; 11+ messages in thread
From: Richard Purdie @ 2022-06-06 11:30 UTC (permalink / raw)
  To: Markus Volk, openembedded-core

On Sat, 2022-06-04 at 18:25 +0200, Markus Volk wrote:

> Am 04.06.22 um 15:27 schrieb Richard Purdie:
> > I think this is breaking mingw builds:
> > 
> > https://autobuilder.yoctoproject.org/typhoon/#/builders/89/builds/5320
> > 
> > 
> Could it be that we need to add a wayland exception here as well, since 
> xorgproto can now be built for wayland?
> 
> https://git.yoctoproject.org/meta-mingw/tree/recipes-graphics/libsdl2/libsdl2_%25.bbappend?h=master-next#n4

No, that isn't the issue.

The challenge is you've changed the configuration and dependencies of
libsdl and these new dependencies don't build on mingw. We need to
correct either the configuration of mingw buildss (wrt
DISTRO_FEATURES), or rethink the issues at hand here.

I share Ross' concern about the x11 distro feature effectively becoming
meaningless. Pure wayland shouldn't be needing these things and there
is something else not quite right here. We do need to step back, state
which problem we're trying to solve and then look at the issues in
doing that. The patches in this series say a lot about what they do but
not why.

Cheers,

Richard


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-06 11:30       ` Richard Purdie
@ 2022-06-06 12:50         ` Markus Volk
  2022-06-06 12:58           ` Richard Purdie
  0 siblings, 1 reply; 11+ messages in thread
From: Markus Volk @ 2022-06-06 12:50 UTC (permalink / raw)
  To: Richard Purdie, openembedded-core

I've read the error report for mingw build and did some tests yesterday.

Added meta-mingw to bblayers.conf and this to local.conf

SDKMACHINE="x86_64-mingw32"
DISTRO_FEATURES:remove = "x11"

and then did 'bitbake core-image-minimal -c do_populate_sdk'

This lead to the expected error message

| Checking whether type "fd_set" has member "fds_bits" : NO
| Checking whether type "fd_set" has member "__fds_bits" : NO
|
| ../xorgproto-2022.1/include/X11/meson.build:19:4: ERROR: Problem 
encountered: Your fd_set is too weird.
|
| A full log can be found at 
/home/flk/build/poky/build/tmp/work/x86_64-nativesdk-mingw32-w64-mingw32/nativesdk-xorgproto/2022.1-r0/build/meson-logs/meson-log.txt
| ERROR: meson failed

I was able to fix this by changing the libsdl2.bbappend in meta-mingw 
like this:

PACKAGECONFIG:remove:mingw32:class-nativesdk = "x11 opengl gles2"

Like this libsdl2 doesn't try to build in gl for wayland either and my 
build succeeded.

I sent a patch to openembedded-devel for this yesterday.

In general, I think it's a matter of perspective. The current state 
forces me to request x11 globally and thus prevents me from deciding 
within recipes what to do for wayland and what to do for x11 
DISTRO_FEATURE. They always have to come in pairs. I thought that from 
wayland's point of view it would be ok to include and use x11, although 
it should not be done by default. I understand your concerns about 
losing the clean line when mixing x11/Wayland, and it was just an idea. 
If you don't like it, I have no problem with it.

Am 06.06.22 um 13:30 schrieb Richard Purdie:
> that isn't the issue.
>
> The challenge is you've changed the configuration and dependencies of
> libsdl and these new dependencies don't build on mingw. We need to
> correct either the configuration of mingw buildss (wrt
> DISTRO_FEATURES), or rethink the issues at hand here.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends for wayland
  2022-06-06 12:50         ` Markus Volk
@ 2022-06-06 12:58           ` Richard Purdie
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Purdie @ 2022-06-06 12:58 UTC (permalink / raw)
  To: Markus Volk, openembedded-core

On Mon, 2022-06-06 at 14:50 +0200, Markus Volk wrote:
> I've read the error report for mingw build and did some tests yesterday.
> 
> Added meta-mingw to bblayers.conf and this to local.conf
> 
> SDKMACHINE="x86_64-mingw32"
> DISTRO_FEATURES:remove = "x11"
> 
> and then did 'bitbake core-image-minimal -c do_populate_sdk'
> 
> This lead to the expected error message
> 
> > Checking whether type "fd_set" has member "fds_bits" : NO
> > Checking whether type "fd_set" has member "__fds_bits" : NO
> > 
> > ../xorgproto-2022.1/include/X11/meson.build:19:4: ERROR: Problem 
> encountered: Your fd_set is too weird.
> > 
> > A full log can be found at 
> /home/flk/build/poky/build/tmp/work/x86_64-nativesdk-mingw32-w64-mingw32/nativesdk-xorgproto/2022.1-r0/build/meson-logs/meson-log.txt
> > ERROR: meson failed
> 
> I was able to fix this by changing the libsdl2.bbappend in meta-mingw 
> like this:
> 
> PACKAGECONFIG:remove:mingw32:class-nativesdk = "x11 opengl gles2"
> 
> Like this libsdl2 doesn't try to build in gl for wayland either and my 
> build succeeded.
> 
> I sent a patch to openembedded-devel for this yesterday.

Thanks, I've merged that so we don't run into that in future.

> In general, I think it's a matter of perspective. The current state 
> forces me to request x11 globally and thus prevents me from deciding 
> within recipes what to do for wayland and what to do for x11 
> DISTRO_FEATURE. They always have to come in pairs. I thought that from 
> wayland's point of view it would be ok to include and use x11, although 
> it should not be done by default. I understand your concerns about 
> losing the clean line when mixing x11/Wayland, and it was just an idea. 
> If you don't like it, I have no problem with it.

I think keeping the "clean" line with x11 is necessary at this point.

Cheers,

Richard



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-06-06 12:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-04  5:30 [oe-core][PATCHv2 1/6] xorg-lib-common: allow to build for wayland Markus Volk
2022-06-04  5:30 ` [oe-core][PATCHv2 2/6] libxcb: " Markus Volk
2022-06-04  5:30 ` [oe-core][PATCHv2 3/6] xdg-utils: " Markus Volk
2022-06-04  5:30 ` [oe-core][PATCHv2 4/6] libsdl2: dont mix opengl and gles backends " Markus Volk
2022-06-04 13:27   ` Richard Purdie
2022-06-04 16:25     ` Markus Volk
2022-06-06 11:30       ` Richard Purdie
2022-06-06 12:50         ` Markus Volk
2022-06-06 12:58           ` Richard Purdie
2022-06-04  5:30 ` [oe-core][PATCHv2 5/6] xorg-font-common.inc: allow to build " Markus Volk
2022-06-04  5:30 ` [oe-core][PATCHv2 6/6] xorg-app-common: " Markus Volk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.