[packages/ewebkit] - added gcc patch (fixes build with g++ 4.8)

qboosh qboosh at pld-linux.org
Tue Jul 23 17:51:55 CEST 2013


commit 268d4ec978b695659cb9a159a422040e42910727
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 23 17:52:06 2013 +0200

    - added gcc patch (fixes build with g++ 4.8)

 ewebkit-gcc.patch | 58 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 ewebkit.spec      |  2 ++
 2 files changed, 60 insertions(+)
---
diff --git a/ewebkit.spec b/ewebkit.spec
index 64982ba..931eb9a 100644
--- a/ewebkit.spec
+++ b/ewebkit.spec
@@ -10,6 +10,7 @@ Source0:	http://packages.profusion.mobi/webkit-efl/webkit-efl-svn-%{subver}.tar.
 # Source0-md5:	54332bd571a23d44e32837f4fa3a1c76
 Patch0:		%{name}-lib.patch
 Patch1:		%{name}-harfbuzz-icu.patch
+Patch2:		%{name}-gcc.patch
 URL:		http://trac.enlightenment.org/e/wiki/EWebKit
 BuildRequires:	bison
 BuildRequires:	cairo-devel >= 1.10
@@ -93,6 +94,7 @@ Pliki nagłówkowe biblioteki WebKit-EFL.
 %setup -q -n webkit-efl-svn-%{subver}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 # replace -g2 with -g1 to not run into 4 GB ar format limit
diff --git a/ewebkit-gcc.patch b/ewebkit-gcc.patch
new file mode 100644
index 0000000..153097b
--- /dev/null
+++ b/ewebkit-gcc.patch
@@ -0,0 +1,58 @@
+From a5a5eeb10b56ad1f98899a02281ea825e3cd1202 Mon Sep 17 00:00:00 2001
+From: Martin Jansa <Martin.Jansa at gmail.com>
+Date: Sat, 1 Jun 2013 19:23:54 +0200
+Subject: [PATCH] ewk: include Element.h for hasTagName function
+
+* ewebkit build fails like gtk in http://trac.webkit.org/changeset/72745
+  | ../../../lib/libwebcore_efl.so.0.1.0: undefined reference to `WebCore::Node::hasTagName(WebCore::QualifiedName const&) const'
+  | collect2: error: ld returned 1 exit status
+  | make[2]: *** [bin/DumpRenderTree] Error 1
+* SDL port has similar issue:
+  https://bugs.webkit.org/show_bug.cgi?id=88536
+
+Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
+---
+ Source/WebCore/css/CSSStyleSheet.cpp | 1 +
+ Source/WebKit/efl/ewk/ewk_frame.cpp  | 1 +
+ Source/WebKit/efl/ewk/ewk_view.cpp   | 1 +
+ 3 files changed, 3 insertions(+)
+
+diff --git a/Source/WebCore/css/CSSStyleSheet.cpp b/Source/WebCore/css/CSSStyleSheet.cpp
+index 00b2d91..1d03c2e 100644
+--- a/Source/WebCore/css/CSSStyleSheet.cpp
++++ b/Source/WebCore/css/CSSStyleSheet.cpp
+@@ -29,6 +29,7 @@
+ #include "CSSStyleRule.h"
+ #include "CachedCSSStyleSheet.h"
+ #include "Document.h"
++#include "Element.h"
+ #include "ExceptionCode.h"
+ #include "HTMLNames.h"
+ #include "MediaList.h"
+diff --git a/Source/WebKit/efl/ewk/ewk_frame.cpp b/Source/WebKit/efl/ewk/ewk_frame.cpp
+index fd1ffd2..c86601a 100644
+--- a/Source/WebKit/efl/ewk/ewk_frame.cpp
++++ b/Source/WebKit/efl/ewk/ewk_frame.cpp
+@@ -32,6 +32,7 @@
+ #include "FocusController.h"
+ #include "FrameLoaderClientEfl.h"
+ #include "FrameView.h"
++#include "Element.h"
+ #include "HTMLCollection.h"
+ #include "HTMLHeadElement.h"
+ #include "HTMLImageElement.h"
+diff --git a/Source/WebKit/efl/ewk/ewk_view.cpp b/Source/WebKit/efl/ewk/ewk_view.cpp
+index 9798e94..7a5da60 100644
+--- a/Source/WebKit/efl/ewk/ewk_view.cpp
++++ b/Source/WebKit/efl/ewk/ewk_view.cpp
+@@ -36,6 +36,7 @@
+ #include "FocusController.h"
+ #include "FrameLoaderClientEfl.h"
+ #include "FrameView.h"
++#include "Element.h"
+ #include "GraphicsContext.h"
+ #include "HTMLElement.h"
+ #include "HTMLInputElement.h"
+-- 
+1.8.2.1
+
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ewebkit.git/commitdiff/268d4ec978b695659cb9a159a422040e42910727



More information about the pld-cvs-commit mailing list