Skip to contentSkip to conversation

webkitgtk: Add upstream patch to fix build problem

PATCH In review Pushpal Sidhu 4 participants 5 messages Oct 23, 2015 – Nov 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 webkitgtk: Add upstream patch to fix build problem

From Upstream webkit: fd15a368fa73fe08d91cc1dd7ef05c0c5a3ae851

Webkit will fail to compile under certain circumstances. Please see
https://bugs.webkit.org/show_bug.cgi?id=149172 for more details.

---
Changes in v2:
* Added Upstream-Status line
* Added self Signed-off-by
* Added description to problem solved

 ...ailure-with-ACCELERATED_2D_CANVAS-when-ca.patch | 35 ++++++++++++++++++++++
 meta/recipes-sato/webkit/webkitgtk_2.8.5.bb        |  1 +
 2 files changed, 36 insertions(+)
 create mode 100644 meta/recipes-sato/webkit/files/0002-GTK-Build-failure-with-ACCELERATED_2D_CANVAS-when-ca.patch
meta/recipes-sato/webkit/files/0002-GTK-Build-failure-with-ACCELERATED_2D_CANVAS-when-ca.patch new file +35 -0
new file mode 100644
index 0000000..e95c0e4
@@ -0,0 +1,35 @@
+From 6ea42d4fa6f3f6dd18c37cb7b6e1faea6afefba4 Mon Sep 17 00:00:00 2001
+From: "[email protected]" <[email protected]>
+Date: Tue, 15 Sep 2015 21:50:18 +0000
+Subject: [PATCH] [GTK] Build failure with ACCELERATED_2D_CANVAS when cairo-gl has
+ built with OpenGLESv2 support only.
+
+When cairo-gl is built with GLX and ACCELERATED_2D_CANVAS if cairo-gl was only
+built with OpenGLESv2, cairo-glx is not enabled causing
+Source/WebCore/platform/graphics/glx/GLContextGLX.cpp to reference an undeclared
+function and cause a compliation error. Adding an extra check resolves this
+build failure.
+
+Upstream-Status: Backport [webkit-2.10.0]
+
+Signed-off-by: Pushpal Sidhu <[email protected]>
+---
+ Source/WebCore/platform/graphics/glx/GLContextGLX.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp b/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
+index 7890d8d..4ed3a43 100644
+--- a/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
++++ b/Source/WebCore/platform/graphics/glx/GLContextGLX.cpp
+@@ -266,7 +266,7 @@ cairo_device_t* GLContextGLX::cairoDevice()
+     if (m_cairoDevice)
+         return m_cairoDevice;
+ 
+-#if ENABLE(ACCELERATED_2D_CANVAS)
++#if ENABLE(ACCELERATED_2D_CANVAS) && CAIRO_HAS_GLX_FUNCTIONS
+     m_cairoDevice = cairo_glx_device_create(sharedX11Display(), m_context);
+ #endif
+ 
+-- 
+2.6.2
+
meta/recipes-sato/webkit/webkitgtk_2.8.5.bb +1 -0
index e29666a..68634a9 100644
@@ -13,6 +13,7 @@ LIC_FILES_CHKSUM = "file://Source/JavaScriptCore/COPYING.LIB;md5=d0c6d6397a5d842
 SRC_URI = "\
   http://www.webkitgtk.org/releases/${BPN}-${PV}.tar.xz \
   file://0001-This-patch-fixes-a-command-line-that-is-too-long-ove.patch \
+  file://0002-GTK-Build-failure-with-ACCELERATED_2D_CANVAS-when-ca.patch \
   file://gcc5.patch \
   "
 SRC_URI[md5sum] = "df79991848a5096d3a75289ebce547ae"
Signature · 1 line
2.6.2
#1 lore raw
Quoted 1 line · Pushpal Sidhu

+Upstream-Status: Backport [webkit-2.10.0]

Why not update the recipe to latest 2.10 release instead?

Alex

#2 lore raw
Quoted 4 lines · On Monday 26 October 2015 13:34:11 Alexander Kanavin wrote:
Quoted 1 line · Pushpal Sidhu

+Upstream-Status: Backport [webkit-2.10.0]

Why not update the recipe to latest 2.10 release instead?

At this stage of the release it's too late for upgrades; we could certainly do that for master after the release though.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw

Alexander,

Quoted 8 lines · Paul Eggleton
Quoted 4 lines · On Monday 26 October 2015 13:34:11 Alexander Kanavin wrote:
Quoted 1 line · Pushpal Sidhu

+Upstream-Status: Backport [webkit-2.10.0]

Why not update the recipe to latest 2.10 release instead?

At this stage of the release it's too late for upgrades; we could certainly do that for master after the release though.

Just wondering what the status was for this patch getting accepted. I haven't heard anything from you in a few days now.

- Pushpal

#4 lore raw

Hi,

Quoted 3 lines · Pushpal Sidhu

Just wondering what the status was for this patch getting accepted. I haven't heard anything from you in a few days now.

It's queued in in my staging branch for when master re-opens after the 2.0 release is made.

Ross