commit:     afcb4c9522c9d14dc54ca1d35b0d45dadf6b12f3
Author:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 27 20:52:15 2020 +0000
Commit:     Mart Raudsepp <leio <AT> gentoo <DOT> org>
CommitDate: Fri Nov 27 20:54:15 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afcb4c95

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 <AT> gentoo.org>

 .../webkit-gtk/files/2.30.3-fix-noGL-build.patch   | 27 ++++++++++++++++++++++
 net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild       |  1 +
 2 files changed, 28 insertions(+)

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 00000000000..5e9f4267731
--- /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 <[email protected]>
+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
+

diff --git a/net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild 
b/net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild
index c2c5d814610..42baa21fdab 100644
--- a/net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild
+++ b/net-libs/webkit-gtk/webkit-gtk-2.30.3.ebuild
@@ -174,6 +174,7 @@ src_prepare() {
        eapply "${FILESDIR}"/2.28.2-opengl-without-X-fixes.patch
        eapply "${FILESDIR}"/2.28.2-non-jumbo-fix.patch
        eapply "${FILESDIR}"/2.28.4-non-jumbo-fix2.patch
+       eapply "${FILESDIR}"/${PV}-fix-noGL-build.patch
        cmake-utils_src_prepare
        gnome2_src_prepare
 }

Reply via email to