summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMart Raudsepp <leio@gentoo.org>2020-11-27 22:52:15 +0200
committerMart Raudsepp <leio@gentoo.org>2020-11-27 22:54:15 +0200
commitafcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3 (patch)
tree13ca05cd0222b1d630337a399a6a1a03bfae2798 /net-libs/webkit-gtk/files
parentapp-emulation/snapd: Bump to version 2.48 (diff)
downloadgentoo-afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3.tar.gz
gentoo-afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3.tar.bz2
gentoo-afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3.zip
net-libs/webkit-gtk: fix discouraged USE="-opengl" build with USE=X
Closes: https://bugs.gentoo.org/757261 Package-Manager: Portage-2.3.103, Repoman-2.3.20 Signed-off-by: Mart Raudsepp <leio@gentoo.org>
Diffstat (limited to 'net-libs/webkit-gtk/files')
-rw-r--r--net-libs/webkit-gtk/files/2.30.3-fix-noGL-build.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/net-libs/webkit-gtk/files/2.30.3-fix-noGL-build.patch b/net-libs/webkit-gtk/files/2.30.3-fix-noGL-build.patch
new file mode 100644
index 000000000000..5e9f42677314
--- /dev/null
+++ b/net-libs/webkit-gtk/files/2.30.3-fix-noGL-build.patch
@@ -0,0 +1,27 @@
+From 25cf4db5575192fd306b7a74d496d1e10d8cfd3e Mon Sep 17 00:00:00 2001
+From: Mart Raudsepp <leio@gentoo.org>
+Date: Fri, 27 Nov 2020 22:47:30 +0200
+Subject: [PATCH] [X11] Fix build with disabled OpenGL
+
+The added PlatformDisplayX11::visual() method requires symbols from
+X11/Xutil.h, which wasn't added as an explicit include with only
+EGL headers indirectly pulled it in with standard build options.
+---
+ Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
+index 8fe3d3e92c88..2b2805446aad 100644
+--- a/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
++++ b/Source/WebCore/platform/graphics/x11/PlatformDisplayX11.cpp
+@@ -30,6 +30,7 @@
+
+ #if PLATFORM(X11)
+ #include <X11/Xlib.h>
++#include <X11/Xutil.h>
+ #include <X11/extensions/Xcomposite.h>
+ #if PLATFORM(GTK)
+ #include <X11/extensions/Xdamage.h>
+--
+2.20.1
+