diff options
| author | Khem Raj <raj.khem@gmail.com> | 2023-07-08 20:46:48 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-07-14 17:31:06 +0100 |
| commit | 509c78f2e38b64ea0d334268c4e26eb4478f8cb4 (patch) | |
| tree | 4ee78b393f22a016bdbabf753364ba18b8ee5ac9 | |
| parent | 9b838a189e7b98566d13513dfc6f998b1affe667 (diff) | |
| download | poky-509c78f2e38b64ea0d334268c4e26eb4478f8cb4.tar.gz | |
webkitgtk: Unbreak build on platforms using pvr graphics drivers
(From OE-Core rev: c3068df33d8d30f66cf9bd988b039c80788a74f4)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | meta/recipes-sato/webkit/webkitgtk/check-GST_GL_HAVE_PLATFORM_GLX.patch | 33 | ||||
| -rw-r--r-- | meta/recipes-sato/webkit/webkitgtk_2.40.2.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-sato/webkit/webkitgtk/check-GST_GL_HAVE_PLATFORM_GLX.patch b/meta/recipes-sato/webkit/webkitgtk/check-GST_GL_HAVE_PLATFORM_GLX.patch new file mode 100644 index 0000000000..ae99810ced --- /dev/null +++ b/meta/recipes-sato/webkit/webkitgtk/check-GST_GL_HAVE_PLATFORM_GLX.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | Add additional check on GST_GL_HAVE_PLATFORM_GLX before using gst_gl_display_x11_new_with_display | ||
| 2 | |||
| 3 | This ensures that there is a compile time check for glx support in gstreamer as | ||
| 4 | runtime check is not enough because gst_gl_display_x11_new_with_display() API comes from | ||
| 5 | gst/gl/x11/gstgldisplay_x11.h which is only included when GST_GL_HAVE_PLATFORM_GLX is defined | ||
| 6 | therefore make this check consistent to fix build with some platforms which use pvr gl drivers | ||
| 7 | where this problem appear at compile time. | ||
| 8 | |||
| 9 | |||
| 10 | /mnt/b/yoe/master/build/tmp/work/riscv64-yoe-linux/webkitgtk/2.40.2-r0/webkitgtk-2.40.2/Source/WebCore/platform/graphics/gstreamer/PlatformDisplayGStreamer.cpp:68:31: error: use of undeclared identifier 'gst_gl_display_x11_new_with_display'; did you mean 'gst_gl_display_egl_new_with_egl_display'? | ||
| 11 | 68 | return GST_GL_DISPLAY(gst_gl_display_x11_new_with_display(downcast<PlatformDisplayX11>(sharedDisplay).native())); | ||
| 12 | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
| 13 | | gst_gl_display_egl_new_with_egl_display | ||
| 14 | |||
| 15 | This issue is 2.40 specific since GLX support is removed [1] from trunk upstream, therefore | ||
| 16 | this patch wont be needed when upgrading to 2.42+ | ||
| 17 | |||
| 18 | [1] https://github.com/WebKit/WebKit/commit/320560f9e53ddcd53954059bd005e0c75eb91abf | ||
| 19 | |||
| 20 | Upstream-Status: Inappropriate [GLX support is gone in 2.41+] | ||
| 21 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 22 | |||
| 23 | --- a/Source/WebCore/platform/graphics/gstreamer/PlatformDisplayGStreamer.cpp 2023-02-20 01:22:18.917743700 -0800 | ||
| 24 | +++ b/Source/WebCore/platform/graphics/gstreamer/PlatformDisplayGStreamer.cpp 2023-07-08 08:45:09.739177065 -0700 | ||
| 25 | @@ -63,7 +63,7 @@ | ||
| 26 | if (glPlatform == GST_GL_PLATFORM_EGL) | ||
| 27 | return GST_GL_DISPLAY(gst_gl_display_egl_new_with_egl_display(sharedDisplay.eglDisplay())); | ||
| 28 | #endif | ||
| 29 | -#if USE(GLX) | ||
| 30 | +#if USE(GLX) && GST_GL_HAVE_PLATFORM_GLX | ||
| 31 | if (is<PlatformDisplayX11>(sharedDisplay) && glPlatform == GST_GL_PLATFORM_GLX) | ||
| 32 | return GST_GL_DISPLAY(gst_gl_display_x11_new_with_display(downcast<PlatformDisplayX11>(sharedDisplay).native())); | ||
| 33 | #endif | ||
diff --git a/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb b/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb index b0dd95b78f..8bef0b1605 100644 --- a/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb +++ b/meta/recipes-sato/webkit/webkitgtk_2.40.2.bb | |||
| @@ -15,6 +15,7 @@ SRC_URI = "https://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \ | |||
| 15 | file://0d3344e17d258106617b0e6d783d073b188a2548.patch \ | 15 | file://0d3344e17d258106617b0e6d783d073b188a2548.patch \ |
| 16 | file://4977290ab4ab35258a6da9b13795c9b0f7894bf4.patch \ | 16 | file://4977290ab4ab35258a6da9b13795c9b0f7894bf4.patch \ |
| 17 | file://0001-Source-JavaScriptCore-CMakeLists.txt-ensure-reproduc.patch \ | 17 | file://0001-Source-JavaScriptCore-CMakeLists.txt-ensure-reproduc.patch \ |
| 18 | file://check-GST_GL_HAVE_PLATFORM_GLX.patch \ | ||
| 18 | " | 19 | " |
| 19 | SRC_URI[sha256sum] = "96898870d994da406ee7a632816dcde9a3bb395ee5f344fcb3f3b8cc8a77e000" | 20 | SRC_URI[sha256sum] = "96898870d994da406ee7a632816dcde9a3bb395ee5f344fcb3f3b8cc8a77e000" |
| 20 | 21 | ||
