]> code.ossystems Code Review - openembedded-core.git/commitdiff
qt-4.7.4: Fix build with gcc 4.7
authorKhem Raj <raj.khem@gmail.com>
Sat, 31 Mar 2012 00:27:41 +0000 (17:27 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 4 Apr 2012 15:56:37 +0000 (16:56 +0100)
g++ 4.7 is detecting inheritence problems
which we solve by explictly specifying
elements in constructors

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/recipes-qt/qt4/qt-4.7.4.inc
meta/recipes-qt/qt4/qt-4.7.4/gcc47-fix.patch [new file with mode: 0644]
meta/recipes-qt/qt4/qt4-embedded_4.7.4.bb
meta/recipes-qt/qt4/qt4-x11-free_4.7.4.bb

index f8956f7bb506ed3f46dad2995d13ffe5a75626a5..6ea9efcf863a45e54cd1782835055d1d9a4f31b5 100644 (file)
@@ -20,6 +20,7 @@ SRC_URI = "http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-${PV}.
            file://g++.conf \
            file://linux.conf \
            file://fix-qtbug-20925.patch \
+          file://gcc47-fix.patch \
            "
 
 SRC_URI[md5sum] = "9831cf1dfa8d0689a06c2c54c5c65aaf"
diff --git a/meta/recipes-qt/qt4/qt-4.7.4/gcc47-fix.patch b/meta/recipes-qt/qt4/qt-4.7.4/gcc47-fix.patch
new file mode 100644 (file)
index 0000000..1a73626
--- /dev/null
@@ -0,0 +1,67 @@
+Fix compiler errors e.g.
+
+| ../3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h:270:100: error: invalid static_cast from type 'QTJSC::JSVariableObject::JSVariableObjectData* const' to type 'QTJSC::JSGlobalObject::JSGlobalObjectData*'
+
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+
+Upstream-Status: Pending
+
+Index: qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h
+===================================================================
+--- qt-everywhere-opensource-src-4.7.4.orig/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h        2012-03-30 15:29:20.733188940 -0700
++++ qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSGlobalObject.h     2012-03-30 15:29:46.525190187 -0700
+@@ -57,9 +57,8 @@
+     
+     class JSGlobalObject : public JSVariableObject {
+     protected:
+-        using JSVariableObject::JSVariableObjectData;
+-        struct JSGlobalObjectData : public JSVariableObjectData {
++        struct JSGlobalObjectData : public JSVariableObject::JSVariableObjectData {
+             // We use an explicit destructor function pointer instead of a
+             // virtual destructor because we want to avoid adding a vtable
+             // pointer to this struct. Adding a vtable pointer would force the
+Index: qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h
+===================================================================
+--- qt-everywhere-opensource-src-4.7.4.orig/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h   2012-03-30 15:31:40.713195714 -0700
++++ qt-everywhere-opensource-src-4.7.4/src/3rdparty/javascriptcore/JavaScriptCore/runtime/JSStaticScopeObject.h        2012-03-30 15:32:01.449196717 -0700
+@@ -32,8 +32,7 @@
+     
+     class JSStaticScopeObject : public JSVariableObject {
+     protected:
+-        using JSVariableObject::JSVariableObjectData;
+-        struct JSStaticScopeObjectData : public JSVariableObjectData {
++        struct JSStaticScopeObjectData : public JSVariableObject::JSVariableObjectData {
+             JSStaticScopeObjectData()
+                 : JSVariableObjectData(&symbolTable, &registerStore + 1)
+             {
+Index: qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h
+===================================================================
+--- qt-everywhere-opensource-src-4.7.4.orig/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h        2012-03-30 15:46:29.841238746 -0700
++++ qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/JavaScriptCore/runtime/JSGlobalObject.h     2012-03-30 15:47:19.525241150 -0700
+@@ -57,7 +57,7 @@
+     protected:
+         using JSVariableObject::JSVariableObjectData;
+-        struct JSGlobalObjectData : public JSVariableObjectData {
++        struct JSGlobalObjectData : public JSVariableObject::JSVariableObjectData {
+             // We use an explicit destructor function pointer instead of a
+             // virtual destructor because we want to avoid adding a vtable
+             // pointer to this struct. Adding a vtable pointer would force the
+Index: qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/JavaScriptCore/runtime/JSStaticScopeObject.h
+===================================================================
+--- qt-everywhere-opensource-src-4.7.4.orig/src/3rdparty/webkit/JavaScriptCore/runtime/JSStaticScopeObject.h   2012-03-30 15:47:50.789242663 -0700
++++ qt-everywhere-opensource-src-4.7.4/src/3rdparty/webkit/JavaScriptCore/runtime/JSStaticScopeObject.h        2012-03-30 16:25:51.465353133 -0700
+@@ -32,10 +32,9 @@
+     
+     class JSStaticScopeObject : public JSVariableObject {
+     protected:
+-        using JSVariableObject::JSVariableObjectData;
+-        struct JSStaticScopeObjectData : public JSVariableObjectData {
++        struct JSStaticScopeObjectData : public JSVariableObject::JSVariableObjectData {
+             JSStaticScopeObjectData()
+-                : JSVariableObjectData(&symbolTable, &registerStore + 1)
++                : JSVariableObject::JSVariableObjectData(&symbolTable, &registerStore + 1)
+             {
+             }
+             SymbolTable symbolTable;
index a1fcafb0a0d166db863709bf2771e21ad9e9eb7e..75b2cee587abe0daf0cbe3262f05aed558eb4b3f 100644 (file)
@@ -1,7 +1,7 @@
 require qt-${PV}.inc
 require qt4-embedded.inc
 
-PR = "${INC_PR}.7"
+PR = "${INC_PR}.8"
 
 QT_CONFIG_FLAGS_append_armv6 = " -no-neon "
 
index e7f848e889aea126a79a15a7b34eaa4b9eebcaee..e845759a0843fe207ad465e23ffd22b9bb9ed2d5 100644 (file)
@@ -1,7 +1,7 @@
 require qt4-x11-free.inc
 require qt-${PV}.inc
 
-PR = "${INC_PR}.7"
+PR = "${INC_PR}.8"
 
 QT_CONFIG_FLAGS_append_armv6 = " -no-neon "