Openembedded Core Discussions
 help / color / mirror / Atom feed
* [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
@ 2025-04-24 21:39 Markus Volk
  2025-04-25  7:59 ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Volk @ 2025-04-24 21:39 UTC (permalink / raw)
  To: openembedded-core

virtual/libsdl2 can be provided by 'libsdl2' and 'libsdl2-compat' where the latter
is a replacement for libsdl2 that uses libsdl3 behind the scenes and should
be favored if applicable.

Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
 meta/conf/distro/include/default-providers.inc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
index cebd0400f4..ee91af8796 100644
--- a/meta/conf/distro/include/default-providers.inc
+++ b/meta/conf/distro/include/default-providers.inc
@@ -4,6 +4,8 @@
 BB_RECIPE_VIRTUAL_PROVIDERS = "virtual/cross-cc virtual/cross-c++ virtual/cross-binutils virtual/nativesdk-cross-cc virtual/nativesdk-cross-c++ virtual/nativesdk-cross-binutils"
 PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
 PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
+PREFERRED_PROVIDER_virtual/libsdl2 ?= "libsdl2"
+PREFERRED_PROVIDER_virtual/libsdl2-native ?= "libsdl2-native"
 PREFERRED_PROVIDER_virtual/egl ?= "mesa"
 PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
 PREFERRED_PROVIDER_virtual/libglx ?= "mesa"
@@ -32,6 +34,7 @@ VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
 VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
 VIRTUAL-RUNTIME_keymaps ?= "keymaps"
 VIRTUAL-RUNTIME_dbus ?= "dbus"
+VIRTUAL-RUNTIME_libsdl2 ?= "libsdl2"
 
 #
 # Default recipe providers
@@ -62,5 +65,6 @@ PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
 PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
 
 PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
+PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
 
 PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
-- 
2.49.0



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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
       [not found] <18395F03D66275F9.31387@lists.openembedded.org>
@ 2025-04-24 21:40 ` Markus Volk
  2025-04-24 22:53   ` Khem Raj
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Volk @ 2025-04-24 21:40 UTC (permalink / raw)
  To: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2508 bytes --]

v2: add missing -native

On Thu, Apr 24 2025 at 23:39:51 +02:00:00, Markus Volk 
<f_l_k@t-online.de> wrote:
> virtual/libsdl2 can be provided by 'libsdl2' and 'libsdl2-compat' 
> where the latter
> is a replacement for libsdl2 that uses libsdl3 behind the scenes and 
> should
> be favored if applicable.
> 
> Signed-off-by: Markus Volk <f_l_k@t-online.de 
> <mailto:f_l_k@t-online.de>>
> ---
>  meta/conf/distro/include/default-providers.inc | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/meta/conf/distro/include/default-providers.inc 
> b/meta/conf/distro/include/default-providers.inc
> index cebd0400f4..ee91af8796 100644
> --- a/meta/conf/distro/include/default-providers.inc
> +++ b/meta/conf/distro/include/default-providers.inc
> @@ -4,6 +4,8 @@
>  BB_RECIPE_VIRTUAL_PROVIDERS = "virtual/cross-cc virtual/cross-c++ 
> virtual/cross-binutils virtual/nativesdk-cross-cc 
> virtual/nativesdk-cross-c++ virtual/nativesdk-cross-binutils"
>  PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
>  PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
> +PREFERRED_PROVIDER_virtual/libsdl2 ?= "libsdl2"
> +PREFERRED_PROVIDER_virtual/libsdl2-native ?= "libsdl2-native"
>  PREFERRED_PROVIDER_virtual/egl ?= "mesa"
>  PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
>  PREFERRED_PROVIDER_virtual/libglx ?= "mesa"
> @@ -32,6 +34,7 @@ VIRTUAL-RUNTIME_base-utils-hwclock ?= 
> "busybox-hwclock"
>  VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
>  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
>  VIRTUAL-RUNTIME_dbus ?= "dbus"
> +VIRTUAL-RUNTIME_libsdl2 ?= "libsdl2"
> 
>  #
>  # Default recipe providers
> @@ -62,5 +65,6 @@ PREFERRED_PROVIDER_pkgconfig-native ?= 
> "pkgconfig-native"
>  PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
> 
>  PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
> +PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
> 
>  PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
> --
> 2.49.0
> 
> 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215406): 
> <https://lists.openembedded.org/g/openembedded-core/message/215406>
> Mute This Topic: <https://lists.openembedded.org/mt/112441574/3618223>
> Group Owner: openembedded-core+owner@lists.openembedded.org 
> <mailto:openembedded-core+owner@lists.openembedded.org>
> Unsubscribe: 
> <https://lists.openembedded.org/g/openembedded-core/unsub> 
> [f_l_k@t-online.de <mailto:f_l_k@t-online.de>]
> -=-=-=-=-=-=-=-=-=-=-=-
> 


