nixpkgs/pkgs/development/libraries/webkitgtk/fdo-backend-path.patch
Bobby Rong 21c06e3507
webkitgtk: 2.40.5 → 2.42.1
https://github.com/WebKit/WebKit/commits/webkitgtk-2.42.1/Source/cmake/OptionsGTK.cmake
https://webkitgtk.org/security/WSA-2023-0009.html

JPEG XL is enabled by default.

Remove support for OpenGL API in the web process;
Remove GLX support:

cfe917fec4
320560f9e5

Other than ENABLE_GLES2 option can be dropped, it is unclear to me what can actually
be dropped so keeping everything around. I assume we keep libGL mainly for egl.

But we don't really need to worry about https://bugzilla.redhat.com/show_bug.cgi?id=2240428 and
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1050777 here, we are applying libgl-path.patch to
libepoxy which should load the libGLESv2 thing in a hardcoded path.

Tested yelp, newsflash and the bundled minibrowser and does not experience crash so far.

Dropped pcre as mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=2212686.
2023-10-06 21:54:04 +08:00

12 lines
893 B
Diff

--- a/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
+++ b/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
@@ -84,7 +84,7 @@ void WebProcessPool::platformInitializeWebProcess(const WebProcessProxy& process
#if PLATFORM(WAYLAND)
if (WebCore::PlatformDisplay::sharedDisplay().type() == WebCore::PlatformDisplay::Type::Wayland && parameters.dmaBufRendererBufferMode.isEmpty()) {
- wpe_loader_init("libWPEBackend-fdo-1.0.so.1");
+ wpe_loader_init("@wpebackend_fdo@/lib/libWPEBackend-fdo-1.0.so.1");
if (AcceleratedBackingStoreWayland::checkRequirements()) {
parameters.hostClientFileDescriptor = UnixFileDescriptor { wpe_renderer_host_create_client(), UnixFileDescriptor::Adopt };
parameters.implementationLibraryName = FileSystem::fileSystemRepresentation(String::fromLatin1(wpe_loader_get_loaded_implementation_library_name()));