diff options
author | Martin Jansa <Martin.Jansa@gmail.com> | 2012-09-26 20:06:25 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-02 17:19:27 +0100 |
commit | ee14710dbf1c4383ca20851529684f164883cc80 (patch) | |
tree | 0416d475b383deef152811659b24bcfa7c40e4da /meta/recipes-qt/qt4/qt-mobility-1.2.0 | |
parent | d4ad1b760d0112d0b0823c59da21cc50f6efdda6 (diff) | |
download | poky-ee14710dbf1c4383ca20851529684f164883cc80.tar.gz |
qt-mobility: move qt-mobility patches to separate dir
(From OE-Core rev: 8dccc55a623f0c5f3469c7cdf63aa788683aa186)
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-qt/qt4/qt-mobility-1.2.0')
5 files changed, 165 insertions, 0 deletions
diff --git a/meta/recipes-qt/qt4/qt-mobility-1.2.0/0001-gstvideoconnector-fixed-buffers-allocation.patch b/meta/recipes-qt/qt4/qt-mobility-1.2.0/0001-gstvideoconnector-fixed-buffers-allocation.patch new file mode 100644 index 0000000000..2df76fc778 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-1.2.0/0001-gstvideoconnector-fixed-buffers-allocation.patch | |||
@@ -0,0 +1,34 @@ | |||
1 | Upstream-Status: Submitted [QTMOBILITY-1611] | ||
2 | |||
3 | From b308508b49afa9a129b4e4589c57cd107d1320b8 Mon Sep 17 00:00:00 2001 | ||
4 | From: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com> | ||
5 | Date: Fri, 6 May 2011 10:35:11 +1000 | ||
6 | Subject: [PATCH] gstvideoconnector: fixed buffers allocation | ||
7 | |||
8 | It should not be necessary, but at least theora video decoder doesn't | ||
9 | iniatilize *buf, while gst_pad_alloc_buffer relies on buf being NULL. | ||
10 | |||
11 | Task-number: QTMOBILITY-1611 | ||
12 | Reviewed-by: Michael Goddard | ||
13 | --- | ||
14 | plugins/multimedia/gstreamer/gstvideoconnector.c | 4 ++++ | ||
15 | 1 files changed, 4 insertions(+), 0 deletions(-) | ||
16 | |||
17 | diff --git a/plugins/multimedia/gstreamer/gstvideoconnector.c b/plugins/multimedia/gstreamer/gstvideoconnector.c | ||
18 | index ddf68e0..9f8ceae 100644 | ||
19 | --- a/plugins/multimedia/gstreamer/gstvideoconnector.c | ||
20 | +++ b/plugins/multimedia/gstreamer/gstvideoconnector.c | ||
21 | @@ -186,6 +186,10 @@ gst_video_connector_buffer_alloc (GstPad * pad, guint64 offset, guint size, | ||
22 | GstFlowReturn res = GST_FLOW_OK; | ||
23 | element = GST_VIDEO_CONNECTOR (GST_PAD_PARENT (pad)); | ||
24 | |||
25 | + if (!buf) | ||
26 | + return GST_FLOW_ERROR; | ||
27 | + *buf = NULL; | ||
28 | + | ||
29 | GST_OBJECT_LOCK (element); | ||
30 | gst_object_ref(element->srcpad); | ||
31 | GST_OBJECT_UNLOCK (element); | ||
32 | -- | ||
33 | 1.7.4.1 | ||
34 | |||
diff --git a/meta/recipes-qt/qt4/qt-mobility-1.2.0/0002-Remove-unnecessary-rpaths-from-qml_device-example.patch b/meta/recipes-qt/qt4/qt-mobility-1.2.0/0002-Remove-unnecessary-rpaths-from-qml_device-example.patch new file mode 100644 index 0000000000..a411640b73 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-1.2.0/0002-Remove-unnecessary-rpaths-from-qml_device-example.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From 92e0c611f4969c716616d64df64831387e5b1632 Mon Sep 17 00:00:00 2001 | ||
2 | From: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
3 | Date: Fri, 16 Mar 2012 10:24:00 +0000 | ||
4 | Subject: [PATCH] Remove unnecessary rpaths from qml_device example | ||
5 | |||
6 | These can't be valid in any case. | ||
7 | |||
8 | Upstream-Status: Pending | ||
9 | |||
10 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
11 | --- | ||
12 | examples/declarative-systeminfo/device/device.pro | 3 --- | ||
13 | 1 files changed, 0 insertions(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/examples/declarative-systeminfo/device/device.pro b/examples/declarative-systeminfo/device/device.pro | ||
16 | index 698e5fb..05be9b7 100644 | ||
17 | --- a/examples/declarative-systeminfo/device/device.pro | ||
18 | +++ b/examples/declarative-systeminfo/device/device.pro | ||
19 | @@ -17,6 +17,3 @@ symbian { | ||
20 | } | ||
21 | RESOURCES += device.qrc | ||
22 | |||
23 | -QMAKE_LFLAGS_DEBUG += "-Wl,-rpath,/home/user/qt/lib" | ||
24 | -QMAKE_LFLAGS_RPATH += "-Wl,-rpath,/home/user/qt/lib" | ||
25 | -QMAKE_LFLAGS_RELEASE += "-Wl,-rpath,/home/user/qt/lib" | ||
26 | -- | ||
27 | 1.7.5.4 | ||
28 | |||
diff --git a/meta/recipes-qt/qt4/qt-mobility-1.2.0/gcc-scope.patch b/meta/recipes-qt/qt4/qt-mobility-1.2.0/gcc-scope.patch new file mode 100644 index 0000000000..f01ee9f4df --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-1.2.0/gcc-scope.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | |||
2 | Fixes issues like below | ||
3 | |||
4 | | qaudiooutput_pulse.cpp: In member function 'bool QPulseAudioOutput::open()': | ||
5 | | qaudiooutput_pulse.cpp:255:75: error: '::getpid' has not been declared | ||
6 | | make[3]: *** [../../../build/Debug/qtmedia_pulse/qaudiooutput_pulse.o] Error 1 | ||
7 | |||
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
9 | |||
10 | Upstream-Status: Pending | ||
11 | |||
12 | Index: qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp | ||
13 | =================================================================== | ||
14 | --- qt-mobility-opensource-src-1.2.0.orig/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp 2012-03-31 07:26:24.457018348 -0700 | ||
15 | +++ qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qaudiooutput_pulse.cpp 2012-03-31 07:27:53.309022654 -0700 | ||
16 | @@ -46,7 +46,7 @@ | ||
17 | #include "qaudiodeviceinfo_pulse.h" | ||
18 | #include "qpulseaudioengine.h" | ||
19 | #include "qpulsehelpers.h" | ||
20 | - | ||
21 | +#include <unistd.h> | ||
22 | QT_BEGIN_NAMESPACE | ||
23 | |||
24 | const int PeriodTimeMs = 20; | ||
25 | Index: qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp | ||
26 | =================================================================== | ||
27 | --- qt-mobility-opensource-src-1.2.0.orig/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp 2012-03-31 07:29:19.997026831 -0700 | ||
28 | +++ qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qaudioinput_pulse.cpp 2012-03-31 07:29:39.541027625 -0700 | ||
29 | @@ -46,6 +46,7 @@ | ||
30 | #include "qaudiodeviceinfo_pulse.h" | ||
31 | #include "qpulseaudioengine.h" | ||
32 | #include "qpulsehelpers.h" | ||
33 | +#include <unistd.h> | ||
34 | |||
35 | QT_BEGIN_NAMESPACE | ||
36 | |||
37 | Index: qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp | ||
38 | =================================================================== | ||
39 | --- qt-mobility-opensource-src-1.2.0.orig/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp 2012-03-31 07:33:24.805038719 -0700 | ||
40 | +++ qt-mobility-opensource-src-1.2.0/plugins/multimedia/pulseaudio/qpulseaudioengine.cpp 2012-03-31 07:33:46.889039783 -0700 | ||
41 | @@ -46,6 +46,7 @@ | ||
42 | #include "qaudiodeviceinfo_pulse.h" | ||
43 | #include "qaudiooutput_pulse.h" | ||
44 | #include "qpulsehelpers.h" | ||
45 | +#include <unistd.h> | ||
46 | |||
47 | QT_BEGIN_NAMESPACE | ||
48 | |||
diff --git a/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-configure.patch b/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-configure.patch new file mode 100644 index 0000000000..d61ec03341 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-configure.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | When building qt-mobility, the qa_configure stage failed because the catalogue /usr/lib | ||
2 | is used in some Makefiles within configure tests. We manually removed this catalogue. | ||
3 | |||
4 | Upstream-Status: Inappropriate [embedded] | ||
5 | Signed-off-by: Dmitry Cherukhin <dima_ch@emcraft.com> | ||
6 | |||
7 | --- qt-mobility-opensource-src-1.2.0/configure.orig 2011-05-10 10:06:01.000000000 +0200 | ||
8 | +++ qt-mobility-opensource-src-1.2.0/configure 2011-11-08 12:34:56.347645968 +0100 | ||
9 | @@ -583,6 +583,8 @@ | ||
10 | fi | ||
11 | |||
12 | $QMAKE_EXEC $QMKSPEC "$relpath/config.tests/$2/$2.pro" 2>> "$CONFIG_LOG" >> "$CONFIG_LOG" | ||
13 | + cp Makefile Makefile.old | ||
14 | + sed -e 's@-L/usr/lib@@' <Makefile.old >Makefile | ||
15 | printf " ." | ||
16 | "$MAKE" clean >> "$CONFIG_LOG" | ||
17 | printf "." | ||
diff --git a/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-no-opengl.patch b/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-no-opengl.patch new file mode 100644 index 0000000000..1724995072 --- /dev/null +++ b/meta/recipes-qt/qt4/qt-mobility-1.2.0/qt-mobility-no-opengl.patch | |||
@@ -0,0 +1,38 @@ | |||
1 | Upstream-Status: Inappropriate [configuration] | ||
2 | |||
3 | diff --git a/examples/declarative-camera/declarative-camera.pro b/examples/declarative-camera/declarative-camera.pro | ||
4 | index 8164fbc..54fd8ad 100644 | ||
5 | --- a/examples/declarative-camera/declarative-camera.pro | ||
6 | +++ b/examples/declarative-camera/declarative-camera.pro | ||
7 | @@ -5,10 +5,10 @@ TEMPLATE=app | ||
8 | |||
9 | QT += declarative network | ||
10 | |||
11 | -!maemo5 { | ||
12 | - contains(QT_CONFIG, opengl) { | ||
13 | - QT += opengl | ||
14 | - } | ||
15 | +contains(QT_CONFIG, opengl): !maemo5 { | ||
16 | + QT += opengl | ||
17 | +} else { | ||
18 | + DEFINES += QT_NO_OPENGL | ||
19 | } | ||
20 | |||
21 | win32 { | ||
22 | diff --git a/examples/videographicsitem/videographicsitem.pro b/examples/videographicsitem/videographicsitem.pro | ||
23 | index 8461beb..eedee2f 100644 | ||
24 | --- a/examples/videographicsitem/videographicsitem.pro | ||
25 | +++ b/examples/videographicsitem/videographicsitem.pro | ||
26 | @@ -9,7 +9,11 @@ MOBILITY = multimedia | ||
27 | |||
28 | QMAKE_RPATHDIR += $$DESTDIR | ||
29 | |||
30 | -!symbian:contains(QT_CONFIG, opengl): QT += opengl | ||
31 | +contains(QT_CONFIG, opengl): !symbian { | ||
32 | + QT += opengl | ||
33 | +} else { | ||
34 | + DEFINES += QT_NO_OPENGL | ||
35 | +} | ||
36 | |||
37 | HEADERS += videoplayer.h \ | ||
38 | videoitem.h | ||