summaryrefslogtreecommitdiffstats
path: root/patches
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2009-10-21 12:35:41 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2010-06-21 21:52:58 +0200
commitc9ffed63bca0a495d2372c2abe5fd6f29c3b7b15 (patch)
tree626a5a07a16be59f92ae243c576d62f91367aa4a /patches
parent8064059fd8eb34c09307913b6c7ccfcb2b4a8379 (diff)
downloadptxdist-c9ffed63bca0a495d2372c2abe5fd6f29c3b7b15.tar.gz
ptxdist-c9ffed63bca0a495d2372c2abe5fd6f29c3b7b15.tar.xz
[qt4] version bump 4.5.3 -> 4.6.3
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'patches')
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/designer-script.diff33
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/fix-configure-disable.diff48
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/ptx-mkspec.diff114
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/qt-embedded-linux-opensource-src-4.5.0-fix-prl-paths.diff35
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/remove-ordered.diff24
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/script-qtdbus.diff27
-rw-r--r--patches/qt-embedded-linux-opensource-src-4.5.3/series12
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/fix-examples.diff24
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/fix-host-zlib.diff (renamed from patches/qt-embedded-linux-opensource-src-4.5.3/fix-host-zlib.diff)17
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/fix-qws-dnd.diff64
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/hide-cursor-at-startup.diff (renamed from patches/qt-embedded-linux-opensource-src-4.5.3/hide-cursor-at-startup.diff)0
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/ptx-mkspec.diff52
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/remove-ordered.diff52
-rw-r--r--patches/qt-everywhere-opensource-src-4.6.3/series6
14 files changed, 212 insertions, 296 deletions
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/designer-script.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/designer-script.diff
deleted file mode 100644
index 31ed26f8f..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/designer-script.diff
+++ /dev/null
@@ -1,33 +0,0 @@
-From: Robert Schwebel <r.schwebel@pengutronix.de>
-Subject: [PATCH] fix QtScript handling for designer lib
-
-FIXME: This patch does not work yet. The -lQtScript dependency
-FIXME: leaks in via pkg-config!
-
-While linking FIXME we get this error when compiling without support for
-QtScript:
-
-${toolchain}/bin/../lib/gcc/i586-unknown-linux-gnu/4.3.2/ ../../../../i586-unknown-linux-gnu/bin/ld: cannot find -lQtScript
-
-Fix by adding QtScript only when supported.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-
----
- tools/designer/src/components/lib/lib.pro | 3 ++-
- 1 file changed, 2 insertions(+), 1 deletion(-)
-
-Index: qt-embedded-linux-opensource-src-4.5.0/tools/designer/src/components/lib/lib.pro
-===================================================================
---- qt-embedded-linux-opensource-src-4.5.0.orig/tools/designer/src/components/lib/lib.pro
-+++ qt-embedded-linux-opensource-src-4.5.0/tools/designer/src/components/lib/lib.pro
-@@ -64,7 +64,8 @@ PRECOMPILED_HEADER= lib_pch.h
- include(../../sharedcomponents.pri)
- include(../component.pri)
-
--unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtDesigner QtGui QtScript QtXml
-+unix:QMAKE_PKGCONFIG_REQUIRES = QtCore QtDesigner QtGui QtXml
-+unix:!isEmpty(QT_BUILD_SCRIPT_LIB):QMAKE_PKGCONFIG_REQUIRES += QtScript
-
- target.path=$$[QT_INSTALL_LIBS]
- INSTALLS += target
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/fix-configure-disable.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/fix-configure-disable.diff
deleted file mode 100644
index 170572185..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/fix-configure-disable.diff
+++ /dev/null
@@ -1,48 +0,0 @@
-Subject: fix disabling jpeg/mng/tiff
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-
-Setting -no-libjpeg, -no-libmng and -no-libtiff does not work.
-This patch ensures that these are disabled even if the corresponding
-libraries are found. The method is copied from the libpng handling.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- configure | 11 +++++++++--
- 1 file changed, 9 insertions(+), 2 deletions(-)
-
-Index: b/configure
-===================================================================
---- a/configure
-+++ b/configure
-@@ -5533,7 +5533,9 @@ fi
- if [ "$CFG_INOTIFY" = "yes" ]; then
- QT_CONFIG="$QT_CONFIG inotify"
- fi
--if [ "$CFG_LIBJPEG" = "system" ]; then
-+if [ "$CFG_LIBJPEG" = "no" ]; then
-+ CFG_JPEG="no"
-+elif [ "$CFG_LIBJPEG" = "system" ]; then
- QT_CONFIG="$QT_CONFIG system-jpeg"
- fi
- if [ "$CFG_JPEG" = "no" ]; then
-@@ -5541,6 +5543,9 @@ if [ "$CFG_JPEG" = "no" ]; then
- elif [ "$CFG_JPEG" = "yes" ]; then
- QT_CONFIG="$QT_CONFIG jpeg"
- fi
-+if [ "$CFG_LIBMNG" = "no" ]; then
-+ CFG_MNG="no"
-+fi
- if [ "$CFG_LIBMNG" = "system" ]; then
- QT_CONFIG="$QT_CONFIG system-mng"
- fi
-@@ -5565,7 +5570,9 @@ if [ "$CFG_GIF" = "no" ]; then
- elif [ "$CFG_GIF" = "yes" ]; then
- QT_CONFIG="$QT_CONFIG gif"
- fi
--if [ "$CFG_LIBTIFF" = "system" ]; then
-+if [ "$CFG_LIBTIFF" = "no" ]; then
-+ CFG_TIFF="no"
-+elif [ "$CFG_LIBTIFF" = "system" ]; then
- QT_CONFIG="$QT_CONFIG system-tiff"
- fi
- if [ "$CFG_TIFF" = "no" ]; then
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/ptx-mkspec.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/ptx-mkspec.diff
deleted file mode 100644
index e09b183a9..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/ptx-mkspec.diff
+++ /dev/null
@@ -1,114 +0,0 @@
-Subject: mkspec for ptxdist
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-
-Add a mkspec for ptxdist:
-- qplatformdefs.h
- Include the generic qplatformdefs.h
-- qmake.conf.in
- Used to generate qmake.conf with the correct toolchain.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- mkspecs/qws/linux-ptx-g++/qmake.conf.in | 87 ++++++++++++++++++++++++++++++
- mkspecs/qws/linux-ptx-g++/qplatformdefs.h | 2
- 2 files changed, 89 insertions(+)
-
-Index: b/mkspecs/qws/linux-ptx-g++/qmake.conf.in
-===================================================================
---- /dev/null
-+++ b/mkspecs/qws/linux-ptx-g++/qmake.conf.in
-@@ -0,0 +1,87 @@
-+#
-+# qmake configuration for linux-g++
-+#
-+
-+MAKEFILE_GENERATOR = UNIX
-+TEMPLATE = app
-+CONFIG += qt link_prl
-+QT += core gui network
-+QMAKE_INCREMENTAL_STYLE = sublib
-+
-+QMAKE_CC = @COMPILER_PREFIX@gcc
-+QMAKE_LEX = flex
-+QMAKE_LEXFLAGS =
-+QMAKE_YACC = yacc
-+QMAKE_YACCFLAGS = -d
-+QMAKE_CFLAGS = -pipe
-+QMAKE_CFLAGS_WARN_ON = -Wall -W
-+QMAKE_CFLAGS_WARN_OFF =
-+QMAKE_CFLAGS_RELEASE = -O2
-+QMAKE_CFLAGS_DEBUG = -g
-+QMAKE_CFLAGS_SHLIB = -fPIC
-+QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
-+QMAKE_CFLAGS_THREAD = -D_REENTRANT
-+QMAKE_CFLAGS_HIDESYMS = -fvisibility=hidden
-+
-+QMAKE_CXX = @COMPILER_PREFIX@g++
-+QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
-+QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
-+QMAKE_CXXFLAGS_WARN_OFF = $$QMAKE_CFLAGS_WARN_OFF
-+QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE
-+QMAKE_CXXFLAGS_DEBUG = $$QMAKE_CFLAGS_DEBUG
-+QMAKE_CXXFLAGS_SHLIB = $$QMAKE_CFLAGS_SHLIB
-+QMAKE_CXXFLAGS_YACC = $$QMAKE_CFLAGS_YACC
-+QMAKE_CXXFLAGS_THREAD = $$QMAKE_CFLAGS_THREAD
-+QMAKE_CXXFLAGS_HIDESYMS = $$QMAKE_CFLAGS_HIDESYMS -fvisibility-inlines-hidden
-+
-+QMAKE_INCDIR = @INCDIR@
-+QMAKE_LIBDIR = @LIBDIR@
-+QMAKE_INCDIR_X11 =
-+QMAKE_LIBDIR_X11 =
-+QMAKE_INCDIR_QT = $$[QT_INSTALL_HEADERS]
-+QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
-+QMAKE_INCDIR_OPENGL =
-+QMAKE_LIBDIR_OPENGL =
-+QMAKE_INCDIR_QTOPIA = $(QPEDIR)/include/
-+QMAKE_LIBDIR_QTOPIA = $(QPEDIR)/lib
-+
-+QMAKE_LINK = @COMPILER_PREFIX@g++
-+QMAKE_LINK_SHLIB = @COMPILER_PREFIX@g++
-+QMAKE_LFLAGS = @LDFLAGS@
-+QMAKE_LFLAGS_RELEASE =
-+QMAKE_LFLAGS_DEBUG =
-+QMAKE_LFLAGS_SHLIB = -shared
-+QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
-+QMAKE_LFLAGS_SONAME = -Wl,-soname,
-+QMAKE_LFLAGS_THREAD =
-+QMAKE_RPATH = -Wl,-rpath,
-+
-+QMAKE_LIBS =
-+QMAKE_LIBS_DYNLOAD = -ldl
-+QMAKE_LIBS_X11 =
-+QMAKE_LIBS_X11SM =
-+QMAKE_LIBS_QT = -lqte
-+QMAKE_LIBS_QT_THREAD = -lqte-mt
-+QMAKE_LIBS_QT_OPENGL = -lqgl
-+QMAKE_LIBS_QTOPIA = -lqtopia -lqpe
-+QMAKE_LIBS_THREAD = -lpthread
-+QMAKE_LIBS_OPENGL =
-+
-+QMAKE_MOC = $$[QT_INSTALL_BINS]/moc
-+QMAKE_UIC = $$[QT_INSTALL_BINS]/uic
-+
-+QMAKE_AR = @COMPILER_PREFIX@ar cqs
-+QMAKE_RANLIB =
-+
-+QMAKE_TAR = tar -cf
-+QMAKE_GZIP = gzip -9f
-+
-+QMAKE_COPY = cp -f
-+QMAKE_MOVE = mv -f
-+QMAKE_DEL_FILE = rm -f
-+QMAKE_DEL_DIR = rmdir
-+QMAKE_STRIP = strip
-+QMAKE_CHK_DIR_EXISTS = test -d
-+QMAKE_MKDIR = mkdir -p
-+include(../../common/unix.conf)
-+load(qt_config)
-Index: b/mkspecs/qws/linux-ptx-g++/qplatformdefs.h
-===================================================================
---- /dev/null
-+++ b/mkspecs/qws/linux-ptx-g++/qplatformdefs.h
-@@ -0,0 +1,2 @@
-+
-+#include "../../linux-g++/qplatformdefs.h"
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/qt-embedded-linux-opensource-src-4.5.0-fix-prl-paths.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/qt-embedded-linux-opensource-src-4.5.0-fix-prl-paths.diff
deleted file mode 100644
index 7e2be9932..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/qt-embedded-linux-opensource-src-4.5.0-fix-prl-paths.diff
+++ /dev/null
@@ -1,35 +0,0 @@
-From: Robert Schwebel <r.schwebel@pengutronix.de>
-Subject: [PATCH] qmake: avoid host path leakage while building with INSTALL_ROOT
-
-When building with INSTALL_ROOT (i.e. for cross compilation), qmake
-nevertheless generates a 'sed' expression to replace the local build
-path by /usr/{lib,include}. If we now assume an application which uses
-qmake to compile&link against the freshly installed, we observe an
-occurence of "-L/usr/lib" in the generated Makefiles. This may
-accidently work on developer machines where people often have another
-copy of Qt in that place, but fails for example badly while cross
-compiling.
-
-The patch below fixes it by adding $(INSTALL_ROOT) to the replacement
-path. If set during 'make install', it will be used instead of the plain
-prefix.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-
----
- qmake/generators/unix/unixmake.cpp | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: qt-embedded-linux-opensource-src-4.5.0/qmake/generators/unix/unixmake.cpp
-===================================================================
---- qt-embedded-linux-opensource-src-4.5.0.orig/qmake/generators/unix/unixmake.cpp
-+++ qt-embedded-linux-opensource-src-4.5.0/qmake/generators/unix/unixmake.cpp
-@@ -840,7 +840,7 @@ UnixMakefileGenerator::defaultInstall(co
- const QString match = project->first(replace_rules.at(r) + ".match"),
- replace = project->first(replace_rules.at(r) + ".replace");
- if(!match.isEmpty() /*&& match != replace*/)
-- ret += " -e \"s," + match + "," + replace + ",g\"";
-+ ret += " -e \"s," + match + ",$(INSTALL_ROOT)" + replace + ",g\"";
- }
- ret += " \"" + src_meta + "\" >\"" + dst_meta + "\"";
- //ret += " || " + install_meta;
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/remove-ordered.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/remove-ordered.diff
deleted file mode 100644
index 002a203b8..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/remove-ordered.diff
+++ /dev/null
@@ -1,24 +0,0 @@
-Subject: disable ordered compiling.
-From: Michael Olbrich <m.olbrich@pengutronix.de>
-
-By default all modules are compiled in a predefined order. This breaks when
-building not all modules. This patch disables ordered building. As a result
-qmake generates the correct dependancies.
-
-Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
----
- projects.pro | 1 -
- 1 file changed, 1 deletion(-)
-
-Index: b/projects.pro
-===================================================================
---- a/projects.pro
-+++ b/projects.pro
-@@ -2,7 +2,6 @@
- # Main projectfile
- #####################################################################
-
--CONFIG += ordered
- TEMPLATE = subdirs
-
- cross_compile: CONFIG += nostrip
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/script-qtdbus.diff b/patches/qt-embedded-linux-opensource-src-4.5.3/script-qtdbus.diff
deleted file mode 100644
index 4726d724c..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/script-qtdbus.diff
+++ /dev/null
@@ -1,27 +0,0 @@
-From: Robert Schwebel <r.schwebel@pengutronix.de>
-Subject: [PATCH] qtdbus needs qtscript
-
-When building qt without QtScript support, I get this error:
-
-make[4]: Entering directory `qt-embedded-linux-opensource-src-4.5.0/src/plugins/script/qtdbus'
-rm -f libqtscriptdbus.so
-i586-unknown-linux-gnu-g++ -L${sysroot}/lib -L${sysroot}/usr/lib -Wl,-rpath-link -Wl,${sysroot}/lib -Wl,-rpath-link -Wl,${sysroot}/usr/lib -Wl,-rpath,/usr/lib -Wl,-rpath,/usr/lib -shared -o libqtscriptdbus.so .obj/release-shared-emb-i386/main.o .obj/release-shared-emb-i386/moc_main.o -Lqt-embedded-linux-opensource-src-4.5.0/lib -L${sysroot}/lib -L${sysroot}/usr/lib -lQtDBus -Lqt-embedded-linux-opensource-src-4.5.0/lib -L${sysroot}/lib -L${sysroot}/usr/lib -lQtXml -lQtScript -lQtGui -lts -lpng -lfreetype -lQtNetwork -lQtCore -lz -lm -lrt -lpthread -ldl
-${TOOLCHAIN}/bin/../lib/gcc/i586-unknown-linux-gnu/4.3.2/../../../../i586-unknown-linux-gnu/bin/ld:
-cannot find -lQtScript
-
-The qtdbus directory needs qtscript, so we reflect this in script.pro.
-
-Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-
----
- src/plugins/script/script.pro | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-Index: qt-embedded-linux-opensource-src-4.5.0/src/plugins/script/script.pro
-===================================================================
---- qt-embedded-linux-opensource-src-4.5.0.orig/src/plugins/script/script.pro
-+++ qt-embedded-linux-opensource-src-4.5.0/src/plugins/script/script.pro
-@@ -1,2 +1,2 @@
- TEMPLATE = subdirs
--contains(QT_CONFIG, dbus):SUBDIRS += qtdbus
-+contains(QT_CONFIG, dbus):!isEmpty(QT_BUILD_SCRIPT_LIB):SUBDIRS += qtdbus
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/series b/patches/qt-embedded-linux-opensource-src-4.5.3/series
deleted file mode 100644
index 007d1090e..000000000
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/series
+++ /dev/null
@@ -1,12 +0,0 @@
-ptx-mkspec.diff
-remove-ordered.diff
-#fix-configure-disable.diff
-qt-embedded-linux-opensource-src-4.5.0-fix-prl-paths.diff
-hide-cursor-at-startup.diff
-# SCRIPT_LIB is not marked in QT_CONFIG, checking the define with isEmpty or
-# contains(DEFINES, .....) seems not to work. This is probably a name space
-# problem, till we have a better solution, disable the patch here and for the
-# dependency with ptxdist.
-#script-qtdbus.diff
-#designer-script.diff
-fix-host-zlib.diff
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/fix-examples.diff b/patches/qt-everywhere-opensource-src-4.6.3/fix-examples.diff
new file mode 100644
index 000000000..0cbc11ee3
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/fix-examples.diff
@@ -0,0 +1,24 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Subject: add missing subdir
+
+"widgets" is missing from SUBDIRS and wont be commpiled.
+
+This patch addes it.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+
+---
+ examples/tutorials/tutorials.pro | 1 +
+ 1 file changed, 1 insertion(+)
+
+Index: b/examples/tutorials/tutorials.pro
+===================================================================
+--- a/examples/tutorials/tutorials.pro
++++ b/examples/tutorials/tutorials.pro
+@@ -1,5 +1,6 @@
+ TEMPLATE = subdirs
+ SUBDIRS = \
++ widgets \
+ addressbook
+
+ # install
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/fix-host-zlib.diff b/patches/qt-everywhere-opensource-src-4.6.3/fix-host-zlib.diff
index eec941ed5..06eecc5a4 100644
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/fix-host-zlib.diff
+++ b/patches/qt-everywhere-opensource-src-4.6.3/fix-host-zlib.diff
@@ -1,7 +1,18 @@
-From: Marc Kleine-Budde <mkl@pengutronix.de>
-Subject: fix bootstrap during cross compilation if host lacks zlib
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Subject: fix zlib handling for host tools
+
+The host-tools build system is broken. It uses the zlib switch for the
+target to determine if the system or internal zlib should be used.
+This breaks if we select system zlib for the target and there is no zlib.h
+installed on the build system.
+It is also not possible to add aditional include paths for host tools.
+
+With this patch the host-tools always use the internal zlib when
+cross-compiling.
+Fixed upstream for Qt 4.7
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
---
src/tools/bootstrap/bootstrap.pri | 2 +-
src/tools/bootstrap/bootstrap.pro | 2 +-
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/fix-qws-dnd.diff b/patches/qt-everywhere-opensource-src-4.6.3/fix-qws-dnd.diff
new file mode 100644
index 000000000..c6a2e6c23
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/fix-qws-dnd.diff
@@ -0,0 +1,64 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Subject: Fix dnd issue on QWS
+
+An overrideCursor set in the application can be messed up by
+dnd stuff. As a result, the cursor gets stuck at Qt::ForbiddenCursor
+This patch seems to fix it, but I'm not sure if it breaks anything.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+
+---
+ src/gui/kernel/qdnd_qws.cpp | 9 +++------
+ 1 file changed, 3 insertions(+), 6 deletions(-)
+
+Index: b/src/gui/kernel/qdnd_qws.cpp
+===================================================================
+--- a/src/gui/kernel/qdnd_qws.cpp
++++ b/src/gui/kernel/qdnd_qws.cpp
+@@ -162,10 +162,10 @@ void QDragManager::updateCursor()
+ }
+ } else {
+ QCursor *overrideCursor = QApplication::overrideCursor();
+- if (!overrideCursor || overrideCursor->shape() != Qt::ForbiddenCursor) {
++ if (restoreCursor && (!overrideCursor || overrideCursor->shape() != Qt::ForbiddenCursor)) {
+ QApplication::changeOverrideCursor(QCursor(Qt::ForbiddenCursor));
+- currentActionForOverrideCursor = Qt::IgnoreAction;
+ }
++ currentActionForOverrideCursor = Qt::IgnoreAction;
+ if (qt_qws_dnd_deco)
+ qt_qws_dnd_deco->hide();
+ }
+@@ -242,7 +242,6 @@ bool QDragManager::eventFilter(QObject *
+ willDrop = false;
+ global_accepted_action = Qt::IgnoreAction;
+ updateCursor();
+- restoreCursor = true;
+ object->d_func()->target = 0;
+ }
+ if (cw && cw->acceptDrops()) {
+@@ -253,7 +252,6 @@ bool QDragManager::eventFilter(QObject *
+ willDrop = dee.isAccepted() && dee.dropAction() != Qt::IgnoreAction;
+ global_accepted_action = willDrop ? dee.dropAction() : Qt::IgnoreAction;
+ updateCursor();
+- restoreCursor = true;
+ }
+ } else if (cw) {
+ QDragMoveEvent dme(cw->mapFromGlobal(me->globalPos()), possible_actions, dropData,
+@@ -277,8 +275,8 @@ bool QDragManager::eventFilter(QObject *
+ case QEvent::MouseButtonRelease:
+ {
+ qApp->removeEventFilter(this);
++ willDrop = false;
+ if (restoreCursor) {
+- willDrop = false;
+ #ifndef QT_NO_CURSOR
+ QApplication::restoreOverrideCursor();
+ #endif
+@@ -332,7 +330,6 @@ Qt::DropAction QDragManager::drag(QDrag
+ willDrop = false;
+ updatePixmap();
+ updateCursor();
+- restoreCursor = true;
+ object->d_func()->target = 0;
+ qApp->installEventFilter(this);
+
diff --git a/patches/qt-embedded-linux-opensource-src-4.5.3/hide-cursor-at-startup.diff b/patches/qt-everywhere-opensource-src-4.6.3/hide-cursor-at-startup.diff
index a9ef77b9f..a9ef77b9f 100644
--- a/patches/qt-embedded-linux-opensource-src-4.5.3/hide-cursor-at-startup.diff
+++ b/patches/qt-everywhere-opensource-src-4.6.3/hide-cursor-at-startup.diff
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/ptx-mkspec.diff b/patches/qt-everywhere-opensource-src-4.6.3/ptx-mkspec.diff
new file mode 100644
index 000000000..405729189
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/ptx-mkspec.diff
@@ -0,0 +1,52 @@
+Subject: mkspec for ptxdist
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+
+Add a mkspec for ptxdist:
+- qplatformdefs.h
+ Include the generic qplatformdefs.h
+- qmake.conf.in
+ Used to generate qmake.conf with the correct toolchain.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ mkspecs/qws/linux-ptx-g++/qmake.conf.in | 25 +++++++++++++++++++++++++
+ mkspecs/qws/linux-ptx-g++/qplatformdefs.h | 2 ++
+ 2 files changed, 27 insertions(+)
+
+Index: b/mkspecs/qws/linux-ptx-g++/qmake.conf.in
+===================================================================
+--- /dev/null
++++ b/mkspecs/qws/linux-ptx-g++/qmake.conf.in
+@@ -0,0 +1,25 @@
++#
++# qmake configuration for linux-ptx-g++
++#
++
++
++include(../../common/g++.conf)
++include(../../common/linux.conf)
++include(../../common/qws.conf)
++
++# modifications to g++.conf
++QMAKE_CC = @COMPILER_PREFIX@gcc
++QMAKE_CXX = @COMPILER_PREFIX@g++
++QMAKE_INCDIR = @INCDIR@
++QMAKE_LIBDIR = @LIBDIR@
++
++QMAKE_LINK = @COMPILER_PREFIX@g++
++QMAKE_LINK_SHLIB = @COMPILER_PREFIX@g++
++QMAKE_LFLAGS = @LDFLAGS@
++
++# modifications to linux.conf
++QMAKE_AR = @COMPILER_PREFIX@ar cqs
++QMAKE_OBJCOPY = @COMPILER_PREFIX@objcopy
++QMAKE_STRIP = @COMPILER_PREFIX@strip
++
++load(qt_config)
+Index: b/mkspecs/qws/linux-ptx-g++/qplatformdefs.h
+===================================================================
+--- /dev/null
++++ b/mkspecs/qws/linux-ptx-g++/qplatformdefs.h
+@@ -0,0 +1,2 @@
++
++#include "../../linux-g++/qplatformdefs.h"
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/remove-ordered.diff b/patches/qt-everywhere-opensource-src-4.6.3/remove-ordered.diff
new file mode 100644
index 000000000..81ec543a2
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/remove-ordered.diff
@@ -0,0 +1,52 @@
+Subject: disable ordered compiling.
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+
+By default all modules are compiled in a predefined order. This breaks when
+building not all modules. This patch disables ordered building. As a result
+qmake generates the correct dependancies.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ projects.pro | 1 -
+ src/src.pro | 6 ++++--
+ 2 files changed, 4 insertions(+), 3 deletions(-)
+
+Index: b/projects.pro
+===================================================================
+--- a/projects.pro
++++ b/projects.pro
+@@ -2,7 +2,6 @@
+ # Main projectfile
+ #####################################################################
+
+-CONFIG += ordered
+ TEMPLATE = subdirs
+
+ cross_compile: CONFIG += nostrip
+Index: b/src/src.pro
+===================================================================
+--- a/src/src.pro
++++ b/src/src.pro
+@@ -98,11 +98,12 @@ src_declarative.target = sub-declarative
+ src_qt3support.depends = src_gui src_xml src_network src_sql
+ src_tools_idc.depends = src_corelib # target defined in tools.pro
+ src_tools_uic3.depends = src_qt3support src_xml # target defined in tools.pro
+- src_phonon.depends = src_gui
++ src_phonon.depends = src_gui src_network
+ src_multimedia.depends = src_gui
+ src_tools_activeqt.depends = src_tools_idc src_gui
+ src_declarative.depends = src_xml src_gui src_script src_network src_svg
+- src_plugins.depends = src_gui src_sql src_svg
++ src_plugins.depends = src_gui src_sql
++ contains(QT_CONFIG, svg):src_plugins.depends += src_svg
+ contains(QT_CONFIG, webkit) {
+ src_webkit.depends = src_gui src_sql src_network src_xml
+ contains(QT_CONFIG, phonon):src_webkit.depends += src_phonon
+@@ -115,6 +116,7 @@ src_declarative.target = sub-declarative
+ src_phonon.depends += src_dbus
+ }
+ contains(QT_CONFIG, opengl)|contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2): src_plugins.depends += src_opengl
++ contains(QT_CONFIG, phonon):src_plugins.depends += src_phonon
+ }
+
+ !symbian {
diff --git a/patches/qt-everywhere-opensource-src-4.6.3/series b/patches/qt-everywhere-opensource-src-4.6.3/series
new file mode 100644
index 000000000..6a3c7a632
--- /dev/null
+++ b/patches/qt-everywhere-opensource-src-4.6.3/series
@@ -0,0 +1,6 @@
+ptx-mkspec.diff
+remove-ordered.diff
+hide-cursor-at-startup.diff
+fix-examples.diff
+fix-qws-dnd.diff
+fix-host-zlib.diff