Add patch to fix i686 build

Related: #2176270
This commit is contained in:
Michael Catanzaro 2023-05-04 13:12:25 -05:00
parent 83fc3a7e52
commit f90b1ed2e3
2 changed files with 16 additions and 0 deletions

13
egl-cast.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp b/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp
index 7a7018390a11..dddea337ebff 100644
--- a/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp
+++ b/Source/WebCore/platform/graphics/egl/GLContextEGLX11.cpp
@@ -91,7 +91,7 @@ std::unique_ptr<GLContextEGL> GLContextEGL::createPixmapContext(PlatformDisplay&
// swap buffers. So, we use a custom XError handler here that ignores BadDrawable errors and only warns about any other
// errors without aborting in any case.
XErrorTrapper trapper(x11Display, XErrorTrapper::Policy::Warn, { BadDrawable });
- EGLSurface surface = eglCreatePixmapSurface(display, config, reinterpret_cast<EGLNativePixmapType>(pixmap.get()), 0);
+ EGLSurface surface = eglCreatePixmapSurface(display, config, (EGLNativePixmapType)pixmap.get(), 0);
if (surface == EGL_NO_SURFACE) {
eglDestroyContext(display, context);
return nullptr;

View File

@ -24,6 +24,9 @@ Source1: https://webkitgtk.org/releases/webkitgtk-%{version}.tar.xz.asc
# $ gpg --export --export-options export-minimal D7FCF61CF9A2DEAB31D81BD3F3D322D0EC4582C3 5AA3BC334FD7E3369E7C77B291C559DBE4C9123B > webkitgtk-keys.gpg
Source2: webkitgtk-keys.gpg
# https://github.com/WebKit/WebKit/pull/13083
Patch0: egl-cast.patch
BuildRequires: bison
BuildRequires: bubblewrap
BuildRequires: cmake