[-- Attachment #2: Type: text/html, Size: 2904 bytes --]

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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
  2025-04-24 21:40 ` [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2 Markus Volk
@ 2025-04-24 22:53   ` Khem Raj
  2025-04-24 22:56     ` Markus Volk
  0 siblings, 1 reply; 7+ messages in thread
From: Khem Raj @ 2025-04-24 22:53 UTC (permalink / raw)
  To: f_l_k; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 2533 bytes --]

On Thu, Apr 24, 2025 at 2:40 PM Markus Volk via lists.openembedded.org
<f_l_k=t-online.de@lists.openembedded.org> wrote:

> v2: add missing -native
>

How about nativesdk

>
> On Thu, Apr 24 2025 at 23:39:51 +02:00:00, Markus Volk <f_l_k@t-online.de>
> wrote:
>
> virtual/libsdl2 can be provided by 'libsdl2' and 'libsdl2-compat' where
> the latter is a replacement for libsdl2 that uses libsdl3 behind the scenes
> and should be favored if applicable. Signed-off-by: Markus Volk <
> f_l_k@t-online.de> --- meta/conf/distro/include/default-providers.inc | 4
> ++++ 1 file changed, 4 insertions(+) diff --git
> a/meta/conf/distro/include/default-providers.inc
> b/meta/conf/distro/include/default-providers.inc index
> cebd0400f4..ee91af8796 100644 ---
> a/meta/conf/distro/include/default-providers.inc +++
> b/meta/conf/distro/include/default-providers.inc @@ -4,6 +4,8 @@
> BB_RECIPE_VIRTUAL_PROVIDERS = "virtual/cross-cc virtual/cross-c++
> virtual/cross-binutils virtual/nativesdk-cross-cc
> virtual/nativesdk-cross-c++ virtual/nativesdk-cross-binutils"
> PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
> PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
> +PREFERRED_PROVIDER_virtual/libsdl2 ?= "libsdl2"
> +PREFERRED_PROVIDER_virtual/libsdl2-native ?= "libsdl2-native"
> PREFERRED_PROVIDER_virtual/egl ?= "mesa" PREFERRED_PROVIDER_virtual/libgl
> ?= "mesa" PREFERRED_PROVIDER_virtual/libglx ?= "mesa" @@ -32,6 +34,7 @@
> VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
> VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
> VIRTUAL-RUNTIME_keymaps ?= "keymaps" VIRTUAL-RUNTIME_dbus ?= "dbus"
> +VIRTUAL-RUNTIME_libsdl2 ?= "libsdl2" # # Default recipe providers @@ -62,5
> +65,6 @@ PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
> PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
> PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
> +PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
> PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
> --
> 2.49.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215407):
> https://lists.openembedded.org/g/openembedded-core/message/215407
> Mute This Topic: https://lists.openembedded.org/mt/112441574/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>

[-- Attachment #2: Type: text/html, Size: 4138 bytes --]

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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
  2025-04-24 22:53   ` Khem Raj
@ 2025-04-24 22:56     ` Markus Volk
  0 siblings, 0 replies; 7+ messages in thread
From: Markus Volk @ 2025-04-24 22:56 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

[-- Attachment #1: Type: text/plain, Size: 3210 bytes --]

> +PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"

I think the entry for ntivesdk is correct ?

On Thu, Apr 24 2025 at 15:53:09 -07:00:00, Khem Raj 
<raj.khem@gmail.com> wrote:
> 
> 
> On Thu, Apr 24, 2025 at 2:40 PM Markus Volk via 
> lists.openembedded.org <http://lists.openembedded.org/> 
> <f_l_k=t-online.de@lists.openembedded.org 
> <mailto:t-online.de@lists.openembedded.org>> wrote:
>> v2: add missing -native
> 
> How about nativesdk
>> 
>> On Thu, Apr 24 2025 at 23:39:51 +02:00:00, Markus Volk 
>> <f_l_k@t-online.de <mailto:f_l_k@t-online.de>> wrote:
>>> virtual/libsdl2 can be provided by 'libsdl2' and 'libsdl2-compat' 
>>> where the latter
>>> is a replacement for libsdl2 that uses libsdl3 behind the scenes 
>>> and should
>>> be favored if applicable.
>>> 
>>> Signed-off-by: Markus Volk <f_l_k@t-online.de 
>>> <mailto:f_l_k@t-online.de>>
>>> ---
>>>  meta/conf/distro/include/default-providers.inc | 4 ++++
>>>  1 file changed, 4 insertions(+)
>>> 
>>> diff --git a/meta/conf/distro/include/default-providers.inc 
>>> b/meta/conf/distro/include/default-providers.inc
>>> index cebd0400f4..ee91af8796 100644
>>> --- a/meta/conf/distro/include/default-providers.inc
>>> +++ b/meta/conf/distro/include/default-providers.inc
>>> @@ -4,6 +4,8 @@
>>>  BB_RECIPE_VIRTUAL_PROVIDERS = "virtual/cross-cc virtual/cross-c++ 
>>> virtual/cross-binutils virtual/nativesdk-cross-cc 
>>> virtual/nativesdk-cross-c++ virtual/nativesdk-cross-binutils"
>>>  PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
>>>  PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
>>> +PREFERRED_PROVIDER_virtual/libsdl2 ?= "libsdl2"
>>> +PREFERRED_PROVIDER_virtual/libsdl2-native ?= "libsdl2-native"
>>>  PREFERRED_PROVIDER_virtual/egl ?= "mesa"
>>>  PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
>>>  PREFERRED_PROVIDER_virtual/libglx ?= "mesa"
>>> @@ -32,6 +34,7 @@ VIRTUAL-RUNTIME_base-utils-hwclock ?= 
>>> "busybox-hwclock"
>>>  VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
>>>  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
>>>  VIRTUAL-RUNTIME_dbus ?= "dbus"
>>> +VIRTUAL-RUNTIME_libsdl2 ?= "libsdl2"
>>> 
>>>  #
>>>  # Default recipe providers
>>> @@ -62,5 +65,6 @@ PREFERRED_PROVIDER_pkgconfig-native ?= 
>>> "pkgconfig-native"
>>>  PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
>>> 
>>>  PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
>>> +PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
>>> 
>>>  PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
>>> --
>>> 2.49.0
>>> 
>>> 
>>> 
>>> 
>> 
>>  -=-=-=-=-=-=-=-=-=-=-=-
>>  Links: You receive all messages sent to this group.
>>  View/Reply Online (#215407): 
>> <https://lists.openembedded.org/g/openembedded-core/message/215407>
>>  Mute This Topic: 
>> <https://lists.openembedded.org/mt/112441574/1997914>
>>  Group Owner: openembedded-core+owner@lists.openembedded.org 
>> <mailto:openembedded-core%2Bowner@lists.openembedded.org>
>>  Unsubscribe: 
>> <https://lists.openembedded.org/g/openembedded-core/unsub> 
>> [raj.khem@gmail.com <mailto:raj.khem@gmail.com>]
>>  -=-=-=-=-=-=-=-=-=-=-=-
>> 


[-- Attachment #2: Type: text/html, Size: 4696 bytes --]

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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
  2025-04-24 21:39 Markus Volk
@ 2025-04-25  7:59 ` Alexander Kanavin
  2025-04-25  8:25   ` Markus Volk
  0 siblings, 1 reply; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-25  7:59 UTC (permalink / raw)
  To: f_l_k; +Cc: openembedded-core

This is fine, but it makes me wonder: is libsdl2-compat compatible
enough to build qemu-system-native with it? Can you try that? Then we
might consider switching over to sdl3 in core.

Alex

On Thu, 24 Apr 2025 at 23:40, Markus Volk via lists.openembedded.org
<f_l_k=t-online.de@lists.openembedded.org> wrote:
>
> virtual/libsdl2 can be provided by 'libsdl2' and 'libsdl2-compat' where the latter
> is a replacement for libsdl2 that uses libsdl3 behind the scenes and should
> be favored if applicable.
>
> Signed-off-by: Markus Volk <f_l_k@t-online.de>
> ---
>  meta/conf/distro/include/default-providers.inc | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/meta/conf/distro/include/default-providers.inc b/meta/conf/distro/include/default-providers.inc
> index cebd0400f4..ee91af8796 100644
> --- a/meta/conf/distro/include/default-providers.inc
> +++ b/meta/conf/distro/include/default-providers.inc
> @@ -4,6 +4,8 @@
>  BB_RECIPE_VIRTUAL_PROVIDERS = "virtual/cross-cc virtual/cross-c++ virtual/cross-binutils virtual/nativesdk-cross-cc virtual/nativesdk-cross-c++ virtual/nativesdk-cross-binutils"
>  PREFERRED_PROVIDER_virtual/xserver ?= "xserver-xorg"
>  PREFERRED_PROVIDER_virtual/xserver-xf86 ?= "xserver-xorg"
> +PREFERRED_PROVIDER_virtual/libsdl2 ?= "libsdl2"
> +PREFERRED_PROVIDER_virtual/libsdl2-native ?= "libsdl2-native"
>  PREFERRED_PROVIDER_virtual/egl ?= "mesa"
>  PREFERRED_PROVIDER_virtual/libgl ?= "mesa"
>  PREFERRED_PROVIDER_virtual/libglx ?= "mesa"
> @@ -32,6 +34,7 @@ VIRTUAL-RUNTIME_base-utils-hwclock ?= "busybox-hwclock"
>  VIRTUAL-RUNTIME_base-utils-syslog ?= "busybox-syslog"
>  VIRTUAL-RUNTIME_keymaps ?= "keymaps"
>  VIRTUAL-RUNTIME_dbus ?= "dbus"
> +VIRTUAL-RUNTIME_libsdl2 ?= "libsdl2"
>
>  #
>  # Default recipe providers
> @@ -62,5 +65,6 @@ PREFERRED_PROVIDER_pkgconfig-native ?= "pkgconfig-native"
>  PREFERRED_RPROVIDER_initd-functions ?= "initscripts"
>
>  PREFERRED_PROVIDER_nativesdk-mesa ?= "nativesdk-mesa"
> +PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 ?= "nativesdk-libsdl2"
>
>  PREFERRED_RPROVIDER_virtual-x-terminal-emulator ?= "rxvt-unicode"
> --
> 2.49.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#215406): https://lists.openembedded.org/g/openembedded-core/message/215406
> Mute This Topic: https://lists.openembedded.org/mt/112441574/1686489
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [alex.kanavin@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
  2025-04-25  7:59 ` Alexander Kanavin
@ 2025-04-25  8:25   ` Markus Volk
  2025-04-25  8:36     ` Alexander Kanavin
  0 siblings, 1 reply; 7+ messages in thread
From: Markus Volk @ 2025-04-25  8:25 UTC (permalink / raw)
  To: alex.kanavin; +Cc: openembedded-core

[-- Attachment #1: Type: text/plain, Size: 1184 bytes --]

On Fri, Apr 25 2025 at 09:59:58 +02:00:00, Alexander Kanavin via 
lists.openembedded.org <alex.kanavin=gmail.com@lists.openembedded.org> 
wrote:
> This is fine, but it makes me wonder: is libsdl2-compat compatible
> enough to build qemu-system-native with it? Can you try that? Then we
> might consider switching over to sdl3 in core.

I have already tried this. I have set it up as follows:
VIRTUAL-RUNTIME_libsdl2 = ā€œlibsdl2-compatā€
PREFERRED_PROVIDER_virtual/libsdl2 = ā€œlibsdl2-compatā€
PREFERRED_PROVIDER_virtual/libsdl2-native = ā€œlibsdl2-compat-nativeā€
PREFERRED_PROVIDER_virtual/nativesdk-libsdl2 = 
ā€œnativesdk-libsdl2-compatā€

and I was able to build my complete image, which includes building 
qemu-system-native
and also a lot of libsdl2 games, and at least compilation-wise there 
were no problems.
I also noticed quite some runtime improvements if running libsdl2 apps 
under wayland

Some possible problems I can think of:

- libsdl2-compat would add a requirement for x11 and opengl
- I'm not sure why this is, but libsdl2-compat was added to 
non-repro-meta-oe.inc, which
  suggests there may still be a reproducibility issue


[-- Attachment #2: Type: text/html, Size: 1483 bytes --]

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

* Re: [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2
  2025-04-25  8:25   ` Markus Volk
@ 2025-04-25  8:36     ` Alexander Kanavin
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Kanavin @ 2025-04-25  8:36 UTC (permalink / raw)
  To: Markus Volk; +Cc: openembedded-core

On Fri, 25 Apr 2025 at 10:25, Markus Volk <f_l_k@t-online.de> wrote:
> Some possible problems I can think of:
>
> - libsdl2-compat would add a requirement for x11 and opengl

This is already the case for libsdl2-native, so it won't worsen
things. At some point we can see if we can disable x11 and run
qemu-system-native as a pure wayland client, perhaps only after they
add direct sdl3 support.

> - I'm not sure why this is, but libsdl2-compat was added to non-repro-meta-oe.inc, which
>   suggests there may still be a reproducibility issue

Yes, this needs to be addressed before adding to core.

Alex


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

end of thread, other threads:[~2025-04-25  8:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <18395F03D66275F9.31387@lists.openembedded.org>
2025-04-24 21:40 ` [oe-core][PATCHv2] default-providers.inc: add entries for virtual/libsdl2 Markus Volk
2025-04-24 22:53   ` Khem Raj
2025-04-24 22:56     ` Markus Volk
2025-04-24 21:39 Markus Volk
2025-04-25  7:59 ` Alexander Kanavin
2025-04-25  8:25   ` Markus Volk
2025-04-25  8:36     ` Alexander Kanavin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox