commit: 925f7899ed9e63d850bfeb671a66e1bd07570a8b
parent: 3e610e31786d8e673a0baf9b8c60010fc1800b75
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Sat, 19 Oct 2019 16:59:51 +0200
net-libs/webkit-gtk: Fix 2.26.1 build issues
Diffstat:
3 files changed, 33 insertions(+), 0 deletions(-)
diff --git a/net-libs/webkit-gtk/files/webkit-gtk-2.26.1-250818_webdriver_off.diff b/net-libs/webkit-gtk/files/webkit-gtk-2.26.1-250818_webdriver_off.diff
@@ -0,0 +1,25 @@
+Index: /Source/WebKit/UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp
+===================================================================
+--- /Source/WebKit/UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp (revision 250817)
++++ /Source/WebKit/UIProcess/Automation/gtk/WebAutomationSessionGtk.cpp (revision 250818)
+@@ -35,4 +35,5 @@
+ using namespace WebCore;
+
++#if ENABLE(WEBDRIVER_MOUSE_INTERACTIONS)
+ static unsigned modifiersToEventState(OptionSet<WebEvent::Modifier> modifiers)
+ {
+@@ -132,5 +133,7 @@
+ }
+ }
+-
++#endif // ENABLE(WEBDRIVER_MOUSE_INTERACTIONS)
++
++#if ENABLE(WEBDRIVER_KEYBOARD_INTERACTIONS)
+ static void doKeyStrokeEvent(GdkEventType type, GtkWidget* widget, unsigned keyVal, unsigned state, bool doReleaseAfterPress = false)
+ {
+@@ -332,4 +335,5 @@
+ } while (*p);
+ }
++#endif // ENABLE(WEBDRIVER_KEYBOARD_INTERACTIONS)
+
+ } // namespace WebKit
diff --git a/net-libs/webkit-gtk/webkit-gtk-2.26.1.ebuild b/net-libs/webkit-gtk/webkit-gtk-2.26.1.ebuild
@@ -129,6 +129,8 @@ S="${WORKDIR}/${MY_P}"
CHECKREQS_DISK_BUILD="18G" # and even this might not be enough, bug #417307
+PATCHES=( "${FILESDIR}/${P}-250818_webdriver_off.diff" )
+
pkg_pretend() {
if [[ ${MERGE_TYPE} != "binary" ]] ; then
if is-flagq "-g*" && ! is-flagq "-g*0" ; then
diff --git a/profiles/base/package.use.force b/profiles/base/package.use.force
@@ -0,0 +1,6 @@
+# Copyright 2018-2019 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
+# Distributed under the terms of the GNU General Public License v2
+
+# Haelwenn (lanodan) Monnier <contact@hacktivis.me> (2019-10-19)
+# webkit-gtk 2.26.1 fails building without WebGL
+~net-libs/webkit-gtk-2.26.1 webgl