summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuli Piippo <samuli.piippo@qt.io>2016-09-12 16:02:04 +0300
committerSamuli Piippo <samuli.piippo@qt.io>2016-09-12 16:32:08 +0300
commitd7ebb6ce9b49eb52c325e73d92157d874e9cf907 (patch)
tree1b0041afde4900752d8d589a8f9aa3c8484c3240
parentc82a99ecbeff88ff8a1f6eaa272a352e97992ab1 (diff)
parent4656ab3636c099906989e0d923e1ac7a8ffe7b31 (diff)
downloadmeta-qt5-d7ebb6ce9b49eb52c325e73d92157d874e9cf907.tar.gz
Merge remote-tracking branch 'meta-qt5/master' into 5.7
* meta-qt5/master: qt5-opengles2-test: Add recipe libqofono: import from meta-luneos layer libconnman-qt5: move to recipes-connectivity and don't use MeeGo as prefix qtdeclarative: add upstream patch to fix QtQml crash with GCC 6 qtvirtualkeyboard: add PACKAGECONFIG options qtbase: avoid QA warning if PACKAGECONFIG_RELEASE = "debug" qtbase: Fix build with QT_NO_OPENGL Change-Id: I5b1efc0de3fdf0d4fe98135c0cc08ddb3d03293b
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch50
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb (renamed from recipes-qt/libconnman-qt/libconnman-qt5_git.bb)4
-rw-r--r--recipes-connectivity/libqofono/libqofono_git.bb39
-rw-r--r--recipes-qt/examples/qt5-opengles2-test_git.bb19
-rw-r--r--recipes-qt/qt5/qtbase/0013-Fix-build-with-QT_NO_OPENGL.patch33
-rw-r--r--recipes-qt/qt5/qtbase_git.bb2
-rw-r--r--recipes-qt/qt5/qtdeclarative/0003-Workaround-crashes-in-QtQml-code-related-to-dead-sto.patch44
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bb1
-rw-r--r--recipes-qt/qt5/qtvirtualkeyboard_git.bb42
9 files changed, 232 insertions, 2 deletions
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
new file mode 100644
index 00000000..75943db0
--- /dev/null
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch
@@ -0,0 +1,50 @@
1From 46b6456bc8995b8d6249fb008a538222d30716cd Mon Sep 17 00:00:00 2001
2From: Christophe Chapuis <chris.chapuis@gmail.com>
3Date: Tue, 26 Jan 2016 18:56:42 +0100
4Subject: [PATCH] Don't use MeeGo as prefix in order to make this a common
5 component
6
7Signed-off-by: Christophe Chapuis <chris.chapuis@gmail.com>
8---
9 plugin/components.h | 2 +-
10 plugin/plugin.pro | 2 +-
11 plugin/qmldir | 2 +-
12 3 files changed, 3 insertions(+), 3 deletions(-)
13
14diff --git a/plugin/components.h b/plugin/components.h
15index d4f2bcd..49b7ac2 100644
16--- a/plugin/components.h
17+++ b/plugin/components.h
18@@ -17,7 +17,7 @@
19 class Components : public QQmlExtensionPlugin
20 {
21 Q_OBJECT
22- Q_PLUGIN_METADATA(IID "MeeGo.Connman")
23+ Q_PLUGIN_METADATA(IID "Connman")
24
25 public:
26 void registerTypes(const char *uri);
27diff --git a/plugin/plugin.pro b/plugin/plugin.pro
28index 31d9076..da47ad9 100644
29--- a/plugin/plugin.pro
30+++ b/plugin/plugin.pro
31@@ -17,7 +17,7 @@ LIBS += -l$$qtLibraryTarget(connman-$$TARGET_SUFFIX)
32 QT += qml
33 OTHER_FILES += plugin.json qmldirs
34
35-MODULENAME = MeeGo/Connman
36+MODULENAME = Connman
37 TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME
38
39 target.path = $$TARGETPATH
40diff --git a/plugin/qmldir b/plugin/qmldir
41index 5db82b7..de56688 100644
42--- a/plugin/qmldir
43+++ b/plugin/qmldir
44@@ -1,2 +1,2 @@
45-module MeeGo.Connman
46+module Connman
47 plugin ConnmanQtDeclarative
48--
491.8.1.2
50
diff --git a/recipes-qt/libconnman-qt/libconnman-qt5_git.bb b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
index fe86eb56..3ceb3558 100644
--- a/recipes-qt/libconnman-qt/libconnman-qt5_git.bb
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
@@ -8,7 +8,9 @@ DEPENDS += "qtbase qtdeclarative"
8PV = "1.0.98+git${SRCPV}" 8PV = "1.0.98+git${SRCPV}"
9 9
10SRCREV = "8d4580a55ca02b84fc3db374c6530e39c94e0d92" 10SRCREV = "8d4580a55ca02b84fc3db374c6530e39c94e0d92"
11SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https" 11SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https \
12 file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \
13"
12 14
13S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
14 16
diff --git a/recipes-connectivity/libqofono/libqofono_git.bb b/recipes-connectivity/libqofono/libqofono_git.bb
new file mode 100644
index 00000000..88df1351
--- /dev/null
+++ b/recipes-connectivity/libqofono/libqofono_git.bb
@@ -0,0 +1,39 @@
1DESCRIPTION = "Qt 5 bindings for the ofono dbus API"
2SECTION = "libs"
3LICENSE = "LGPLv2.1"
4LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
5
6DEPENDS += "qtbase qtdeclarative"
7
8SRCREV = "54435de3bed0b454ef4ea3ea32c7234fcd9f24c6"
9SRC_URI = "git://git.merproject.org/mer-core/libqofono.git"
10S = "${WORKDIR}/git"
11
12PV = "0.87+gitr${SRCPV}"
13
14inherit qmake5
15
16do_install_append() {
17 if ls ${D}${libdir}/pkgconfig/qofono-qt5.pc >/dev/null 2>/dev/null; then
18 sed -i "s@-L${STAGING_LIBDIR}@-L\${libdir}@g" ${D}${libdir}/pkgconfig/qofono-qt5.pc
19 fi
20}
21
22PACKAGES += "${PN}-tests"
23
24FILES_${PN}-dbg += " \
25 /lib/libqofono-qt5/tests/.debug \
26 ${libdir}/qt5/qml/MeeGo/QOfono/.debug \
27"
28FILES_${PN}-tests = " \
29 ${libdir}/libqofono-qt5/tests/tst_* \
30 /opt/tests/libqofono-qt5 \
31"
32FILES_${PN} += " \
33 ${libdir}/qt5/qml/MeeGo/QOfono/qmldir \
34 ${libdir}/qt5/qml/MeeGo/QOfono/libQOfonoQtDeclarative.so \
35"
36FILES_${PN}-dev += " \
37 ${datadir}/qt5/mkspecs \
38 ${libdir}/libqofono-qt5.prl \
39"
diff --git a/recipes-qt/examples/qt5-opengles2-test_git.bb b/recipes-qt/examples/qt5-opengles2-test_git.bb
new file mode 100644
index 00000000..5da25dc9
--- /dev/null
+++ b/recipes-qt/examples/qt5-opengles2-test_git.bb
@@ -0,0 +1,19 @@
1SUMMARY = "Qt5 OpenGL ES 2.0 Test Application"
2DESCRIPTION = "This application is used to test OpenGL ES 2.0 rendering \
3in a simple QWindow, plus multi-touch input, window orientation, window \
4focus handling and some other game-related features."
5LICENSE = "MIT"
6LIC_FILES_CHKSUM = "file://${WORKDIR}/git/main.cpp;beginline=1;endline=26;md5=93b83ece006c9e76b9fca80c3aecb169"
7
8PV = "1.0.4+gitr${SRCPV}"
9
10DEPENDS = "qtbase qtsensors"
11
12# Depends on gles2 enabled and that's not default configuration
13EXCLUDE_FROM_WORLD = "1"
14
15SRC_URI = "git://github.com/smk-embedded/qt5-opengles2-test.git"
16SRCREV = "938390507054ed1258345f70ed55770d2fe56176"
17S = "${WORKDIR}/git"
18
19inherit qmake5
diff --git a/recipes-qt/qt5/qtbase/0013-Fix-build-with-QT_NO_OPENGL.patch b/recipes-qt/qt5/qtbase/0013-Fix-build-with-QT_NO_OPENGL.patch
new file mode 100644
index 00000000..7b681dce
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0013-Fix-build-with-QT_NO_OPENGL.patch
@@ -0,0 +1,33 @@
1From 2e176e3d10535e4fdaa6ecc919538f66f4a2930d Mon Sep 17 00:00:00 2001
2From: Andy Nichols <andy.nichols@qt.io>
3Date: Mon, 11 Jul 2016 09:18:33 +0200
4Subject: QWidgetBackingStore: Fix build with QT_NO_OPENGL
5
6A define moved out of the #ifndef QT_NO_OPENGL scope.
7
8Change-Id: I41c943b97f165b5171581e01f3a4b2d3fb25747e
9Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
10
11Upstream-Status: Backport
12Signed-off-by: Johannes Pointner <johannes.pointner@br-automation.com>
13---
14 src/widgets/kernel/qwidgetbackingstore.cpp | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/src/widgets/kernel/qwidgetbackingstore.cpp b/src/widgets/kernel/qwidgetbackingstore.cpp
18index 32aabce..242e625 100644
19--- a/src/widgets/kernel/qwidgetbackingstore.cpp
20+++ b/src/widgets/kernel/qwidgetbackingstore.cpp
21@@ -67,7 +67,9 @@ QT_BEGIN_NAMESPACE
22
23 extern QRegion qt_dirtyRegion(QWidget *);
24
25+#ifndef QT_NO_OPENGL
26 Q_GLOBAL_STATIC(QPlatformTextureList, qt_dummy_platformTextureList)
27+#endif
28
29 /**
30 * Flushes the contents of the \a backingStore into the screen area of \a widget.
31--
32cgit v1.0-4-g1e03
33
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index c907b93c..a6a18948 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -26,6 +26,7 @@ SRC_URI += "\
26 file://0008-configure-paths-for-target-qmake-properly.patch \ 26 file://0008-configure-paths-for-target-qmake-properly.patch \
27 file://0009-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch \ 27 file://0009-Reorder-EGL-libraries-from-pkgconfig-and-defaults.patch \
28 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ 28 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
29 file://0013-Fix-build-with-QT_NO_OPENGL.patch \
29" 30"
30 31
31DEPENDS += "qtbase-native" 32DEPENDS += "qtbase-native"
@@ -67,6 +68,7 @@ PACKAGECONFIG ?= " \
67" 68"
68 69
69PACKAGECONFIG[release] = "-release,-debug" 70PACKAGECONFIG[release] = "-release,-debug"
71PACKAGECONFIG[debug] = ""
70PACKAGECONFIG[developer] = "-developer-build" 72PACKAGECONFIG[developer] = "-developer-build"
71PACKAGECONFIG[sm] = "-sm,-no-sm" 73PACKAGECONFIG[sm] = "-sm,-no-sm"
72PACKAGECONFIG[tests] = "-make tests,-nomake tests" 74PACKAGECONFIG[tests] = "-make tests,-nomake tests"
diff --git a/recipes-qt/qt5/qtdeclarative/0003-Workaround-crashes-in-QtQml-code-related-to-dead-sto.patch b/recipes-qt/qt5/qtdeclarative/0003-Workaround-crashes-in-QtQml-code-related-to-dead-sto.patch
new file mode 100644
index 00000000..d3ee42ef
--- /dev/null
+++ b/recipes-qt/qt5/qtdeclarative/0003-Workaround-crashes-in-QtQml-code-related-to-dead-sto.patch
@@ -0,0 +1,44 @@
1From fcc2c95421710f98c7b2dec73e2c8b0d9164bc9b Mon Sep 17 00:00:00 2001
2From: Jonathan Liu <net147@gmail.com>
3Date: Wed, 24 Aug 2016 11:18:37 +1000
4Subject: [PATCH] Workaround crashes in QtQml code related to dead-store
5 elimination
6
7When compiled in release mode with GCC 6, QtQml may crash.
8This is because the C++ compiler is more aggressive about dead-store
9elimination in situations where a memory store to a location precedes
10the construction of an object at that memory location.
11
12The QV4::MemoryManager::allocate{Managed,Object} functions allocate
13memory and write to it before the caller does a placement new to
14construct an object in the same memory. The compiler considers these
15writes before the constructor as "dead stores" and eliminates them.
16
17The -fno-lifetime-dse compiler flag is added to disable this more
18aggressive dead-store eliminiation optimization.
19
20This is a temporary workaround until a proper solution is found.
21
22Upstream-Status: Accepted
23
24Task-number: QTBUG-55482
25Change-Id: I7dbae6e9e613e53ce5fb25957c449bc6657803b5
26Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
27Signed-off-by: Jonathan Liu <net147@gmail.com>
28---
29 src/qml/qml.pro | 2 +-
30 1 file changed, 1 insertion(+), 1 deletion(-)
31
32diff --git a/src/qml/qml.pro b/src/qml/qml.pro
33index f4862a1..651afa6 100644
34--- a/src/qml/qml.pro
35+++ b/src/qml/qml.pro
36@@ -18,7 +18,7 @@ exists("qqml_enable_gcov") {
37
38 greaterThan(QT_GCC_MAJOR_VERSION, 5) {
39 # Our code is bad. Temporary workaround.
40- QMAKE_CXXFLAGS += -fno-delete-null-pointer-checks
41+ QMAKE_CXXFLAGS += -fno-delete-null-pointer-checks -fno-lifetime-dse
42 }
43
44 QMAKE_DOCS = $$PWD/doc/qtqml.qdocconf
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb
index 6d268cac..6bab3725 100644
--- a/recipes-qt/qt5/qtdeclarative_git.bb
+++ b/recipes-qt/qt5/qtdeclarative_git.bb
@@ -19,6 +19,7 @@ DEPENDS += "qtbase"
19SRC_URI += " \ 19SRC_URI += " \
20 file://0001-qmltestexample-fix-link.patch \ 20 file://0001-qmltestexample-fix-link.patch \
21 file://0002-qquickviewcomparison-fix-QCoreApplication-has-not-be.patch \ 21 file://0002-qquickviewcomparison-fix-QCoreApplication-has-not-be.patch \
22 file://0003-Workaround-crashes-in-QtQml-code-related-to-dead-sto.patch \
22" 23"
23 24
24EXTRA_OEMAKE += "QMAKE_SYNCQT=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/syncqt" 25EXTRA_OEMAKE += "QMAKE_SYNCQT=${STAGING_BINDIR_NATIVE}${QT_DIR_NAME}/syncqt"
diff --git a/recipes-qt/qt5/qtvirtualkeyboard_git.bb b/recipes-qt/qt5/qtvirtualkeyboard_git.bb
index ff478f3f..7e2f445e 100644
--- a/recipes-qt/qt5/qtvirtualkeyboard_git.bb
+++ b/recipes-qt/qt5/qtvirtualkeyboard_git.bb
@@ -1,11 +1,51 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "GPL-3.0" 4LICENSE = "GPL-3.0 | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 6 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
7" 7"
8 8
9# To enabled Nuance T9 Write support, you need to provide the licensed components
10# and enable "t9write" in PACKAGECONFIG. This can be done in a separate .bbappend file.
11# for example:
12#T9WRITEPACKAGE = "${HOME}/Downloads/zzEval_QT_T9Write_Alpha_v750_20150916.zip"
13#SRC_URI += "file://${T9WRITEPACKAGE};subdir=git/src/virtualkeyboard/3rdparty/t9write"
14#PACKAGECONFIG = "t9write lang-all"
15
16PACKAGECONFIG ?= "lang-all lipi-toolkit"
17PACKAGECONFIG[hunspell] = ",CONFIG+=disable-hunspell,hunspell"
18PACKAGECONFIG[t9write] = "CONFIG+=t9write"
19PACKAGECONFIG[lipi-toolkit] = "CONFIG+=lipi-toolkit"
20PACKAGECONFIG[lang-all] = "CONFIG+=lang-all"
21PACKAGECONFIG[lang-ar_AR] = "CONFIG+=lang-ar_AR"
22PACKAGECONFIG[lang-da_DK] = "CONFIG+=lang-da_DK"
23PACKAGECONFIG[lang-de_DE] = "CONFIG+=lang-de_DE"
24PACKAGECONFIG[lang-en_GB] = "CONFIG+=lang-en_GB"
25PACKAGECONFIG[lang-es_ES] = "CONFIG+=lang-es_ES"
26PACKAGECONFIG[lang-fa_FA] = "CONFIG+=lang-fa_FA"
27PACKAGECONFIG[lang-fi_FI] = "CONFIG+=lang-fi_FI"
28PACKAGECONFIG[lang-fr_FR] = "CONFIG+=lang-fr_FR"
29PACKAGECONFIG[lang-hi_IN] = "CONFIG+=lang-hi_IN"
30PACKAGECONFIG[lang-it_IT] = "CONFIG+=lang-it_IT"
31PACKAGECONFIG[lang-ja_JP] = "CONFIG+=lang-ja_JP"
32PACKAGECONFIG[lang-ko_KR] = "CONFIG+=lang-ko_KR"
33PACKAGECONFIG[lang-nb_NO] = "CONFIG+=lang-nb_NO"
34PACKAGECONFIG[lang-pl_PL] = "CONFIG+=lang-pl_PL"
35PACKAGECONFIG[lang-pt_PT] = "CONFIG+=lang-pt_PT"
36PACKAGECONFIG[lang-ru_RU] = "CONFIG+=lang-ru_RU"
37PACKAGECONFIG[lang-sv_SE] = "CONFIG+=lang-sv_SE"
38PACKAGECONFIG[lang-zh_CN] = "CONFIG+=lang-zh_CN"
39PACKAGECONFIG[lang-zh_TW] = "CONFIG+=lang-zh_TW"
40
41EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}"
42EXTRA_QMAKEVARS_PRE += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', '', 'CONFIG+=disable-desktop', d)}"
43
44PACKAGES += "${PN}-dictionaries"
45RRECOMMENDS_${PN} += "${PN}-dictionaries"
46FILES_${PN}-dictionaries = "${OE_QMAKE_PATH_DATA}/qtvirtualkeyboard/*/*.dat"
47FILES_${PN} += "${OE_QMAKE_PATH_DATA}/qtvirtualkeyboard/lipi_toolkit"
48
9DEPENDS += "qtbase qtdeclarative qtmultimedia qtquickcontrols qtsvg qtxmlpatterns" 49DEPENDS += "qtbase qtdeclarative qtmultimedia qtquickcontrols qtsvg qtxmlpatterns"
10 50
11SRCREV = "626e78c9660cff063e1f9370538b5a424631571c" 51SRCREV = "626e78c9660cff063e1f9370538b5a424631571c"