summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/libsdl2
diff options
context:
space:
mode:
authorAwais Belal <Awais_Belal@mentor.com>2021-03-17 19:06:44 +0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-03-20 18:54:55 +0000
commitbd72322c2ab3974aa62014723f634ca8af4116ef (patch)
treeb074430fa9eda87b29a1bd583c6a64a46f642e83 /meta/recipes-graphics/libsdl2
parent99c49bae5a42e378688a831cc336970a60272759 (diff)
downloadpoky-bd72322c2ab3974aa62014723f634ca8af4116ef.tar.gz
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 (From OE-Core rev: d12306a6331238a25db52816ad74a775c026d7da) Signed-off-by: Awais Belal <awais_belal@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/libsdl2')
-rw-r--r--meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
index 872592fdae..54556abb27 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.14.bb
@@ -65,6 +65,7 @@ PACKAGECONFIG[wayland] = "--enable-video-wayland,--disable-video-wayland,wayl
65PACKAGECONFIG[x11] = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender" 65PACKAGECONFIG[x11] = "--enable-video-x11,--disable-video-x11,virtual/libx11 libxext libxrandr libxrender"
66 66
67EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader" 67EXTRA_AUTORECONF += "--include=acinclude --exclude=autoheader"
68CFLAGS_append_class-native = " -DNO_SHARED_MEMORY"
68 69
69do_configure_prepend() { 70do_configure_prepend() {
70 # Remove old libtool macros. 71 # Remove old libtool macros.