From: Alexander Kanavin <[email protected]> Signed-off-by: Alexander Kanavin <[email protected]> --- meta/recipes-devtools/qemu/qemu.inc | 1 + ...disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 meta/recipes-devtools/qemu/qemu/0001-ui-sdl2.c-force-disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc index 8efb2370c6..3071f74650 100644 --- a/meta/recipes-devtools/qemu/qemu.inc +++ b/meta/recipes-devtools/qemu/qemu.inc @@ -36,6 +36,7 @@ SRC_URI = "https://download.qemu.org/${BPN}-${PV}.tar.xz \ file://0013-hw-scsi-vhost-scsi-include-standard-headers-for-vhost-worker-structs.patch \ file://qemu-guest-agent.init \ file://qemu-guest-agent.udev \ + file://0001-ui-sdl2.c-force-disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch \ " # file index at download.qemu.org isn't reliable: https://gitlab.com/qemu-project/qemu-web/-/issues/9 UPSTREAM_CHECK_URI = "https://www.qemu.org" diff --git a/meta/recipes-devtools/qemu/qemu/0001-ui-sdl2.c-force-disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch b/meta/recipes-devtools/qemu/qemu/0001-ui-sdl2.c-force-disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch new file mode 100644 index 0000000000..6b84254ac1 --- /dev/null +++ b/meta/recipes-devtools/qemu/qemu/0001-ui-sdl2.c-force-disable-SDL_HINT_VIDEO_X11_FORCE_EGL.patch @@ -0,0 +1,28 @@ +From ba4efe836c488d00e0f44929ee45feb3b1c1e014 Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <[email protected]> +Date: Wed, 10 Jun 2026 15:00:26 +0200 +Subject: [PATCH] ui/sdl2.c: force-disable SDL_HINT_VIDEO_X11_FORCE_EGL, + +This is problematic in X11-only environments, as it sets +SDL on a code path that ends in a crash: +https://gitlab.com/qemu-project/qemu/-/work_items/3540 + +Upstream-Status: Inappropriate [yocto-specific workaround] +Signed-off-by: Alexander Kanavin <[email protected]> +--- + ui/sdl2.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/ui/sdl2.c b/ui/sdl2.c +index 987ad334b..b4c8a50de 100644 +--- a/ui/sdl2.c ++++ b/ui/sdl2.c +@@ -871,7 +871,7 @@ static void sdl2_set_hint_x11_force_egl(void) + * It's always safe to set the hint even if X11 is not used by SDL. + * SDL will work regardless of the hint. + */ +- SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1"); ++ //SDL_SetHint(SDL_HINT_VIDEO_X11_FORCE_EGL, "1"); + eglTerminate(egl_display); + } + -- 2.47.3
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#238365): https://lists.openembedded.org/g/openembedded-core/message/238365 Mute This Topic: https://lists.openembedded.org/mt/119740372/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
