File webkit2gtk3-no-libepoxy.patch of Package webkit2gtk3.31628
diff -urp webkitgtk-2.41.91.atk/Source/cmake/OptionsGTK.cmake webkitgtk-2.41.91/Source/cmake/OptionsGTK.cmake
--- webkitgtk-2.41.91.atk/Source/cmake/OptionsGTK.cmake 2023-09-05 08:48:45.365850688 -0500
+++ webkitgtk-2.41.91/Source/cmake/OptionsGTK.cmake 2023-09-07 11:46:05.386324291 -0500
@@ -20,7 +20,7 @@ find_package(LibGcrypt 1.6.0 REQUIRED)
find_package(HarfBuzz 1.4.2 REQUIRED COMPONENTS ICU)
find_package(ICU 52.1 REQUIRED COMPONENTS data i18n uc)
find_package(JPEG REQUIRED)
-find_package(LibEpoxy 1.4.0 REQUIRED)
+find_package(LibEpoxy 1.3.0 REQUIRED)
find_package(LibXml2 2.8.0 REQUIRED)
find_package(PNG REQUIRED)
find_package(SQLite3 REQUIRED)
diff -urp webkitgtk-2.41.91.atk/Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp webkitgtk-2.41.91/Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp
--- webkitgtk-2.41.91.atk/Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp 2023-08-09 03:49:45.740320700 -0500
+++ webkitgtk-2.41.91/Source/WebCore/platform/graphics/egl/PlatformDisplaySurfaceless.cpp 2023-09-07 13:48:07.905196284 -0500
@@ -29,6 +29,7 @@
#if USE(EGL)
#include "GLContext.h"
#include <epoxy/egl.h>
+#define EGL_PLATFORM_SURFACELESS_MESA 0x31dd
namespace WebCore {
diff -urp webkitgtk-2.41.91.atk/Source/WebCore/platform/graphics/gbm/DMABufEGLUtilities.h webkitgtk-2.41.91/Source/WebCore/platform/graphics/gbm/DMABufEGLUtilities.h
--- webkitgtk-2.41.91.atk/Source/WebCore/platform/graphics/gbm/DMABufEGLUtilities.h 2023-08-09 03:49:45.760321400 -0500
+++ webkitgtk-2.41.91/Source/WebCore/platform/graphics/gbm/DMABufEGLUtilities.h 2023-09-07 16:25:49.698758696 -0500
@@ -30,6 +30,8 @@
#include <span>
#include <wtf/Vector.h>
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
// This is a utilities header that provides helpers for integration of DMABuf operations with EGL.
// No EGL headers are included here to keep the helpers usable across different EGL implementations,
// so the expectation is that this header is included in the place-of-use implementation file after
diff -urp webkitgtk-2.41.91.atk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp webkitgtk-2.41.91/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp
--- webkitgtk-2.41.91.atk/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp 2023-08-18 00:53:08.793882000 -0500
+++ webkitgtk-2.41.91/Source/WebKit/UIProcess/gtk/AcceleratedBackingStoreDMABuf.cpp 2023-09-07 22:41:15.938340091 -0500
@@ -48,6 +48,8 @@
#include <gdk/x11/gdkx.h>
#endif
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
namespace WebKit {
OptionSet<DMABufRendererBufferMode> AcceleratedBackingStoreDMABuf::rendererBufferMode()
diff -urp webkitgtk-2.41.91.atk/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp webkitgtk-2.41.91/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp
--- webkitgtk-2.41.91.atk/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp 2023-08-09 03:49:52.272526000 -0500
+++ webkitgtk-2.41.91/Source/WebKit/WebProcess/WebPage/gtk/AcceleratedSurfaceDMABuf.cpp 2023-09-07 23:00:37.797841321 -0500
@@ -42,6 +42,9 @@
#include <gbm.h>
#endif
+#define EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT 0x3443
+#define EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT 0x3444
+
namespace WebKit {
static uint64_t generateID()