]> code.ossystems Code Review - openembedded-core.git/commit
libsdl2: disable shared memory for native builds
authorAwais Belal <Awais_Belal@mentor.com>
Wed, 17 Mar 2021 14:06:44 +0000 (19:06 +0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 20 Mar 2021 18:50:05 +0000 (18:50 +0000)
commitd12306a6331238a25db52816ad74a775c026d7da
treeedee61a8974c308c6df06b356bffcbe62ae7949d
parent2881875da12ac8db3db67e4a45e511169e0e2820
libsdl2: disable shared memory for native builds

libsdl2 currently does not handle the failures that
occur due to shared memory in case of remote hosts
where it should ideally switch to socket based writing
when a failure is seen with shared memory.
Consider a scenario where a qemu build is done with
graphics support on a build machine and then accessed
remotely using ssh. If the remote host's X presents
MIT-SHM as an extension, launching qemu fails with

runqemu - ERROR - Failed to run qemu: X Error: BadValue
Request Major code 130 (MIT-SHM)
Request Minor code 3 ()

This is most often seen when the remote machine doing
ssh is a Ubuntu 20.04. The libsdl2 native are mainly
used for qemu at this time so it is a major usecase.
A report of such a failure was also presented at
https://lists.yoctoproject.org/g/poky/topic/78854857

Signed-off-by: Awais Belal <awais_belal@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb