summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2017-10-18 11:06:26 +0300
committerMikko Gronoff <mikko.gronoff@qt.io>2017-10-31 13:41:46 +0200
commit2401cc3106e6f6e1d9c2a3016110cfa914a13dab (patch)
tree91ff16b8128511bfe449f54977c4fb3f3511647d
parentf3213460a0495cac618d37bcbe59fddd58b6d65d (diff)
parente0db5666f9c04c92683514ca220b0aafd0a49df2 (diff)
downloadmeta-qt5-2401cc3106e6f6e1d9c2a3016110cfa914a13dab.tar.gz
Merge remote-tracking branch 'qtyocto/5.9' into 5.10
* qtyocto/5.9: qt5: update version to 5.9.3 qt5: remove use of OE_QMAKE_WAYLAND_SCANNER qtquickcontrols: remove duplicate FILES append qtdeclarative: remove upstreamed patch qt5: update qtx11extras revision for 5.9.2 qt5: update submodules qt5: update submodules Merge remote-tracking branch 'qtyocto/upstream/master' into 5.9 qt5: add missing commercial license Fix compiling for qtenginio and qtquick1 Use correct HostPrefix qt5: update submodules qtwebview: remove obsolete patch qt5: update submodules qtwebengine: add patch for long paths qtwebengine: update 0004-Force-host-toolchain-configuration.patch qtwebengine: fix build with glibc-2.26 qt: upgrade to latest revision in 5.9 branch qt: refresh remaining patches and add links to meta-qt5 repos qtwebengine: add a fix for building demobrowser without printing support Upgrade to Qt 5.9.0 qtbase, qtgraphicaleffect, qtmultimedia, qtscript, qtlocation, qtwayland: disable gold to work around binutils bug qtwebengine: disable SECURITY_STRINGFORMAT to fix the build meta-toolchain-qt5: don't rely on COREBASE/LICENSE qtbase: fix Krogoth build regression from efa8aaf qt3d: refresh patches qtwebengine: refresh patches qtbase: refresh the patches qtwebengine: update to 5.9.2 qt5: bump version number to 5.9.2 qtbase: fix Krogoth build regression from efa8aaf gstreamer1.0-plugins-bad: add qt5 packageconfig qtbase: remove qtbase-native from DEPENDS qt3d: Fix build with clang qtwebkit: Backport a patch to fix build with icu-59 quazip: update to 0.7.3 and add missing metadata qtbase: Use sched_yield instead of pthread_yield qtbase: Fix ptests with clang qt5-ptest: fix build with yocto < 2.3 (pyro) qtbase: add ptest qwt-qt5.inc: fix QA warning qt5-git.inc: set CVE_PRODUCT to qt python-pyqt5: include QtWidgets module qt5-creator: Link with libexecinfo on musl qtvirtualkeyboard: Include sys/time.h qtwebengine: Fix build on musl qt5-creator: Fix build with NO_ACCESSIBILITY maliit-framework-qt5: Always have optimize flags qtbase-native: Fix qdbuscpp2xml segfault qt5-ptest.inc: append do_populate_sysroot only for target qtwebengine: fix build with gcc7 qwt-qt5: Fix rpath issues qtquickcontrols2: fix compilation of examples/texteditor qtquick1: add ptest qtdeclarative: add ptest qtxmlpatterns: add ptest qt5: add qt5-ptest.inc qtwebengine: add PACKAGECONFIG for webrtc libconnman-qt5: update to 1.1.10 Revert "qttools: DEPENDS on icu" qttools: DEPENDS on icu qtbase: respect "ld-is-gold" DISTRO_FEATURES Change-Id: I9dfcab3c94b62b22b68e66e8b13bdf4c570aada1
-rw-r--r--classes/qmake5_base.bbclass4
-rw-r--r--recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb4
-rw-r--r--recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend15
-rw-r--r--recipes-python/pyqt5/files/0001-qtabbar.sip-fix-build-with-accessibility-disabled.patch35
-rw-r--r--recipes-python/pyqt5/python-pyqt5_5.8.2.bb5
-rw-r--r--recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch34
-rw-r--r--recipes-qt/maliit/maliit-framework-qt5_git.bb8
-rw-r--r--recipes-qt/meta/meta-toolchain-qt5.bb3
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb18
-rw-r--r--recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch8
-rw-r--r--recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch44
-rw-r--r--recipes-qt/qt5/qt3d_git.bb5
-rw-r--r--recipes-qt/qt5/qt5-creator/0001-Fix-compilation-with-QT_NO_ACCESSIBILITY.patch38
-rw-r--r--recipes-qt/qt5/qt5-creator/0001-Qmlpuppet-add-missing-includes.patch41
-rw-r--r--recipes-qt/qt5/qt5-creator/musl-backtrace.patch18
-rw-r--r--recipes-qt/qt5/qt5-creator_3.5.1.bb8
-rw-r--r--recipes-qt/qt5/qt5-git.inc4
-rw-r--r--recipes-qt/qt5/qt5-ptest.inc62
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bb19
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch25
-rw-r--r--recipes-qt/qt5/qtbase/0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch8
-rw-r--r--recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch (renamed from recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch)8
-rw-r--r--recipes-qt/qt5/qtbase/0004-configure-bump-path-length-from-256-to-512-character.patch (renamed from recipes-qt/qt5/qtbase/0005-configure-bump-path-length-from-256-to-512-character.patch)6
-rw-r--r--recipes-qt/qt5/qtbase/0005-Disable-all-unknown-features-instead-of-erroring-out.patch (renamed from recipes-qt/qt5/qtbase/0009-Disable-all-unknown-features-instead-of-erroring-out.patch)9
-rw-r--r--recipes-qt/qt5/qtbase/0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch (renamed from recipes-qt/qt5/qtbase/0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch)6
-rw-r--r--recipes-qt/qt5/qtbase/0007-Delete-qlonglong-and-qulonglong.patch25
-rw-r--r--recipes-qt/qt5/qtbase/0008-Replace-pthread_yield-with-sched_yield.patch60
-rw-r--r--recipes-qt/qt5/qtbase/0009-Always-build-uic.patch (renamed from recipes-qt/qt5/qtbase/0011-Always-build-uic.patch)0
-rw-r--r--recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch72
-rw-r--r--recipes-qt/qt5/qtbase/run-ptest6
-rw-r--r--recipes-qt/qt5/qtbase_git.bb59
-rw-r--r--recipes-qt/qt5/qtcanvas3d_git.bb2
-rw-r--r--recipes-qt/qt5/qtcharts_git.bb2
-rw-r--r--recipes-qt/qt5/qtdatavis3d_git.bb2
-rw-r--r--recipes-qt/qt5/qtdeclarative/run-ptest5
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bb1
-rw-r--r--recipes-qt/qt5/qtenginio_git.bb1
-rw-r--r--recipes-qt/qt5/qtgraphicaleffects_git.bb8
-rw-r--r--recipes-qt/qt5/qtlocation_git.bb8
-rw-r--r--recipes-qt/qt5/qtmultimedia_git.bb6
-rw-r--r--recipes-qt/qt5/qtquick1/run-ptest6
-rw-r--r--recipes-qt/qt5/qtquick1_git.bb5
-rw-r--r--recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch4
-rw-r--r--recipes-qt/qt5/qtquickcontrols2_git.bb2
-rw-r--r--recipes-qt/qt5/qtquickcontrols_git.bb2
-rw-r--r--recipes-qt/qt5/qtremoteobjects_git.bb2
-rw-r--r--recipes-qt/qt5/qtscript_git.bb4
-rw-r--r--recipes-qt/qt5/qtscxml/0001-Use-external-host-bin-path-for-cmake-file.patch4
-rw-r--r--recipes-qt/qt5/qtscxml_git.bb2
-rw-r--r--recipes-qt/qt5/qtsensors_git.bb4
-rw-r--r--recipes-qt/qt5/qtserialbus_git.bb2
-rw-r--r--recipes-qt/qt5/qtserialport_git.bb2
-rw-r--r--recipes-qt/qt5/qtsystems_git.bb2
-rw-r--r--recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch (renamed from recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch)6
-rw-r--r--recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch (renamed from recipes-qt/qt5/qttools/0004-linguist-tools-cmake-allow-overriding-the-location-f.patch)4
-rw-r--r--recipes-qt/qt5/qttools_git.bb5
-rw-r--r--recipes-qt/qt5/qtvirtualkeyboard/0001-include-sys-time.h-for-timeval.patch25
-rw-r--r--recipes-qt/qt5/qtvirtualkeyboard_git.bb4
-rw-r--r--recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch17
-rw-r--r--recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch35
-rw-r--r--recipes-qt/qt5/qtwayland_git.bb7
-rw-r--r--recipes-qt/qt5/qtwebchannel_git.bb4
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch41
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch (renamed from recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch)20
-rw-r--r--recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch30
-rw-r--r--recipes-qt/qt5/qtwebengine/0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch23
-rw-r--r--recipes-qt/qt5/qtwebengine/0002-chromium-Force-host-toolchain-configuration.patch40
-rw-r--r--recipes-qt/qt5/qtwebengine/0003-Include-dependency-to-QCoreApplication-translate.patch23
-rw-r--r--recipes-qt/qt5/qtwebengine/0003-chromium-workaround-for-too-long-.rps-file-name.patch (renamed from recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch)12
-rw-r--r--recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch (renamed from recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch)32
-rw-r--r--recipes-qt/qt5/qtwebengine/0004-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch33
-rw-r--r--recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch45
-rw-r--r--recipes-qt/qt5/qtwebengine/0006-chromium-musl-include-fcntl.h-for-loff_t.patch22
-rw-r--r--recipes-qt/qt5/qtwebengine/0007-chromium-musl-use-off64_t-instead-of-the-internal-__.patch62
-rw-r--r--recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch23
-rw-r--r--recipes-qt/qt5/qtwebengine/0009-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch24
-rw-r--r--recipes-qt/qt5/qtwebengine/0010-chromium-musl-Use-correct-member-name-__si_fields-fr.patch24
-rw-r--r--recipes-qt/qt5/qtwebengine/0011-chromium-musl-Match-syscalls-to-match-musl.patch44
-rw-r--r--recipes-qt/qt5/qtwebengine/0012-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch79
-rw-r--r--recipes-qt/qt5/qtwebengine/0013-chromium-musl-Do-not-define-__sbrk-on-musl.patch26
-rw-r--r--recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch47
-rw-r--r--recipes-qt/qt5/qtwebengine/0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch22
-rw-r--r--recipes-qt/qt5/qtwebengine/0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch23
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb60
-rw-r--r--recipes-qt/qt5/qtwebkit/0001-qtwebkit-fix-QA-issue-bad-RPATH.patch4
-rw-r--r--recipes-qt/qt5/qtwebkit/0002-Exclude-backtrace-API-for-non-glibc-libraries.patch (renamed from recipes-qt/qt5/qtwebkit/0003-Exclude-backtrace-API-for-non-glibc-libraries.patch)4
-rw-r--r--recipes-qt/qt5/qtwebkit_git.bb4
-rw-r--r--recipes-qt/qt5/qtwebsockets_git.bb4
-rw-r--r--recipes-qt/qt5/qtwebview_git.bb8
-rw-r--r--recipes-qt/qt5/qtxmlpatterns/run-ptest6
-rw-r--r--recipes-qt/qt5/qtxmlpatterns_git.bb2
-rw-r--r--recipes-qt/quazip/quazip_0.7.2.bb13
-rw-r--r--recipes-qt/quazip/quazip_0.7.3.bb15
-rw-r--r--recipes-qt/qwt/qwt-qt5.inc5
-rw-r--r--recipes-qt/qwt/qwt-qt5/remove_rpath.patch17
95 files changed, 1385 insertions, 292 deletions
diff --git a/classes/qmake5_base.bbclass b/classes/qmake5_base.bbclass
index a556f4f9..538c9489 100644
--- a/classes/qmake5_base.bbclass
+++ b/classes/qmake5_base.bbclass
@@ -26,7 +26,6 @@ EXTRA_OEMAKE = " \
26 OE_QMAKE_LDFLAGS='${OE_QMAKE_LDFLAGS}' \ 26 OE_QMAKE_LDFLAGS='${OE_QMAKE_LDFLAGS}' \
27 OE_QMAKE_AR='${OE_QMAKE_AR}' \ 27 OE_QMAKE_AR='${OE_QMAKE_AR}' \
28 OE_QMAKE_STRIP='${OE_QMAKE_STRIP}' \ 28 OE_QMAKE_STRIP='${OE_QMAKE_STRIP}' \
29 OE_QMAKE_WAYLAND_SCANNER='${OE_QMAKE_WAYLAND_SCANNER}' \
30 OE_QMAKE_INCDIR_QT='${STAGING_DIR_TARGET}/${OE_QMAKE_PATH_HEADERS}' \ 29 OE_QMAKE_INCDIR_QT='${STAGING_DIR_TARGET}/${OE_QMAKE_PATH_HEADERS}' \
31" 30"
32 31
@@ -40,7 +39,6 @@ export OE_QMAKE_LINK = "${CXX}"
40export OE_QMAKE_LDFLAGS = "${LDFLAGS}" 39export OE_QMAKE_LDFLAGS = "${LDFLAGS}"
41export OE_QMAKE_AR = "${AR}" 40export OE_QMAKE_AR = "${AR}"
42export OE_QMAKE_STRIP = "echo" 41export OE_QMAKE_STRIP = "echo"
43export OE_QMAKE_WAYLAND_SCANNER = "${STAGING_BINDIR_NATIVE}/wayland-scanner"
44 42
45# qmake reads if from shell environment 43# qmake reads if from shell environment
46export OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf" 44export OE_QMAKE_QTCONF_PATH = "${WORKDIR}/qt.conf"
@@ -85,7 +83,7 @@ generate_qt_config_file_effective_paths() {
85[EffectivePaths] 83[EffectivePaths]
86HostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS} 84HostBinaries = ${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}
87HostData = ${OE_QMAKE_PATH_HOST_DATA} 85HostData = ${OE_QMAKE_PATH_HOST_DATA}
88HostPrefix = ${STAGING_DIR_NATIVE}${prefix_native} 86HostPrefix = ${STAGING_DIR_NATIVE}
89EOF 87EOF
90} 88}
91# 89#
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
index 3ceb3558..9605777d 100644
--- a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
+++ b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb
@@ -5,9 +5,9 @@ HOMEPAGE = "https://git.merproject.org/mer-core/libconnman-qt"
5LICENSE = "Apache-2.0" 5LICENSE = "Apache-2.0"
6LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88" 6LIC_FILES_CHKSUM = "file://libconnman-qt/clockmodel.h;endline=8;md5=ea9f724050803f15d2d900ce3c5dac88"
7DEPENDS += "qtbase qtdeclarative" 7DEPENDS += "qtbase qtdeclarative"
8PV = "1.0.98+git${SRCPV}" 8PV = "1.1.10+git${SRCPV}"
9 9
10SRCREV = "8d4580a55ca02b84fc3db374c6530e39c94e0d92" 10SRCREV = "4d6def3053eaccaac04e4f9e03ee24dea8b9e8d8"
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 \ 12 file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \
13" 13"
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
new file mode 100644
index 00000000..b42338ab
--- /dev/null
+++ b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_%.bbappend
@@ -0,0 +1,15 @@
1inherit qmake5_paths
2
3PACKAGECONFIG[qt5] = '--enable-qt \
4 --with-moc="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/moc" \
5 --with-uic="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/uic" \
6 --with-rcc="${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/rcc" \
7 ,--disable-qt,qtbase qtdeclarative qtbase-native'
8
9# The GStreamer Qt5 plugin needs desktop OpenGL or OpenGL ES to work, so make sure it is enabled
10python() {
11 cur_packageconfig = d.getVar('PACKAGECONFIG',True).split()
12 if 'qt5' in cur_packageconfig and not (('opengl' in cur_packageconfig) or ('gles2' in cur_packageconfig)):
13 gl_packageconfig = d.getVar('PACKAGECONFIG_GL',True)
14 d.appendVar('PACKAGECONFIG', ' ' + gl_packageconfig)
15}
diff --git a/recipes-python/pyqt5/files/0001-qtabbar.sip-fix-build-with-accessibility-disabled.patch b/recipes-python/pyqt5/files/0001-qtabbar.sip-fix-build-with-accessibility-disabled.patch
new file mode 100644
index 00000000..7e1c7bf4
--- /dev/null
+++ b/recipes-python/pyqt5/files/0001-qtabbar.sip-fix-build-with-accessibility-disabled.patch
@@ -0,0 +1,35 @@
1From 8a2f852417414e19d060da66cd7c5cba76e43c7d Mon Sep 17 00:00:00 2001
2From: Diego Rondini <diego.rondini@kynetics.com>
3Date: Wed, 19 Jul 2017 14:17:51 +0200
4Subject: [PATCH] qtabbar.sip: fix build with accessibility disabled
5
6Upstream-Status: Submitted
7
8Signed-off-by: Diego Rondini <diego.rondini@kynetics.com>
9---
10 sip/QtWidgets/qtabbar.sip | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/sip/QtWidgets/qtabbar.sip b/sip/QtWidgets/qtabbar.sip
14index ffe2d3b..80ad816 100644
15--- a/sip/QtWidgets/qtabbar.sip
16+++ b/sip/QtWidgets/qtabbar.sip
17@@ -166,11 +166,15 @@ protected:
18
19 public:
20 %If (Qt_5_8_0 -)
21+%If (PyQt_Accessibility)
22 QString accessibleTabName(int index) const;
23 %End
24+%End
25 %If (Qt_5_8_0 -)
26+%If (PyQt_Accessibility)
27 void setAccessibleTabName(int index, const QString &name);
28 %End
29+%End
30
31 private:
32 QTabBar(const QTabBar &);
33--
342.7.4
35
diff --git a/recipes-python/pyqt5/python-pyqt5_5.8.2.bb b/recipes-python/pyqt5/python-pyqt5_5.8.2.bb
index 3fa3d644..fdfa1205 100644
--- a/recipes-python/pyqt5/python-pyqt5_5.8.2.bb
+++ b/recipes-python/pyqt5/python-pyqt5_5.8.2.bb
@@ -11,6 +11,7 @@ DEPENDS = "sip sip-native qtbase python"
11SRC_URI = "\ 11SRC_URI = "\
12 ${SOURCEFORGE_MIRROR}/pyqt/PyQt5_gpl-${PV}.tar.gz \ 12 ${SOURCEFORGE_MIRROR}/pyqt/PyQt5_gpl-${PV}.tar.gz \
13 file://fix-sm.patch \ 13 file://fix-sm.patch \
14 file://0001-qtabbar.sip-fix-build-with-accessibility-disabled.patch \
14" 15"
15SRC_URI[md5sum] = "c3048e9d242f3e72fd393630da1d971a" 16SRC_URI[md5sum] = "c3048e9d242f3e72fd393630da1d971a"
16SRC_URI[sha256sum] = "ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8" 17SRC_URI[sha256sum] = "ebd70515b30bbd6098fee29e6271a6696b1183c5530ee30e6ba9aaab195536e8"
@@ -31,8 +32,8 @@ DISABLED_FEATURES = "PyQt_Desktop_OpenGL PyQt_Accessibility PyQt_SessionManager"
31 32
32DISABLED_FEATURES_append_arm = " PyQt_qreal_double" 33DISABLED_FEATURES_append_arm = " PyQt_qreal_double"
33 34
34PYQT_MODULES = "QtCore QtGui QtNetwork" 35PYQT_MODULES = "QtCore QtGui QtNetwork QtWidgets"
35PYQT_MODULES_aarch64 = "QtCore QtGui QtNetwork" 36PYQT_MODULES_aarch64 = "QtCore QtGui QtNetwork QtWidgets"
36 37
37do_configure_prepend() { 38do_configure_prepend() {
38 cd ${S} 39 cd ${S}
diff --git a/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch b/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch
new file mode 100644
index 00000000..73560340
--- /dev/null
+++ b/recipes-qt/maliit/maliit-framework-qt5/0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch
@@ -0,0 +1,34 @@
1From cb38c078fa34a3d0cff6bc195edd9f507477d2e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Jul 2017 11:45:06 -0700
4Subject: [PATCH] config.pri: Use -O1 optimization in DEBUG flags
5
6when building wit FORTIFY_SOURCES we need some level of
7optimization turned on for the compile to succeed
8
9O1 is a good compromise between debug quality and
10optimization level.
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 config.pri | 4 ++--
15 1 file changed, 2 insertions(+), 2 deletions(-)
16
17diff --git a/config.pri b/config.pri
18index 1505f9d..7cc196a 100644
19--- a/config.pri
20+++ b/config.pri
21@@ -13,8 +13,8 @@ include(defines.pri)
22 # Linker optimization for release build
23 QMAKE_LFLAGS_RELEASE+=-Wl,--as-needed
24 # Compiler warnings are error if the build type is debug
25-QMAKE_CXXFLAGS_DEBUG+=-Werror -O0
26-QMAKE_CFLAGS_DEBUG+=-Werror -O0
27+QMAKE_CXXFLAGS_DEBUG+=-Werror -O1
28+QMAKE_CFLAGS_DEBUG+=-Werror -O1
29
30 OBJECTS_DIR = .obj
31 MOC_DIR = .moc
32--
332.13.2
34
diff --git a/recipes-qt/maliit/maliit-framework-qt5_git.bb b/recipes-qt/maliit/maliit-framework-qt5_git.bb
index 62a7209b..e0a0e0e1 100644
--- a/recipes-qt/maliit/maliit-framework-qt5_git.bb
+++ b/recipes-qt/maliit/maliit-framework-qt5_git.bb
@@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://LICENSE.LGPL;md5=5c917f6ce94ceb8d8d5e16e2fca5b9ad"
7inherit qmake5 qmake5_paths 7inherit qmake5 qmake5_paths
8 8
9SRC_URI = "git://github.com/maliit/framework.git;branch=master \ 9SRC_URI = "git://github.com/maliit/framework.git;branch=master \
10 file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \ 10 file://0001-Fix-MALIIT_INSTALL_PRF-to-allow-the-build-with-opene.patch \
11 file://maliit-server.desktop \ 11 file://maliit-server.desktop \
12" 12 file://0001-config.pri-Use-O1-optimization-in-DEBUG-flags.patch \
13 "
13 14
14SRCREV = "60b1b10de14f932420313c547ab801daf522d539" 15SRCREV = "60b1b10de14f932420313c547ab801daf522d539"
15PV = "0.99.0+git${SRCPV}" 16PV = "0.99.0+git${SRCPV}"
@@ -57,7 +58,6 @@ EXTRA_QMAKEVARS_PRE = "\
57 CONFIG+=enable-dbus-activation \ 58 CONFIG+=enable-dbus-activation \
58 CONFIG+=qt5-inputcontext \ 59 CONFIG+=qt5-inputcontext \
59" 60"
60
61EXTRA_OEMAKE += "INSTALL_ROOT=${D}" 61EXTRA_OEMAKE += "INSTALL_ROOT=${D}"
62 62
63do_install_append() { 63do_install_append() {
diff --git a/recipes-qt/meta/meta-toolchain-qt5.bb b/recipes-qt/meta/meta-toolchain-qt5.bb
index 89911765..2027b54e 100644
--- a/recipes-qt/meta/meta-toolchain-qt5.bb
+++ b/recipes-qt/meta/meta-toolchain-qt5.bb
@@ -1,7 +1,6 @@
1SUMMARY = "Meta package for building an installable Qt5 toolchain and SDK" 1SUMMARY = "Meta package for building an installable Qt5 toolchain and SDK"
2LICENSE = "MIT" 2LICENSE = "MIT"
3 3
4LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690 \ 4LIC_FILES_CHKSUM = "file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
5 file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
6 5
7inherit populate_sdk populate_sdk_qt5 6inherit populate_sdk populate_sdk_qt5
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 38dd5283..f3402edb 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -25,18 +25,24 @@ require qt5-git.inc
25FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" 25FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:"
26 26
27# common for qtbase-native, qtbase-nativesdk and qtbase 27# common for qtbase-native, qtbase-nativesdk and qtbase
28# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
29# 5.9.meta-qt5-shared.2
28SRC_URI += "\ 30SRC_URI += "\
29 file://0001-Add-linux-oe-g-platform.patch \ 31 file://0001-Add-linux-oe-g-platform.patch \
30 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ 32 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
31 file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ 33 file://0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
32 file://0005-configure-bump-path-length-from-256-to-512-character.patch \ 34 file://0004-configure-bump-path-length-from-256-to-512-character.patch \
33 file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ 35 file://0005-Disable-all-unknown-features-instead-of-erroring-out.patch \
34 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ 36 file://0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
37 file://0007-Delete-qlonglong-and-qulonglong.patch \
38 file://0008-Replace-pthread_yield-with-sched_yield.patch \
35" 39"
36 40
37# common for qtbase-native and nativesdk-qtbase 41# common for qtbase-native and nativesdk-qtbase
42# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-native
43# 5.9.meta-qt5-native.2
38SRC_URI += " \ 44SRC_URI += " \
39 file://0011-Always-build-uic.patch \ 45 file://0009-Always-build-uic.patch \
40" 46"
41 47
42# CMake's toolchain configuration of nativesdk-qtbase 48# CMake's toolchain configuration of nativesdk-qtbase
@@ -93,7 +99,7 @@ OE_QMAKE_PATH_HOST_LIBS = "${libdir}"
93 99
94# for qtbase configuration we need default settings 100# for qtbase configuration we need default settings
95# since we cannot set empty set filename to a not existent file 101# since we cannot set empty set filename to a not existent file
96export OE_QMAKE_QTCONF_PATH = "foodummy" 102deltask generate_qt_config_file
97 103
98do_configure() { 104do_configure() {
99 ${S}/configure -v \ 105 ${S}/configure -v \
diff --git a/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch b/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
index 248fb473..3b0a9adb 100644
--- a/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
+++ b/recipes-qt/qt5/qt3d/0001-Allow-a-tools-only-build.patch
@@ -1,4 +1,4 @@
1From b3fbc6be8844cf2eb8a47d39b1b7ce8016ce5d52 Mon Sep 17 00:00:00 2001 1From 7cb46d20ad89f37828ff9f96363a112eadf11dbd Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@theqtcompany.com> 2From: Samuli Piippo <samuli.piippo@theqtcompany.com>
3Date: Wed, 10 Feb 2016 09:02:09 +0200 3Date: Wed, 10 Feb 2016 09:02:09 +0200
4Subject: [PATCH] Allow a tools-only build 4Subject: [PATCH] Allow a tools-only build
@@ -11,7 +11,7 @@ Change-Id: I4de6b96ec51fe297a0eeb757cef56d8fb40bd6f0
11 3 files changed, 8 insertions(+), 3 deletions(-) 11 3 files changed, 8 insertions(+), 3 deletions(-)
12 12
13diff --git a/qt3d.pro b/qt3d.pro 13diff --git a/qt3d.pro b/qt3d.pro
14index 2cc347a..81cdeef 100644 14index 2cc347a1c..81cdeefb0 100644
15--- a/qt3d.pro 15--- a/qt3d.pro
16+++ b/qt3d.pro 16+++ b/qt3d.pro
17@@ -1,4 +1,4 @@ 17@@ -1,4 +1,4 @@
@@ -30,7 +30,7 @@ index 2cc347a..81cdeef 100644
30+ SUBDIRS = sub_tools 30+ SUBDIRS = sub_tools
31+} 31+}
32diff --git a/src/3rdparty/assimp/assimp_dependency.pri b/src/3rdparty/assimp/assimp_dependency.pri 32diff --git a/src/3rdparty/assimp/assimp_dependency.pri b/src/3rdparty/assimp/assimp_dependency.pri
33index 8ba2d9a..e973d93 100644 33index 8ba2d9a41..e973d93dd 100644
34--- a/src/3rdparty/assimp/assimp_dependency.pri 34--- a/src/3rdparty/assimp/assimp_dependency.pri
35+++ b/src/3rdparty/assimp/assimp_dependency.pri 35+++ b/src/3rdparty/assimp/assimp_dependency.pri
36@@ -1,5 +1,5 @@ 36@@ -1,5 +1,5 @@
@@ -41,7 +41,7 @@ index 8ba2d9a..e973d93 100644
41 } else { 41 } else {
42 include(assimp.pri) 42 include(assimp.pri)
43diff --git a/tools/tools.pro b/tools/tools.pro 43diff --git a/tools/tools.pro b/tools/tools.pro
44index 8e973ae..ad51db5 100644 44index 8e973aecb..ad51db585 100644
45--- a/tools/tools.pro 45--- a/tools/tools.pro
46+++ b/tools/tools.pro 46+++ b/tools/tools.pro
47@@ -1,4 +1,4 @@ 47@@ -1,4 +1,4 @@
diff --git a/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch b/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch
new file mode 100644
index 00000000..1f2f682f
--- /dev/null
+++ b/recipes-qt/qt5/qt3d/0002-Fix-BlenderDNA-for-clang-cross-compiler.patch
@@ -0,0 +1,44 @@
1From 99fb23c0258ed0dacb03dc2eb57792c42b33316f Mon Sep 17 00:00:00 2001
2From: Kim Kulling <kim.kulling@googlemail.com>
3Date: Mon, 7 Nov 2016 17:19:49 +0100
4Subject: [PATCH] Fix BlenderDNA for clang cross compiler.
5
6Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
7---
8 src/3rdparty/assimp/code/BlenderDNA.cpp | 16 ++++++++--------
9 1 file changed, 8 insertions(+), 8 deletions(-)
10
11diff --git a/src/3rdparty/assimp/code/BlenderDNA.cpp b/src/3rdparty/assimp/code/BlenderDNA.cpp
12index 18ec9f2b4..5b0b2090f 100644
13--- a/src/3rdparty/assimp/code/BlenderDNA.cpp
14+++ b/src/3rdparty/assimp/code/BlenderDNA.cpp
15@@ -55,10 +55,10 @@ using namespace Assimp::Formatter;
16
17 bool match4(StreamReaderAny& stream, const char* string) {
18 char tmp[] = {
19- (stream).GetI1(),
20- (stream).GetI1(),
21- (stream).GetI1(),
22- (stream).GetI1()
23+ (const char)(stream).GetI1(),
24+ (const char)(stream).GetI1(),
25+ (const char)(stream).GetI1(),
26+ (const char)(stream).GetI1()
27 };
28 return (tmp[0]==string[0] && tmp[1]==string[1] && tmp[2]==string[2] && tmp[3]==string[3]);
29 }
30@@ -345,10 +345,10 @@ void SectionParser :: Next()
31 stream.SetCurrentPos(current.start + current.size);
32
33 const char tmp[] = {
34- stream.GetI1(),
35- stream.GetI1(),
36- stream.GetI1(),
37- stream.GetI1()
38+ (const char)stream.GetI1(),
39+ (const char)stream.GetI1(),
40+ (const char)stream.GetI1(),
41+ (const char)stream.GetI1()
42 };
43 current.id = std::string(tmp,tmp[3]?4:tmp[2]?3:tmp[1]?2:1);
44
diff --git a/recipes-qt/qt5/qt3d_git.bb b/recipes-qt/qt5/qt3d_git.bb
index bd97556a..9c1da93e 100644
--- a/recipes-qt/qt5/qt3d_git.bb
+++ b/recipes-qt/qt5/qt3d_git.bb
@@ -1,7 +1,7 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "LGPL-3.0 | GPL-2.0" 4LICENSE = "LGPL-3.0 | GPL-2.0 | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv3;md5=8211fde12cc8a4e2477602f5953f5b71 \ 6 file://LICENSE.LGPLv3;md5=8211fde12cc8a4e2477602f5953f5b71 \
7 file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \ 7 file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
@@ -11,8 +11,11 @@ LIC_FILES_CHKSUM = " \
11DEPENDS += "qtbase" 11DEPENDS += "qtbase"
12DEPENDS_class-target += "qtdeclarative qt3d-native" 12DEPENDS_class-target += "qtdeclarative qt3d-native"
13 13
14# Patches from https://github.com/meta-qt5/qt3d/commits/b5.9
15# 5.9.meta-qt5.2
14SRC_URI += " \ 16SRC_URI += " \
15 file://0001-Allow-a-tools-only-build.patch \ 17 file://0001-Allow-a-tools-only-build.patch \
18 file://0002-Fix-BlenderDNA-for-clang-cross-compiler.patch \
16" 19"
17 20
18PACKAGECONFIG ??= "" 21PACKAGECONFIG ??= ""
diff --git a/recipes-qt/qt5/qt5-creator/0001-Fix-compilation-with-QT_NO_ACCESSIBILITY.patch b/recipes-qt/qt5/qt5-creator/0001-Fix-compilation-with-QT_NO_ACCESSIBILITY.patch
new file mode 100644
index 00000000..9e90bab7
--- /dev/null
+++ b/recipes-qt/qt5/qt5-creator/0001-Fix-compilation-with-QT_NO_ACCESSIBILITY.patch
@@ -0,0 +1,38 @@
1From 429347dda56a4d45dc03fee2362eb02294161bfd Mon Sep 17 00:00:00 2001
2From: Eike Ziller <eike.ziller@qt.io>
3Date: Fri, 24 Jun 2016 10:23:24 +0200
4Subject: [PATCH] Fix compilation with QT_NO_ACCESSIBILITY
5
6Task-number: QTCREATORBUG-16446
7Change-Id: If75122c23a697f26ccf56391fe2e8d316aad6367
8Reviewed-by: hjk <hjk@theqtcompany.com>
9---
10 src/libs/utils/fancymainwindow.cpp | 7 +++++--
11 1 file changed, 5 insertions(+), 2 deletions(-)
12
13diff --git a/src/libs/utils/fancymainwindow.cpp b/src/libs/utils/fancymainwindow.cpp
14index 9477f17..1ee425f 100644
15--- a/src/libs/utils/fancymainwindow.cpp
16+++ b/src/libs/utils/fancymainwindow.cpp
17@@ -159,13 +159,16 @@ public:
18
19 m_floatButton = new DockWidgetTitleButton(this);
20 m_floatButton->setIcon(q->style()->standardIcon(QStyle::SP_TitleBarNormalButton, &opt, q));
21- m_floatButton->setAccessibleName(QDockWidget::tr("Float"));
22- m_floatButton->setAccessibleDescription(QDockWidget::tr("Undocks and re-attaches the dock widget"));
23
24 m_closeButton = new DockWidgetTitleButton(this);
25 m_closeButton->setIcon(q->style()->standardIcon(QStyle::SP_TitleBarCloseButton, &opt, q));
26+
27+#ifndef QT_NO_ACCESSIBILITY
28+ m_floatButton->setAccessibleName(QDockWidget::tr("Float"));
29+ m_floatButton->setAccessibleDescription(QDockWidget::tr("Undocks and re-attaches the dock widget"));
30 m_closeButton->setAccessibleName(QDockWidget::tr("Close"));
31 m_closeButton->setAccessibleDescription(QDockWidget::tr("Closes the dock widget"));
32+#endif
33
34 setActive(false);
35
36--
372.13.2
38
diff --git a/recipes-qt/qt5/qt5-creator/0001-Qmlpuppet-add-missing-includes.patch b/recipes-qt/qt5/qt5-creator/0001-Qmlpuppet-add-missing-includes.patch
new file mode 100644
index 00000000..8c1311e4
--- /dev/null
+++ b/recipes-qt/qt5/qt5-creator/0001-Qmlpuppet-add-missing-includes.patch
@@ -0,0 +1,41 @@
1From 51088a424416a8ca5cdf5161b792ac5e8a01f749 Mon Sep 17 00:00:00 2001
2From: Marco Benelli <marco.benelli@qt.io>
3Date: Thu, 6 Jul 2017 09:31:41 +0200
4Subject: [PATCH] Qmlpuppet: add missing includes
5
6Task-number: QTCREATORBUG-18498
7Change-Id: Ie40a066508bb52f53b8ad528f9d4cf6969fc0632
8Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
9---
10 .../qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp | 2 ++
11 .../qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp | 1 +
12 2 files changed, 3 insertions(+)
13
14diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp
15index 3f9f148..160e5c4 100644
16--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp
17+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/layoutnodeinstance.cpp
18@@ -29,6 +29,8 @@
19 ****************************************************************************/
20 #include "layoutnodeinstance.h"
21
22+#include <QCoreApplication>
23+
24 namespace QmlDesigner {
25 namespace Internal {
26
27diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp
28index 5a9342f..bacbc12 100644
29--- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp
30+++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/objectnodeinstance.cpp
31@@ -33,6 +33,7 @@
32 #include <enumeration.h>
33 #include <qmlprivategate.h>
34
35+#include <QDebug>
36 #include <QEvent>
37 #include <QQmlContext>
38 #include <QQmlError>
39--
402.13.2
41
diff --git a/recipes-qt/qt5/qt5-creator/musl-backtrace.patch b/recipes-qt/qt5/qt5-creator/musl-backtrace.patch
new file mode 100644
index 00000000..fc7f86c2
--- /dev/null
+++ b/recipes-qt/qt5/qt5-creator/musl-backtrace.patch
@@ -0,0 +1,18 @@
1Index: qt-creator-opensource-src-3.5.1/src/plugins/debugger/debugger.pro
2===================================================================
3--- qt-creator-opensource-src-3.5.1.orig/src/plugins/debugger/debugger.pro
4+++ qt-creator-opensource-src-3.5.1/src/plugins/debugger/debugger.pro
5@@ -148,3 +148,4 @@ include(qml/qml.pri)
6 include(namedemangler/namedemangler.pri)
7
8 include(shared/shared.pri)
9+LIBS *= -lexecinfo
10Index: qt-creator-opensource-src-3.5.1/src/plugins/qmldesigner/config.pri
11===================================================================
12--- qt-creator-opensource-src-3.5.1.orig/src/plugins/qmldesigner/config.pri
13+++ qt-creator-opensource-src-3.5.1/src/plugins/qmldesigner/config.pri
14@@ -9,3 +9,4 @@ equals(TMP_BAUHAUS_NO_OUTPUT, true):DEFI
15 DEFINES += ENABLE_TEXT_VIEW
16
17 isEmpty($$(BAUHAUS_OUTPUT_IN_TEST)):DEFINES += QDEBUG_IN_TESTS WARNINGS_IN_TESTS
18+LIBS *= -lexecinfo
diff --git a/recipes-qt/qt5/qt5-creator_3.5.1.bb b/recipes-qt/qt5/qt5-creator_3.5.1.bb
index f4ba8580..786b2024 100644
--- a/recipes-qt/qt5/qt5-creator_3.5.1.bb
+++ b/recipes-qt/qt5/qt5-creator_3.5.1.bb
@@ -17,12 +17,19 @@ LIC_FILES_CHKSUM = " \
17inherit qmake5 17inherit qmake5
18 18
19DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg qtquick1" 19DEPENDS = "qtbase qtscript qtwebkit qtxmlpatterns qtx11extras qtdeclarative qttools qttools-native qtsvg qtquick1"
20DEPENDS_append_libc-musl = " libexecinfo"
20 21
21SRC_URI = " \ 22SRC_URI = " \
22 http://download.qt.io/official_releases/qtcreator/3.5/${PV}/qt-creator-opensource-src-${PV}.tar.gz \ 23 http://download.qt.io/official_releases/qtcreator/3.5/${PV}/qt-creator-opensource-src-${PV}.tar.gz \
23 file://0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch \ 24 file://0001-Fix-Allow-qt-creator-to-build-on-arm-aarch32-and-aar.patch \
25 file://0001-Fix-compilation-with-QT_NO_ACCESSIBILITY.patch \
26 file://0001-Qmlpuppet-add-missing-includes.patch \
24 file://qtcreator.desktop.in \ 27 file://qtcreator.desktop.in \
25" 28"
29
30SRC_URI_append_libc-musl = " file://musl-backtrace.patch "
31
32
26SRC_URI[md5sum] = "77aef7df837eba07c7ce6037ee504c05" 33SRC_URI[md5sum] = "77aef7df837eba07c7ce6037ee504c05"
27SRC_URI[sha256sum] = "5925ac818a08be919094e0f28fb4c5d8896765e0975d54d353e4c50f13d63e65" 34SRC_URI[sha256sum] = "5925ac818a08be919094e0f28fb4c5d8896765e0975d54d353e4c50f13d63e65"
28 35
@@ -30,6 +37,7 @@ S = "${WORKDIR}/qt-creator-opensource-src-${PV}"
30 37
31EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}${QT_DIR_NAME}" 38EXTRA_QMAKEVARS_PRE += "IDE_LIBRARY_BASENAME=${baselib}${QT_DIR_NAME}"
32 39
40LDFLAGS_append_libc-musl = " -lexecinfo "
33do_configure_append() { 41do_configure_append() {
34 # Find native tools 42 # Find native tools
35 sed -i 's:${STAGING_BINDIR}.*/lrelease:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease:g' ${B}/share/qtcreator/translations/Makefile 43 sed -i 's:${STAGING_BINDIR}.*/lrelease:${OE_QMAKE_PATH_EXTERNAL_HOST_BINS}/lrelease:g' ${B}/share/qtcreator/translations/Makefile
diff --git a/recipes-qt/qt5/qt5-git.inc b/recipes-qt/qt5/qt5-git.inc
index c17b2bbb..a613d1e1 100644
--- a/recipes-qt/qt5/qt5-git.inc
+++ b/recipes-qt/qt5/qt5-git.inc
@@ -1,5 +1,5 @@
1# Copyright (C) 2012-2016 O.S. Systems Software LTDA. 1# Copyright (C) 2012-2016 O.S. Systems Software LTDA.
2# Copyright (C) 2013-2016 Martin Jansa <martin.jansa@gmail.com> 2# Copyright (C) 2013-2017 Martin Jansa <martin.jansa@gmail.com>
3 3
4QT_MODULE ?= "${BPN}" 4QT_MODULE ?= "${BPN}"
5QT_MODULE_BRANCH ?= "5.10" 5QT_MODULE_BRANCH ?= "5.10"
@@ -10,6 +10,8 @@ SRC_URI = " \
10 ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};${QT_MODULE_BRANCH_PARAM};protocol=${QT_GIT_PROTOCOL} \ 10 ${QT_GIT}/${QT_MODULE}.git;name=${QT_MODULE};${QT_MODULE_BRANCH_PARAM};protocol=${QT_GIT_PROTOCOL} \
11" 11"
12 12
13CVE_PRODUCT = "qt"
14
13S = "${WORKDIR}/git" 15S = "${WORKDIR}/git"
14 16
15PV = "5.10.0+git${SRCPV}" 17PV = "5.10.0+git${SRCPV}"
diff --git a/recipes-qt/qt5/qt5-ptest.inc b/recipes-qt/qt5/qt5-ptest.inc
new file mode 100644
index 00000000..4844878a
--- /dev/null
+++ b/recipes-qt/qt5/qt5-ptest.inc
@@ -0,0 +1,62 @@
1SRC_URI += "file://run-ptest"
2
3inherit ptest
4
5addtask do_populate_sysroot after do_install before do_compile_ptest_base
6deltask do_compile_ptest_base
7addtask do_compile_ptest_base after do_populate_sysroot before do_install_ptest
8addtask do_install_ptest after do_compile_ptest_base before do_package
9
10do_compile_ptest() {
11 cd ${S}/tests
12 qmake -o Makefile tests.pro
13 oe_runmake
14}
15
16do_populate_sysroot_append_class-target() {
17 workdir = d.getVar('WORKDIR', True)
18 srcdir = workdir + '/sysroot-destdir/usr/'
19 destdir = workdir + '/recipe-sysroot/usr/'
20
21 def copyFiles(sourceDir, targetDir, filelist):
22 for file in os.listdir(sourceDir):
23 sourceFile = os.path.join(sourceDir, file)
24 targetFile = os.path.join(targetDir, file)
25 filelist.append(targetFile) #record the file list
26 if os.path.isfile(sourceFile):
27 if not os.path.exists(targetDir):
28 os.makedirs(targetDir)
29 if not os.path.exists(targetFile) or(os.path.exists(targetFile) and (os.path.getsize(targetFile) != os.path.getsize(sourceFile))):
30 open(targetFile, "wb").write(open(sourceFile, "rb").read())
31 if os.path.isdir(sourceFile):
32 First_Directory = False
33 copyFiles(sourceFile, targetFile, filelist)
34
35 if os.path.exists(destdir):
36 Tmpfilelist = []
37 copyFiles(srcdir, destdir, Tmpfilelist)
38
39 fp=open(workdir + '/filelist', 'w')
40 for i in Tmpfilelist:
41 fp.write(i)
42 fp.write("\n")
43 fp.close()
44}
45
46fakeroot do_install_ptest() {
47 mkdir -p ${D}${PTEST_PATH}
48 t=${D}${PTEST_PATH}
49 for var in ` find ${S}/tests/auto/ -name tst_*`; do
50 if [ -z ` echo ${var##*/} | grep '\.'` ]; then
51 echo ${var##*/} >> ${t}/tst_list
52 install -m 0644 ${var} ${t}
53 fi
54 done
55 for file in `cat ${WORKDIR}/filelist`; do
56 if [ -f $file ]; then
57 rm -f $file
58 fi
59 done
60 rm -f ${WORKDIR}/filelist
61}
62
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index e4667dd1..b0435ba9 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -20,20 +20,25 @@ require qt5-native.inc
20require qt5-git.inc 20require qt5-git.inc
21 21
22# common for qtbase-native, qtbase-nativesdk and qtbase 22# common for qtbase-native, qtbase-nativesdk and qtbase
23# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
24# 5.9.meta-qt5-shared.2
23SRC_URI += "\ 25SRC_URI += "\
24 file://0001-Add-linux-oe-g-platform.patch \ 26 file://0001-Add-linux-oe-g-platform.patch \
25 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ 27 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
26 file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ 28 file://0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
27 file://0005-configure-bump-path-length-from-256-to-512-character.patch \ 29 file://0004-configure-bump-path-length-from-256-to-512-character.patch \
28 file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ 30 file://0005-Disable-all-unknown-features-instead-of-erroring-out.patch \
29 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ 31 file://0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
32 file://0007-Delete-qlonglong-and-qulonglong.patch \
33 file://0008-Replace-pthread_yield-with-sched_yield.patch \
30" 34"
31 35
32# common for qtbase-native and nativesdk-qtbase 36# common for qtbase-native and nativesdk-qtbase
37# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-native
38# 5.9.meta-qt5-native.2
33SRC_URI += " \ 39SRC_URI += " \
34 file://0011-Always-build-uic.patch \
35 file://0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch \
36 file://0001-Disable-unnamed-tmp-files.patch \ 40 file://0001-Disable-unnamed-tmp-files.patch \
41 file://0009-Always-build-uic.patch \
37" 42"
38 43
39CLEANBROKEN = "1" 44CLEANBROKEN = "1"
@@ -80,7 +85,7 @@ PACKAGECONFIG_CONFARGS = " \
80 85
81# for qtbase configuration we need default settings 86# for qtbase configuration we need default settings
82# since we cannot set empty set filename to a not existent file 87# since we cannot set empty set filename to a not existent file
83export OE_QMAKE_QTCONF_PATH = "foodummy" 88deltask generate_qt_config_file
84 89
85do_configure_prepend() { 90do_configure_prepend() {
86 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 91 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
diff --git a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
index df2016e1..4d555bec 100644
--- a/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
+++ b/recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch
@@ -1,4 +1,4 @@
1From 2784921c40d0b523c75e613e48b7fd1e90ba3ef1 Mon Sep 17 00:00:00 2001 1From 85da054ff867fbf1a4c10e3f1cad782123ffdfe4 Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Mon, 15 Apr 2013 04:29:32 +0200 3Date: Mon, 15 Apr 2013 04:29:32 +0200
4Subject: [PATCH] Add linux-oe-g++ platform 4Subject: [PATCH] Add linux-oe-g++ platform
@@ -23,17 +23,17 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
23 configure | 2 +- 23 configure | 2 +-
24 mkspecs/features/configure.prf | 4 ++-- 24 mkspecs/features/configure.prf | 4 ++--
25 mkspecs/features/qt_functions.prf | 2 +- 25 mkspecs/features/qt_functions.prf | 2 +-
26 mkspecs/linux-oe-g++/qmake.conf | 43 ++++++++++++++++++++++++++++++++++++ 26 mkspecs/linux-oe-g++/qmake.conf | 42 ++++++++++++++++++++++++++++++++++++
27 mkspecs/linux-oe-g++/qplatformdefs.h | 1 + 27 mkspecs/linux-oe-g++/qplatformdefs.h | 1 +
28 5 files changed, 48 insertions(+), 4 deletions(-) 28 5 files changed, 47 insertions(+), 4 deletions(-)
29 create mode 100644 mkspecs/linux-oe-g++/qmake.conf 29 create mode 100644 mkspecs/linux-oe-g++/qmake.conf
30 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h 30 create mode 100644 mkspecs/linux-oe-g++/qplatformdefs.h
31 31
32diff --git a/configure b/configure 32diff --git a/configure b/configure
33index 789ba4c..59cce01 100755 33index 08b49a8d12..5876721743 100755
34--- a/configure 34--- a/configure
35+++ b/configure 35+++ b/configure
36@@ -1624,7 +1624,7 @@ fi 36@@ -712,7 +712,7 @@ fi
37 # is where the resulting variable is written to 37 # is where the resulting variable is written to
38 setBootstrapVariable() 38 setBootstrapVariable()
39 { 39 {
@@ -43,10 +43,10 @@ index 789ba4c..59cce01 100755
43 43
44 # build qmake 44 # build qmake
45diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf 45diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf
46index f275e3a..5aa15f5 100644 46index 934a18a924..0f5b1b6333 100644
47--- a/mkspecs/features/configure.prf 47--- a/mkspecs/features/configure.prf
48+++ b/mkspecs/features/configure.prf 48+++ b/mkspecs/features/configure.prf
49@@ -37,14 +37,14 @@ defineTest(qtCompileTest) { 49@@ -46,14 +46,14 @@ defineTest(qtCompileTest) {
50 } 50 }
51 51
52 # Clean up after previous run 52 # Clean up after previous run
@@ -64,10 +64,10 @@ index f275e3a..5aa15f5 100644
64 msg = "test $$1 succeeded" 64 msg = "test $$1 succeeded"
65 write_file($$QMAKE_CONFIG_LOG, msg, append) 65 write_file($$QMAKE_CONFIG_LOG, msg, append)
66diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf 66diff --git a/mkspecs/features/qt_functions.prf b/mkspecs/features/qt_functions.prf
67index 708815d..097ac49 100644 67index c00fdb73f8..0cf4de7b49 100644
68--- a/mkspecs/features/qt_functions.prf 68--- a/mkspecs/features/qt_functions.prf
69+++ b/mkspecs/features/qt_functions.prf 69+++ b/mkspecs/features/qt_functions.prf
70@@ -67,7 +67,7 @@ defineTest(qtHaveModule) { 70@@ -69,7 +69,7 @@ defineTest(qtHaveModule) {
71 defineTest(qtPrepareTool) { 71 defineTest(qtPrepareTool) {
72 cmd = $$eval(QT_TOOL.$${2}.binary) 72 cmd = $$eval(QT_TOOL.$${2}.binary)
73 isEmpty(cmd) { 73 isEmpty(cmd) {
@@ -78,10 +78,10 @@ index 708815d..097ac49 100644
78 cmd = perl -w $$system_path($${cmd}.pl) 78 cmd = perl -w $$system_path($${cmd}.pl)
79diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf 79diff --git a/mkspecs/linux-oe-g++/qmake.conf b/mkspecs/linux-oe-g++/qmake.conf
80new file mode 100644 80new file mode 100644
81index 0000000..c1837e6 81index 0000000..30d31ed
82--- /dev/null 82--- /dev/null
83+++ b/mkspecs/linux-oe-g++/qmake.conf 83+++ b/mkspecs/linux-oe-g++/qmake.conf
84@@ -0,0 +1,43 @@ 84@@ -0,0 +1,42 @@
85+# 85+#
86+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded 86+# qmake configuration for linux-g++ with modifications for building with OpenEmbedded
87+# 87+#
@@ -95,7 +95,6 @@ index 0000000..c1837e6
95+# QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip 95+# QMAKE_<TOOL> (moc, uic, rcc) are gone, overwrite only ar and strip
96+QMAKE_AR = $$(OE_QMAKE_AR) cqs 96+QMAKE_AR = $$(OE_QMAKE_AR) cqs
97+QMAKE_STRIP = $$(OE_QMAKE_STRIP) 97+QMAKE_STRIP = $$(OE_QMAKE_STRIP)
98+QMAKE_WAYLAND_SCANNER = $$(OE_QMAKE_WAYLAND_SCANNER)
99+ 98+
100+include(../common/gcc-base-unix.conf) 99+include(../common/gcc-base-unix.conf)
101+ 100+
@@ -127,7 +126,7 @@ index 0000000..c1837e6
127+load(qt_config) 126+load(qt_config)
128diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h 127diff --git a/mkspecs/linux-oe-g++/qplatformdefs.h b/mkspecs/linux-oe-g++/qplatformdefs.h
129new file mode 100644 128new file mode 100644
130index 0000000..5d22fb4 129index 0000000000..5d22fb4101
131--- /dev/null 130--- /dev/null
132+++ b/mkspecs/linux-oe-g++/qplatformdefs.h 131+++ b/mkspecs/linux-oe-g++/qplatformdefs.h
133@@ -0,0 +1 @@ 132@@ -0,0 +1 @@
diff --git a/recipes-qt/qt5/qtbase/0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch b/recipes-qt/qt5/qtbase/0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch
index 4ab47247..b67a7ef1 100644
--- a/recipes-qt/qt5/qtbase/0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch
+++ b/recipes-qt/qt5/qtbase/0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch
@@ -1,4 +1,4 @@
1From f49d55a883369dee488cc59feda29c770a803458 Mon Sep 17 00:00:00 2001 1From b6d5179ad7c907bc3343bcf3586cef6226d0c8ed Mon Sep 17 00:00:00 2001
2From: Martin Jansa <Martin.Jansa@gmail.com> 2From: Martin Jansa <Martin.Jansa@gmail.com>
3Date: Sat, 6 Apr 2013 13:15:07 +0200 3Date: Sat, 6 Apr 2013 13:15:07 +0200
4Subject: [PATCH] cmake: Use OE_QMAKE_PATH_EXTERNAL_HOST_BINS 4Subject: [PATCH] cmake: Use OE_QMAKE_PATH_EXTERNAL_HOST_BINS
@@ -19,7 +19,7 @@ Change-Id: Iacaa1c5531cd6dcc094891610c351673db55d7b2
19 3 files changed, 6 insertions(+), 6 deletions(-) 19 3 files changed, 6 insertions(+), 6 deletions(-)
20 20
21diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in 21diff --git a/src/corelib/Qt5CoreConfigExtras.cmake.in b/src/corelib/Qt5CoreConfigExtras.cmake.in
22index 545b9a3..c991a9b 100644 22index 545b9a3d1e..c991a9ba41 100644
23--- a/src/corelib/Qt5CoreConfigExtras.cmake.in 23--- a/src/corelib/Qt5CoreConfigExtras.cmake.in
24+++ b/src/corelib/Qt5CoreConfigExtras.cmake.in 24+++ b/src/corelib/Qt5CoreConfigExtras.cmake.in
25@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qmake) 25@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qmake)
@@ -50,7 +50,7 @@ index 545b9a3..c991a9b 100644
50 _qt5_Core_check_file_exists(${imported_location}) 50 _qt5_Core_check_file_exists(${imported_location})
51 51
52diff --git a/src/dbus/Qt5DBusConfigExtras.cmake.in b/src/dbus/Qt5DBusConfigExtras.cmake.in 52diff --git a/src/dbus/Qt5DBusConfigExtras.cmake.in b/src/dbus/Qt5DBusConfigExtras.cmake.in
53index 1d94715..301af8f 100644 53index 1d947159e2..301af8f1b2 100644
54--- a/src/dbus/Qt5DBusConfigExtras.cmake.in 54--- a/src/dbus/Qt5DBusConfigExtras.cmake.in
55+++ b/src/dbus/Qt5DBusConfigExtras.cmake.in 55+++ b/src/dbus/Qt5DBusConfigExtras.cmake.in
56@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml) 56@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::qdbuscpp2xml)
@@ -72,7 +72,7 @@ index 1d94715..301af8f 100644
72 _qt5_DBus_check_file_exists(${imported_location}) 72 _qt5_DBus_check_file_exists(${imported_location})
73 73
74diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in 74diff --git a/src/widgets/Qt5WidgetsConfigExtras.cmake.in b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
75index 99d87e2..5621dc0 100644 75index 99d87e2e46..5621dc0fae 100644
76--- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in 76--- a/src/widgets/Qt5WidgetsConfigExtras.cmake.in
77+++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in 77+++ b/src/widgets/Qt5WidgetsConfigExtras.cmake.in
78@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::uic) 78@@ -5,7 +5,7 @@ if (NOT TARGET Qt5::uic)
diff --git a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch b/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
index 4b72ebf1..ae06ea6f 100644
--- a/recipes-qt/qt5/qtbase/0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
+++ b/recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch
@@ -1,4 +1,4 @@
1From e5f8607cfa1d2bcc798686cdf7c87ea0c6577d30 Mon Sep 17 00:00:00 2001 1From 8cf43041691140faf5f56b42bebfa00d8ebc8da6 Mon Sep 17 00:00:00 2001
2From: Holger Freyther <zecke@selfish.org> 2From: Holger Freyther <zecke@selfish.org>
3Date: Wed, 26 Sep 2012 17:22:30 +0200 3Date: Wed, 26 Sep 2012 17:22:30 +0200
4Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the 4Subject: [PATCH] qlibraryinfo: allow to set qt.conf from the outside using the
@@ -19,10 +19,10 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
19 1 file changed, 4 insertions(+), 1 deletion(-) 19 1 file changed, 4 insertions(+), 1 deletion(-)
20 20
21diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp 21diff --git a/src/corelib/global/qlibraryinfo.cpp b/src/corelib/global/qlibraryinfo.cpp
22index 27fe10a..29ffcda 100644 22index b4ba0b5b2e..11d4c00f39 100644
23--- a/src/corelib/global/qlibraryinfo.cpp 23--- a/src/corelib/global/qlibraryinfo.cpp
24+++ b/src/corelib/global/qlibraryinfo.cpp 24+++ b/src/corelib/global/qlibraryinfo.cpp
25@@ -164,7 +164,10 @@ void QLibrarySettings::load() 25@@ -172,7 +172,10 @@ void QLibrarySettings::load()
26 QSettings *QLibraryInfoPrivate::findConfiguration() 26 QSettings *QLibraryInfoPrivate::findConfiguration()
27 { 27 {
28 #ifdef QT_BUILD_QMAKE 28 #ifdef QT_BUILD_QMAKE
@@ -34,5 +34,3 @@ index 27fe10a..29ffcda 100644
34 if (QFile::exists(qtconfig)) 34 if (QFile::exists(qtconfig))
35 return new QSettings(qtconfig, QSettings::IniFormat); 35 return new QSettings(qtconfig, QSettings::IniFormat);
36 #else 36 #else
37--
382.9.3
diff --git a/recipes-qt/qt5/qtbase/0005-configure-bump-path-length-from-256-to-512-character.patch b/recipes-qt/qt5/qtbase/0004-configure-bump-path-length-from-256-to-512-character.patch
index 7c80c6b9..8ef4f61c 100644
--- a/recipes-qt/qt5/qtbase/0005-configure-bump-path-length-from-256-to-512-character.patch
+++ b/recipes-qt/qt5/qtbase/0004-configure-bump-path-length-from-256-to-512-character.patch
@@ -1,4 +1,4 @@
1From c8f856115df0f5be64dfbeef0c1e9a4f02ba161a Mon Sep 17 00:00:00 2001 1From f02c4f742e90023e87d148bda48401b11815d8ba Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com> 2From: Denys Dmytriyenko <denys@ti.com>
3Date: Tue, 25 Aug 2015 10:05:15 -0400 3Date: Tue, 25 Aug 2015 10:05:15 -0400
4Subject: [PATCH] configure: bump path length from 256 to 512 characters 4Subject: [PATCH] configure: bump path length from 256 to 512 characters
@@ -15,10 +15,10 @@ Signed-off-by: Denys Dmytriyenko <denys@ti.com>
15 1 file changed, 3 insertions(+), 3 deletions(-) 15 1 file changed, 3 insertions(+), 3 deletions(-)
16 16
17diff --git a/configure.pri b/configure.pri 17diff --git a/configure.pri b/configure.pri
18index efd0f81..5a027fe 100644 18index 76bb27e4ae..9ac81027c9 100644
19--- a/configure.pri 19--- a/configure.pri
20+++ b/configure.pri 20+++ b/configure.pri
21@@ -837,10 +837,10 @@ defineTest(qtConfOutput_preparePaths) { 21@@ -796,10 +796,10 @@ defineTest(qtConfOutput_preparePaths) {
22 "static const char qt_configure_installation [12+11] = \"qt_instdate=2012-12-20\";" \ 22 "static const char qt_configure_installation [12+11] = \"qt_instdate=2012-12-20\";" \
23 "" \ 23 "" \
24 "/* Installation Info */" \ 24 "/* Installation Info */" \
diff --git a/recipes-qt/qt5/qtbase/0009-Disable-all-unknown-features-instead-of-erroring-out.patch b/recipes-qt/qt5/qtbase/0005-Disable-all-unknown-features-instead-of-erroring-out.patch
index cb9de793..610299d2 100644
--- a/recipes-qt/qt5/qtbase/0009-Disable-all-unknown-features-instead-of-erroring-out.patch
+++ b/recipes-qt/qt5/qtbase/0005-Disable-all-unknown-features-instead-of-erroring-out.patch
@@ -1,4 +1,4 @@
1From 9eb81e3bdeda4f90e5f2942400aef38b51a356bd Mon Sep 17 00:00:00 2001 1From 3114a9cd19b15f6b5ca99c4ce961ae5b80bfb3ab Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io> 2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Mon, 24 Oct 2016 09:45:18 +0300 3Date: Mon, 24 Oct 2016 09:45:18 +0300
4Subject: [PATCH] Disable all unknown features instead of erroring out 4Subject: [PATCH] Disable all unknown features instead of erroring out
@@ -10,10 +10,10 @@ Change-Id: Ib884fe33cac74439f9592b145937f6b75ced8447
10 1 file changed, 2 insertions(+), 1 deletion(-) 10 1 file changed, 2 insertions(+), 1 deletion(-)
11 11
12diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf 12diff --git a/mkspecs/features/qt_configure.prf b/mkspecs/features/qt_configure.prf
13index e8fa0c6..0ca5670 100644 13index afeb4f3d1d..aec5253c25 100644
14--- a/mkspecs/features/qt_configure.prf 14--- a/mkspecs/features/qt_configure.prf
15+++ b/mkspecs/features/qt_configure.prf 15+++ b/mkspecs/features/qt_configure.prf
16@@ -1009,7 +1009,8 @@ defineReplace(qtConfEvaluateSingleExpression) { 16@@ -1235,7 +1235,8 @@ defineReplace(qtConfEvaluateSingleExpression) {
17 error("Expression '$$1' is accessing field '$$var' of non-local feature $${feature}.") 17 error("Expression '$$1' is accessing field '$$var' of non-local feature $${feature}.")
18 return($$result) 18 return($$result)
19 } 19 }
@@ -23,6 +23,3 @@ index e8fa0c6..0ca5670 100644
23 } 23 }
24 !qtConfCheckFeature($$feature): \ 24 !qtConfCheckFeature($$feature): \
25 error("Expression '$$1' is accessing non-emitted feature $${feature}.") 25 error("Expression '$$1' is accessing non-emitted feature $${feature}.")
26--
271.9.1
28
diff --git a/recipes-qt/qt5/qtbase/0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch b/recipes-qt/qt5/qtbase/0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch
index 1d0ea3e8..eaa5da84 100644
--- a/recipes-qt/qt5/qtbase/0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch
+++ b/recipes-qt/qt5/qtbase/0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch
@@ -1,4 +1,4 @@
1From b397a71531e31383ee86135e21072d033480f5bc Mon Sep 17 00:00:00 2001 1From 515acdcfe158982f31b31e410bbedb3db94bea1c Mon Sep 17 00:00:00 2001
2From: Pascal Bach <pascal.bach@siemens.com> 2From: Pascal Bach <pascal.bach@siemens.com>
3Date: Wed, 11 May 2016 15:20:41 +0200 3Date: Wed, 11 May 2016 15:20:41 +0200
4Subject: [PATCH] Pretend Qt5 wasn't found if OE_QMAKE_PATH_EXTERNAL_HOST_BINS 4Subject: [PATCH] Pretend Qt5 wasn't found if OE_QMAKE_PATH_EXTERNAL_HOST_BINS
@@ -30,7 +30,7 @@ Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
30 2 files changed, 10 insertions(+) 30 2 files changed, 10 insertions(+)
31 31
32diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 32diff --git a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
33index d2358ca..feb73c0 100644 33index 55c74aad66..f9ec328c83 100644
34--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 34--- a/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
35+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in 35+++ b/mkspecs/features/data/cmake/Qt5BasicConfig.cmake.in
36@@ -9,6 +9,11 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0) 36@@ -9,6 +9,11 @@ if (CMAKE_VERSION VERSION_LESS 3.0.0)
@@ -46,7 +46,7 @@ index d2358ca..feb73c0 100644
46 !!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE) 46 !!IF !isEmpty(CMAKE_LIB_DIR_IS_ABSOLUTE)
47 set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\") 47 set(_qt5$${CMAKE_MODULE_NAME}_install_prefix \"$$[QT_INSTALL_PREFIX]\")
48diff --git a/src/corelib/Qt5Config.cmake.in b/src/corelib/Qt5Config.cmake.in 48diff --git a/src/corelib/Qt5Config.cmake.in b/src/corelib/Qt5Config.cmake.in
49index a872d0e..233d663 100644 49index 75b53485b7..ed31888c93 100644
50--- a/src/corelib/Qt5Config.cmake.in 50--- a/src/corelib/Qt5Config.cmake.in
51+++ b/src/corelib/Qt5Config.cmake.in 51+++ b/src/corelib/Qt5Config.cmake.in
52@@ -3,6 +3,11 @@ if (CMAKE_VERSION VERSION_LESS 2.8.9) 52@@ -3,6 +3,11 @@ if (CMAKE_VERSION VERSION_LESS 2.8.9)
diff --git a/recipes-qt/qt5/qtbase/0007-Delete-qlonglong-and-qulonglong.patch b/recipes-qt/qt5/qtbase/0007-Delete-qlonglong-and-qulonglong.patch
new file mode 100644
index 00000000..4d3e4b6e
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0007-Delete-qlonglong-and-qulonglong.patch
@@ -0,0 +1,25 @@
1From 6875848e2250ef439115ff2063713ce7bfb9597d Mon Sep 17 00:00:00 2001
2From: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
3Date: Wed, 7 Jun 2017 21:00:49 +0900
4Subject: [PATCH] Delete qlonglong and qulonglong
5
6Signed-off-by: Huang Qiyu <huangqy.fnst@cn.fujitsu.com>
7---
8 tests/auto/corelib/thread/qatomicinteger/qatomicinteger.pro | 2 --
9 1 file changed, 2 deletions(-)
10
11diff --git a/tests/auto/corelib/thread/qatomicinteger/qatomicinteger.pro b/tests/auto/corelib/thread/qatomicinteger/qatomicinteger.pro
12index 09458bd9c3..59a120eb26 100644
13--- a/tests/auto/corelib/thread/qatomicinteger/qatomicinteger.pro
14+++ b/tests/auto/corelib/thread/qatomicinteger/qatomicinteger.pro
15@@ -5,10 +5,8 @@ SUBDIRS=\
16 char32_t \
17 int \
18 long \
19- qlonglong \
20 qptrdiff \
21 quintptr \
22- qulonglong \
23 schar \
24 short \
25 uchar \
diff --git a/recipes-qt/qt5/qtbase/0008-Replace-pthread_yield-with-sched_yield.patch b/recipes-qt/qt5/qtbase/0008-Replace-pthread_yield-with-sched_yield.patch
new file mode 100644
index 00000000..14074fb4
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0008-Replace-pthread_yield-with-sched_yield.patch
@@ -0,0 +1,60 @@
1From 66da19d96d9a6ea9142df8fcbc0c3b7d960ee6b9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 27 Jul 2017 08:02:51 -0700
4Subject: [PATCH] Replace pthread_yield with sched_yield
5
6On Linux pthead_yield is same as sched_yield implementation wise
7and sched_yield is available on all libc
8implementations on Linux
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12 tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp | 4 ++--
13 tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp | 5 +++--
14 2 files changed, 5 insertions(+), 4 deletions(-)
15
16diff --git a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
17index f9ddd59aaa..2f92db983d 100644
18--- a/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
19+++ b/tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp
20@@ -34,7 +34,7 @@
21 #include "tst_qvariant_common.h"
22
23 #ifdef Q_OS_LINUX
24-# include <pthread.h>
25+# include <sched.h>
26 #endif
27
28 #include <algorithm>
29@@ -197,7 +197,7 @@ protected:
30 const char *nm = name.constData();
31 int tp = qRegisterMetaType<Bar>(nm);
32 #if defined(Q_OS_LINUX) && !defined(Q_OS_ANDROID)
33- pthread_yield();
34+ sched_yield();
35 #endif
36 QMetaType info(tp);
37 if (!info.isValid()) {
38diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
39index 7340817ade..f34162a105 100644
40--- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
41+++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
42@@ -77,6 +77,7 @@
43 #include <stdlib.h>
44 #include <sys/stat.h>
45 #include <unistd.h>
46+#include <sched.h>
47 #endif
48
49 #include "private/qhostinfo_p.h"
50@@ -2131,8 +2132,8 @@ public slots:
51
52 #if defined(Q_OS_MAC)
53 pthread_yield_np();
54-#elif defined Q_OS_LINUX && !defined Q_OS_ANDROID
55- pthread_yield();
56+#elif defined Q_OS_LINUX
57+ sched_yield();
58 #endif
59 if (!sock->waitForConnected()) {
60 networkTimeout = true;
diff --git a/recipes-qt/qt5/qtbase/0011-Always-build-uic.patch b/recipes-qt/qt5/qtbase/0009-Always-build-uic.patch
index 8ca2c8c4..8ca2c8c4 100644
--- a/recipes-qt/qt5/qtbase/0011-Always-build-uic.patch
+++ b/recipes-qt/qt5/qtbase/0009-Always-build-uic.patch
diff --git a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch b/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
deleted file mode 100644
index 9c5f8fef..00000000
--- a/recipes-qt/qt5/qtbase/0012-qdbuscpp2xml.pro-do-not-build-with-bootstrapped-depe.patch
+++ /dev/null
@@ -1,72 +0,0 @@
1From 9bd7ad277698be81db2af1a86d5b4efad5818203 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Mon, 6 Mar 2017 11:50:38 +0100
4Subject: [PATCH] qdbuscpp2xml.pro: do not build with bootstrapped
5 dependenciies
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10Upstream-Status: Pending
11
12Change-Id: I14e9b9a2bb4aca08d408c8aa76a2c58b54e74e7d
13Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
14---
15 src/src.pro | 9 ++-------
16 src/tools/qdbuscpp2xml/qdbuscpp2xml.pro | 1 +
17 src/tools/qdbusxml2cpp/qdbusxml2cpp.pro | 1 +
18 3 files changed, 4 insertions(+), 7 deletions(-)
19
20diff --git a/src/src.pro b/src/src.pro
21index a2064b1..d6f05e0 100644
22--- a/src/src.pro
23+++ b/src/src.pro
24@@ -4,9 +4,6 @@ QT_FOR_CONFIG += gui-private
25 include($$OUT_PWD/corelib/qtcore-config.pri)
26 include($$OUT_PWD/gui/qtgui-config.pri)
27
28-force_bootstrap|!qtConfig(commandlineparser): \
29- CONFIG += force_dbus_bootstrap
30-
31 src_qtzlib.file = $$PWD/corelib/qtzlib.pro
32 src_qtzlib.target = sub-zlib
33
34@@ -41,13 +38,11 @@ src_tools_bootstrap_dbus.depends = src_tools_bootstrap
35
36 src_tools_qdbusxml2cpp.subdir = tools/qdbusxml2cpp
37 src_tools_qdbusxml2cpp.target = sub-qdbusxml2cpp
38-force_dbus_bootstrap: src_tools_qdbusxml2cpp.depends = src_tools_bootstrap_dbus
39-else: src_tools_qdbusxml2cpp.depends = src_dbus
40+src_tools_qdbusxml2cpp.depends = src_dbus
41
42 src_tools_qdbuscpp2xml.subdir = tools/qdbuscpp2xml
43 src_tools_qdbuscpp2xml.target = sub-qdbuscpp2xml
44-force_bootstrap: src_tools_qdbuscpp2xml.depends = src_tools_bootstrap_dbus
45-else: src_tools_qdbuscpp2xml.depends = src_dbus
46+src_tools_qdbuscpp2xml.depends = src_dbus
47
48 src_tools_qvkgen.subdir = tools/qvkgen
49 src_tools_qvkgen.target = sub-qvkgen
50diff --git a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
51index 5ac3159..65de97e 100644
52--- a/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
53+++ b/src/tools/qdbuscpp2xml/qdbuscpp2xml.pro
54@@ -1,5 +1,6 @@
55 option(host_build)
56 QT = core-private
57+CONFIG -= force_bootstrap
58 force_bootstrap: QT += bootstrap_dbus-private
59 else: QT += dbus-private
60 DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
61diff --git a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
62index 95fcbcb..d1ebdde 100644
63--- a/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
64+++ b/src/tools/qdbusxml2cpp/qdbusxml2cpp.pro
65@@ -5,6 +5,7 @@ option(host_build)
66 CONFIG += force_bootstrap
67 }
68 QT = core-private
69+CONFIG -= force_bootstrap
70 force_bootstrap: QT += bootstrap_dbus-private
71 else: QT += dbus-private
72 DEFINES += QT_NO_CAST_FROM_ASCII QT_NO_FOREACH
diff --git a/recipes-qt/qt5/qtbase/run-ptest b/recipes-qt/qt5/qtbase/run-ptest
new file mode 100644
index 00000000..044f834d
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/run-ptest
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3for x in ` awk '{print $1}' tst_list `;do
4 ./${x};
5done
6
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index a95c17a4..6aa8c160 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -15,22 +15,49 @@ LIC_FILES_CHKSUM = " \
15" 15"
16 16
17# common for qtbase-native, qtbase-nativesdk and qtbase 17# common for qtbase-native, qtbase-nativesdk and qtbase
18# Patches from https://github.com/meta-qt5/qtbase/commits/b5.9-shared
19# 5.9.meta-qt5-shared.2
18SRC_URI += "\ 20SRC_URI += "\
19 file://0001-Add-linux-oe-g-platform.patch \ 21 file://0001-Add-linux-oe-g-platform.patch \
20 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ 22 file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
21 file://0002-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \ 23 file://0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch \
22 file://0005-configure-bump-path-length-from-256-to-512-character.patch \ 24 file://0004-configure-bump-path-length-from-256-to-512-character.patch \
23 file://0009-Disable-all-unknown-features-instead-of-erroring-out.patch \ 25 file://0005-Disable-all-unknown-features-instead-of-erroring-out.patch \
24 file://0010-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \ 26 file://0006-Pretend-Qt5-wasn-t-found-if-OE_QMAKE_PATH_EXTERNAL_H.patch \
25 " 27 file://0007-Delete-qlonglong-and-qulonglong.patch \
28 file://0008-Replace-pthread_yield-with-sched_yield.patch \
29 file://run-ptest \
30"
26 31
27DEPENDS += "qtbase-native" 32inherit ptest
28 33
29# LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp 34# LGPL-3.0 is used only in src/plugins/platforms/android/extract.cpp
30 35
31# for syncqt 36# for syncqt
32RDEPENDS_${PN}-tools += "perl" 37RDEPENDS_${PN}-tools += "perl"
33 38
39# workaround for gold bug:
40# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842304
41# https://sourceware.org/bugzilla/show_bug.cgi?id=21712
42# it's triggered only in combination of gold and security_flags.inc,
43# because security_flags.inc now enable pie by default.
44# Adding -no-pie or changing -fuse-ld=gold to -fuse-ld=bfd
45# works around this issue, will use -fuse-ld=bfd as it's considered
46# binutils bug.
47# OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype $ i586-oe-linux-g++ -m32 -march=i586 --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype .obj/tst_qmetatype.o -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib -lQt5Test -lQt5Core -lpthread
48# .obj/tst_qmetatype.o(.qtversion+0x0): error: unexpected reloc 3 against global symbol qt_version_tag without base register in object file when generating a position-independent output file
49# collect2: error: ld returned 1 exit status
50#
51# with -no-pie:
52# OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype $ i586-oe-linux-g++ -no-pie -m32 -march=i586 --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -fuse-ld=gold -Wl,--enable-new-dtags -o tst_qmetatype .obj/tst_qmetatype.o -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib -lQt5Test -lQt5Core -lpthread
53#
54# with -fuse-ld=gold replaced with -fuse-ld=bfd:
55# OE @ ~/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/tests/auto/corelib/kernel/qmetatype $ i586-oe-linux-g++ -m32 -march=i586 --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed --sysroot=/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/recipe-sysroot -Wl,-O1 -fuse-ld=bfd -Wl,--enable-new-dtags -o tst_qmetatype .obj/tst_qmetatype.o -L/OE/build/oe-core/tmp-glibc/work/i586-oe-linux/qtbase/5.9.0+gitAUTOINC+f6b36eaafe-r0/build/lib -lQt5Test -lQt5Core -lpthread
56#
57# http://errors.yoctoproject.org/Errors/Details/150329/
58QT_CONFIG_FLAGS_GOLD_x86 = "-no-use-gold-linker"
59LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
60
34# separate some parts of PACKAGECONFIG which are often changed 61# separate some parts of PACKAGECONFIG which are often changed
35PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}" 62PACKAGECONFIG_GL ?= "${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)}"
36PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}" 63PACKAGECONFIG_FB ?= "${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)}"
@@ -42,7 +69,7 @@ PACKAGECONFIG_DISTRO ?= ""
42PACKAGECONFIG_RELEASE ?= "release" 69PACKAGECONFIG_RELEASE ?= "release"
43# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency 70# This is in qt5.inc, because qtwebkit-examples are using it to enable ca-certificates dependency
44# PACKAGECONFIG_OPENSSL ?= "openssl" 71# PACKAGECONFIG_OPENSSL ?= "openssl"
45PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype" 72PACKAGECONFIG_DEFAULT ?= "dbus udev evdev widgets tools libs freetype tests"
46 73
47PACKAGECONFIG ?= " \ 74PACKAGECONFIG ?= " \
48 ${PACKAGECONFIG_RELEASE} \ 75 ${PACKAGECONFIG_RELEASE} \
@@ -118,8 +145,9 @@ PACKAGECONFIG[libproxy] = "-libproxy,-no-libproxy,libproxy"
118PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput" 145PACKAGECONFIG[libinput] = "-libinput,-no-libinput,libinput"
119PACKAGECONFIG[journald] = "-journald,-no-journald,systemd" 146PACKAGECONFIG[journald] = "-journald,-no-journald,systemd"
120 147
148QT_CONFIG_FLAGS_GOLD = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', '-no-use-gold-linker', d)}"
121QT_CONFIG_FLAGS += " \ 149QT_CONFIG_FLAGS += " \
122 ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', '-use-gold-linker', '-no-use-gold-linker', d)} \ 150 ${QT_CONFIG_FLAGS_GOLD} \
123 -shared \ 151 -shared \
124 -silent \ 152 -silent \
125 -no-pch \ 153 -no-pch \
@@ -130,7 +158,7 @@ QT_CONFIG_FLAGS += " \
130 158
131# for qtbase configuration we need default settings 159# for qtbase configuration we need default settings
132# since we cannot set empty set filename to a not existent file 160# since we cannot set empty set filename to a not existent file
133export OE_QMAKE_QTCONF_PATH = "foodummy" 161deltask generate_qt_config_file
134 162
135do_configure() { 163do_configure() {
136 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration 164 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" during configuration
@@ -164,12 +192,23 @@ do_configure() {
164 ${QT_CONFIG_FLAGS} 192 ${QT_CONFIG_FLAGS}
165} 193}
166 194
195fakeroot do_install_ptest() {
196 mkdir -p ${D}${PTEST_PATH}
197 t=${D}${PTEST_PATH}
198 for var in ` find ${B}/tests/auto/ -name tst_*`; do
199 if [ not ` echo ${var##*/} | grep '\.'` ]; then
200 echo ${var##*/} >> ${t}/tst_list
201 install -m 0644 ${var} ${t}
202 fi
203 done
204}
205
167do_install_append() { 206do_install_append() {
168 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory" 207 # Avoid qmake error "Cannot read [...]/usr/lib/qt5/mkspecs/oe-device-extra.pri: No such file or directory"
169 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri 208 touch ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/oe-device-extra.pri
170 209
171 # Replace host paths with qmake built-in properties 210 # Replace host paths with qmake built-in properties
172 sed -i -e 's|${STAGING_DIR_NATIVE}${prefix_native}|$$[QT_HOST_PREFIX/get]|g' \ 211 sed -i -e 's|${STAGING_DIR_NATIVE}|$$[QT_HOST_PREFIX/get]|g' \
173 -e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' \ 212 -e 's|${STAGING_DIR_HOST}|$$[QT_SYSROOT]|g' \
174 ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/*.pri 213 ${D}/${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/*.pri
175 214
diff --git a/recipes-qt/qt5/qtcanvas3d_git.bb b/recipes-qt/qt5/qtcanvas3d_git.bb
index 733608f3..55104c4c 100644
--- a/recipes-qt/qt5/qtcanvas3d_git.bb
+++ b/recipes-qt/qt5/qtcanvas3d_git.bb
@@ -1,7 +1,7 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "LGPL-3.0 | GPL-3.0" 4LICENSE = "LGPL-3.0 | GPL-3.0 | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \ 6 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
7 file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \ 7 file://LICENSE.GPLv3;md5=88e2b9117e6be406b5ed6ee4ca99a705 \
diff --git a/recipes-qt/qt5/qtcharts_git.bb b/recipes-qt/qt5/qtcharts_git.bb
index 69c63e2c..e575bc6c 100644
--- a/recipes-qt/qt5/qtcharts_git.bb
+++ b/recipes-qt/qt5/qtcharts_git.bb
@@ -1,7 +1,7 @@
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"
diff --git a/recipes-qt/qt5/qtdatavis3d_git.bb b/recipes-qt/qt5/qtdatavis3d_git.bb
index 555467f3..d27f5a1b 100644
--- a/recipes-qt/qt5/qtdatavis3d_git.bb
+++ b/recipes-qt/qt5/qtdatavis3d_git.bb
@@ -1,7 +1,7 @@
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"
diff --git a/recipes-qt/qt5/qtdeclarative/run-ptest b/recipes-qt/qt5/qtdeclarative/run-ptest
new file mode 100644
index 00000000..6c3f522b
--- /dev/null
+++ b/recipes-qt/qt5/qtdeclarative/run-ptest
@@ -0,0 +1,5 @@
1#!/bin/sh
2
3for x in ` awk '{print $1}' tst_list `;do
4 ./${x};
5done
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb
index 8830ec50..afc38651 100644
--- a/recipes-qt/qt5/qtdeclarative_git.bb
+++ b/recipes-qt/qt5/qtdeclarative_git.bb
@@ -1,5 +1,6 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3require qt5-ptest.inc
3 4
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 5LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 6LIC_FILES_CHKSUM = " \
diff --git a/recipes-qt/qt5/qtenginio_git.bb b/recipes-qt/qt5/qtenginio_git.bb
index 8b4fb714..1fa8e826 100644
--- a/recipes-qt/qt5/qtenginio_git.bb
+++ b/recipes-qt/qt5/qtenginio_git.bb
@@ -14,4 +14,3 @@ DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
14 14
15QT_MODULE_BRANCH = "dev" 15QT_MODULE_BRANCH = "dev"
16SRCREV = "0555cf73c8b5abd41d8a4ff02457315c9e7c667d" 16SRCREV = "0555cf73c8b5abd41d8a4ff02457315c9e7c667d"
17
diff --git a/recipes-qt/qt5/qtgraphicaleffects_git.bb b/recipes-qt/qt5/qtgraphicaleffects_git.bb
index d48e1134..20b30c1c 100644
--- a/recipes-qt/qt5/qtgraphicaleffects_git.bb
+++ b/recipes-qt/qt5/qtgraphicaleffects_git.bb
@@ -3,15 +3,19 @@ require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ 6 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
10 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 10 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
11" 11"
12 12
13DEPENDS += "qtdeclarative" 13DEPENDS += "qtdeclarative"
14 14
15RDEPENDS_${PN}-dev = "" 15RDEPENDS_${PN}-dev = ""
16 16
17# The same issue as in qtbase:
18# http://errors.yoctoproject.org/Errors/Build/44912/
19LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
20
17SRCREV = "045174c411f89863165610c1f6135ef4bd3d0889" 21SRCREV = "045174c411f89863165610c1f6135ef4bd3d0889"
diff --git a/recipes-qt/qt5/qtlocation_git.bb b/recipes-qt/qt5/qtlocation_git.bb
index 0755c60e..93b37f18 100644
--- a/recipes-qt/qt5/qtlocation_git.bb
+++ b/recipes-qt/qt5/qtlocation_git.bb
@@ -1,7 +1,7 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0" 4LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0) | GPL-2.0 | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \ 6 file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
7 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \ 7 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
@@ -21,9 +21,13 @@ PACKAGECONFIG[geoservices_mapboxgl] = "-feature-geoservices_mapboxgl,-no-feature
21 21
22EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}" 22EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
23 23
24# The same issue as in qtbase:
25# http://errors.yoctoproject.org/Errors/Details/152640/
26LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
27
24SRC_URI += " \ 28SRC_URI += " \
25 ${QT_GIT}/qtlocation-mapboxgl.git;name=qtlocation-mapboxgl;branch=upstream/qt-staging;protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/mapbox-gl-native \ 29 ${QT_GIT}/qtlocation-mapboxgl.git;name=qtlocation-mapboxgl;branch=upstream/qt-staging;protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty/mapbox-gl-native \
26 " 30"
27 31
28SRCREV_qtlocation = "2b230b0a10d898979e9d5193f4da2e408b397fe3" 32SRCREV_qtlocation = "2b230b0a10d898979e9d5193f4da2e408b397fe3"
29SRCREV_qtlocation-mapboxgl = "1c633072fcea7ad153ab6f8ec40dd72d83541ead" 33SRCREV_qtlocation-mapboxgl = "1c633072fcea7ad153ab6f8ec40dd72d83541ead"
diff --git a/recipes-qt/qt5/qtmultimedia_git.bb b/recipes-qt/qt5/qtmultimedia_git.bb
index deefcaa6..e7d110c1 100644
--- a/recipes-qt/qt5/qtmultimedia_git.bb
+++ b/recipes-qt/qt5/qtmultimedia_git.bb
@@ -25,8 +25,14 @@ EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
25# Disable GStreamer if completely disabled 25# Disable GStreamer if completely disabled
26EXTRA_QMAKEVARS_CONFIGURE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', '-no-gstreamer', d)}" 26EXTRA_QMAKEVARS_CONFIGURE += "${@bb.utils.contains_any('PACKAGECONFIG', 'gstreamer gstreamer010', '', '-no-gstreamer', d)}"
27 27
28# Patches from https://github.com/meta-qt5/qtmultimedia/commits/b5.9
29# 5.9.meta-qt5.2
28SRC_URI += "\ 30SRC_URI += "\
29 file://0001-qtmultimedia-fix-a-conflicting-declaration.patch \ 31 file://0001-qtmultimedia-fix-a-conflicting-declaration.patch \
30" 32"
31 33
34# The same issue as in qtbase:
35# http://errors.yoctoproject.org/Errors/Build/44914/
36LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
37
32SRCREV = "951393508a5068bd999c3225158cbb06872d881c" 38SRCREV = "951393508a5068bd999c3225158cbb06872d881c"
diff --git a/recipes-qt/qt5/qtquick1/run-ptest b/recipes-qt/qt5/qtquick1/run-ptest
new file mode 100644
index 00000000..044f834d
--- /dev/null
+++ b/recipes-qt/qt5/qtquick1/run-ptest
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3for x in ` awk '{print $1}' tst_list `;do
4 ./${x};
5done
6
diff --git a/recipes-qt/qt5/qtquick1_git.bb b/recipes-qt/qt5/qtquick1_git.bb
index b8f09c95..9aa358b5 100644
--- a/recipes-qt/qt5/qtquick1_git.bb
+++ b/recipes-qt/qt5/qtquick1_git.bb
@@ -1,5 +1,6 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3require qt5-ptest.inc
3 4
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 5LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 6LIC_FILES_CHKSUM = " \
@@ -23,4 +24,8 @@ do_configure_prepend() {
23} 24}
24 25
25QT_MODULE_BRANCH = "dev" 26QT_MODULE_BRANCH = "dev"
27
28# one commit behind:
29# 8a7b80eb Use QRandomGenerator instead of q?rand
30# because QRandomGenerator is only since Qt 5.10
26SRCREV = "9bf0edd9bd46ecb900bcdc3349d14869b87ab7de" 31SRCREV = "9bf0edd9bd46ecb900bcdc3349d14869b87ab7de"
diff --git a/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch b/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch
index 85fcc158..2e644803 100644
--- a/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch
+++ b/recipes-qt/qt5/qtquickcontrols/0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch
@@ -1,4 +1,4 @@
1From fca6212d5ebc5851f28e820e4ff0ebe04a9d44d7 Mon Sep 17 00:00:00 2001 1From 3248edbde8859f62f453215876fbcb89dd788513 Mon Sep 17 00:00:00 2001
2From: Denys Dmytriyenko <denys@ti.com> 2From: Denys Dmytriyenko <denys@ti.com>
3Date: Thu, 31 Mar 2016 19:57:01 -0400 3Date: Thu, 31 Mar 2016 19:57:01 -0400
4Subject: [PATCH] texteditor: fix invalid use of incomplete type 'class QDebug' 4Subject: [PATCH] texteditor: fix invalid use of incomplete type 'class QDebug'
@@ -11,7 +11,7 @@ Signed-off-by: Denys Dmytriyenko <denys@ti.com>
11 1 file changed, 1 insertion(+) 11 1 file changed, 1 insertion(+)
12 12
13diff --git a/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp b/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp 13diff --git a/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp b/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp
14index bdecf5b..811a761 100644 14index 69da88f0..9039191e 100644
15--- a/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp 15--- a/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp
16+++ b/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp 16+++ b/examples/quickcontrols/controls/texteditor/src/documenthandler.cpp
17@@ -54,6 +54,7 @@ 17@@ -54,6 +54,7 @@
diff --git a/recipes-qt/qt5/qtquickcontrols2_git.bb b/recipes-qt/qt5/qtquickcontrols2_git.bb
index ac93db9a..2ce8b250 100644
--- a/recipes-qt/qt5/qtquickcontrols2_git.bb
+++ b/recipes-qt/qt5/qtquickcontrols2_git.bb
@@ -1,7 +1,7 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & LGPL-3.0 | GPL-3.0" 4LICENSE = "GFDL-1.3 & BSD & LGPL-3.0 | GPL-3.0 | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 6 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
7 file://LICENSE.LGPLv3;md5=382747d0119037529ec2b98b24038eb0 \ 7 file://LICENSE.LGPLv3;md5=382747d0119037529ec2b98b24038eb0 \
diff --git a/recipes-qt/qt5/qtquickcontrols_git.bb b/recipes-qt/qt5/qtquickcontrols_git.bb
index b9499513..7bec39ac 100644
--- a/recipes-qt/qt5/qtquickcontrols_git.bb
+++ b/recipes-qt/qt5/qtquickcontrols_git.bb
@@ -20,6 +20,8 @@ FILES_${PN}-qmlplugins += " \
20 ${OE_QMAKE_PATH_QML}/QtQuick/Dialogs/qml/icons.ttf \ 20 ${OE_QMAKE_PATH_QML}/QtQuick/Dialogs/qml/icons.ttf \
21" 21"
22 22
23# Patches from https://github.com/meta-qt5/qtquickcontrols/commits/b5.9
24# 5.9.meta-qt5.2
23SRC_URI += " \ 25SRC_URI += " \
24 file://0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch \ 26 file://0001-texteditor-fix-invalid-use-of-incomplete-type-class-.patch \
25" 27"
diff --git a/recipes-qt/qt5/qtremoteobjects_git.bb b/recipes-qt/qt5/qtremoteobjects_git.bb
index d430a359..7a539685 100644
--- a/recipes-qt/qt5/qtremoteobjects_git.bb
+++ b/recipes-qt/qt5/qtremoteobjects_git.bb
@@ -11,6 +11,8 @@ require qt5-git.inc
11 11
12DEPENDS += "qtbase qtdeclarative qtremoteobjects-native" 12DEPENDS += "qtbase qtdeclarative qtremoteobjects-native"
13 13
14# Patches from https://github.com/meta-qt5/qtremoteobjects/commits/b5.9
15# 5.9.meta-qt5.2
14SRC_URI += " \ 16SRC_URI += " \
15 file://0001-Allow-a-tools-only-build.patch \ 17 file://0001-Allow-a-tools-only-build.patch \
16" 18"
diff --git a/recipes-qt/qt5/qtscript_git.bb b/recipes-qt/qt5/qtscript_git.bb
index 668a2f30..b0bddc78 100644
--- a/recipes-qt/qt5/qtscript_git.bb
+++ b/recipes-qt/qt5/qtscript_git.bb
@@ -25,4 +25,8 @@ ARM_INSTRUCTION_SET_armv5 = "arm"
25 25
26DEPENDS += "qtbase" 26DEPENDS += "qtbase"
27 27
28# The same issue as in qtbase:
29# http://errors.yoctoproject.org/Errors/Build/44915/
30LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
31
28SRCREV = "3d44bf7ce2a45d461f1d74a3f1dbdff313845898" 32SRCREV = "3d44bf7ce2a45d461f1d74a3f1dbdff313845898"
diff --git a/recipes-qt/qt5/qtscxml/0001-Use-external-host-bin-path-for-cmake-file.patch b/recipes-qt/qt5/qtscxml/0001-Use-external-host-bin-path-for-cmake-file.patch
index 0b90a66b..dc988fa6 100644
--- a/recipes-qt/qt5/qtscxml/0001-Use-external-host-bin-path-for-cmake-file.patch
+++ b/recipes-qt/qt5/qtscxml/0001-Use-external-host-bin-path-for-cmake-file.patch
@@ -1,4 +1,4 @@
1From 210049f0e53f7fb8e5c44325b13947add9618f89 Mon Sep 17 00:00:00 2001 1From 89c9f60679b21629412503a17358426bf211a81b Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io> 2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Tue, 10 Jan 2017 15:28:26 +0200 3Date: Tue, 10 Jan 2017 15:28:26 +0200
4Subject: [PATCH] Use external host bin path for cmake file 4Subject: [PATCH] Use external host bin path for cmake file
@@ -14,7 +14,7 @@ Change-Id: Idb814be705e9cbaad7f1e68b5d7cdb79c4b65008
14 1 file changed, 1 insertion(+), 1 deletion(-) 14 1 file changed, 1 insertion(+), 1 deletion(-)
15 15
16diff --git a/src/scxml/Qt5ScxmlConfigExtras.cmake.in b/src/scxml/Qt5ScxmlConfigExtras.cmake.in 16diff --git a/src/scxml/Qt5ScxmlConfigExtras.cmake.in b/src/scxml/Qt5ScxmlConfigExtras.cmake.in
17index edb320a..c2f8be8 100644 17index edb320a..ce7f2df 100644
18--- a/src/scxml/Qt5ScxmlConfigExtras.cmake.in 18--- a/src/scxml/Qt5ScxmlConfigExtras.cmake.in
19+++ b/src/scxml/Qt5ScxmlConfigExtras.cmake.in 19+++ b/src/scxml/Qt5ScxmlConfigExtras.cmake.in
20@@ -40,7 +40,7 @@ if (NOT TARGET Qt5::qscxmlc) 20@@ -40,7 +40,7 @@ if (NOT TARGET Qt5::qscxmlc)
diff --git a/recipes-qt/qt5/qtscxml_git.bb b/recipes-qt/qt5/qtscxml_git.bb
index 301ed0ab..8a190417 100644
--- a/recipes-qt/qt5/qtscxml_git.bb
+++ b/recipes-qt/qt5/qtscxml_git.bb
@@ -12,6 +12,8 @@ DEPENDS += "qtbase qtdeclarative qtxmlpatterns qtscxml-native"
12 12
13SRCREV = "3ba4176568867cb146c2b758cd39461367ad22d1" 13SRCREV = "3ba4176568867cb146c2b758cd39461367ad22d1"
14 14
15# Patches from https://github.com/meta-qt5/qtscxml/commits/b5.9
16# 5.9.meta-qt5.2
15SRC_URI += "file://0001-Use-external-host-bin-path-for-cmake-file.patch" 17SRC_URI += "file://0001-Use-external-host-bin-path-for-cmake-file.patch"
16 18
17do_install_append_class-nativesdk() { 19do_install_append_class-nativesdk() {
diff --git a/recipes-qt/qt5/qtsensors_git.bb b/recipes-qt/qt5/qtsensors_git.bb
index fb4c496f..4010a518 100644
--- a/recipes-qt/qt5/qtsensors_git.bb
+++ b/recipes-qt/qt5/qtsensors_git.bb
@@ -3,11 +3,11 @@ require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ 6 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
10 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 10 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
11" 11"
12 12
13DEPENDS += "qtbase qtdeclarative" 13DEPENDS += "qtbase qtdeclarative"
diff --git a/recipes-qt/qt5/qtserialbus_git.bb b/recipes-qt/qt5/qtserialbus_git.bb
index 114d6d5a..0a28a960 100644
--- a/recipes-qt/qt5/qtserialbus_git.bb
+++ b/recipes-qt/qt5/qtserialbus_git.bb
@@ -1,7 +1,7 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & (LGPL-3.0 | GPL-2.0+)" 4LICENSE = "GFDL-1.3 & (LGPL-3.0 | GPL-2.0+) | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \ 6 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
7 file://LICENSE.GPLv2;md5=c96076271561b0e3785dad260634eaa8 \ 7 file://LICENSE.GPLv2;md5=c96076271561b0e3785dad260634eaa8 \
diff --git a/recipes-qt/qt5/qtserialport_git.bb b/recipes-qt/qt5/qtserialport_git.bb
index b0efbd68..113f1e9c 100644
--- a/recipes-qt/qt5/qtserialport_git.bb
+++ b/recipes-qt/qt5/qtserialport_git.bb
@@ -3,7 +3,7 @@ require qt5-git.inc
3 3
4# text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what 4# text of LGPL_EXCEPTION.txt and LICENSE.FDL is slightly different than what
5# other qt* components use :/ 5# other qt* components use :/
6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0)" 6LICENSE = "GFDL-1.3 & BSD & (LGPL-2.1 & The-Qt-Company-Qt-LGPL-Exception-1.1 | LGPL-3.0) | The-Qt-Company-Commercial"
7LIC_FILES_CHKSUM = " \ 7LIC_FILES_CHKSUM = " \
8 file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \ 8 file://LICENSE.LGPLv21;md5=4bfd28363f541b10d9f024181b8df516 \
9 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \ 9 file://LICENSE.LGPLv3;md5=e0459b45c5c4840b353141a8bbed91f0 \
diff --git a/recipes-qt/qt5/qtsystems_git.bb b/recipes-qt/qt5/qtsystems_git.bb
index 7c155a28..911a7098 100644
--- a/recipes-qt/qt5/qtsystems_git.bb
+++ b/recipes-qt/qt5/qtsystems_git.bb
@@ -30,4 +30,4 @@ do_install_append() {
30 30
31QT_MODULE_BRANCH = "dev" 31QT_MODULE_BRANCH = "dev"
32 32
33SRCREV = "434af789f0d56ca7a521ca2d9ec8cf3b1057fd37" 33SRCREV = "f364358a817ba57fa5aa9c67e731241249e704f8"
diff --git a/recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch b/recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch
index 88c39c74..7549ce9c 100644
--- a/recipes-qt/qt5/qttools/0003-add-noqtwebkit-configuration.patch
+++ b/recipes-qt/qt5/qttools/0001-add-noqtwebkit-configuration.patch
@@ -1,4 +1,4 @@
1From a798e469e69e31248610a3b5f29c63c5d12cda26 Mon Sep 17 00:00:00 2001 1From 0098107f710e363d41b4913758302b43adccf2bd Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com> 2From: =?UTF-8?q?Andreas=20M=C3=BCller?= <schnitzeltony@googlemail.com>
3Date: Wed, 4 Jun 2014 11:28:16 +0200 3Date: Wed, 4 Jun 2014 11:28:16 +0200
4Subject: [PATCH] add noqtwebkit configuration 4Subject: [PATCH] add noqtwebkit configuration
@@ -16,7 +16,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
16 2 files changed, 3 insertions(+), 3 deletions(-) 16 2 files changed, 3 insertions(+), 3 deletions(-)
17 17
18diff --git a/src/assistant/assistant/assistant.pro b/src/assistant/assistant/assistant.pro 18diff --git a/src/assistant/assistant/assistant.pro b/src/assistant/assistant/assistant.pro
19index ef5c595..9c2dc1c 100644 19index 82f55092..ef07ee03 100644
20--- a/src/assistant/assistant/assistant.pro 20--- a/src/assistant/assistant/assistant.pro
21+++ b/src/assistant/assistant/assistant.pro 21+++ b/src/assistant/assistant/assistant.pro
22@@ -1,4 +1,4 @@ 22@@ -1,4 +1,4 @@
@@ -35,7 +35,7 @@ index ef5c595..9c2dc1c 100644
35 QT += webkitwidgets 35 QT += webkitwidgets
36 SOURCES += helpviewer_qwv.cpp 36 SOURCES += helpviewer_qwv.cpp
37diff --git a/src/designer/src/plugins/plugins.pro b/src/designer/src/plugins/plugins.pro 37diff --git a/src/designer/src/plugins/plugins.pro b/src/designer/src/plugins/plugins.pro
38index 500a153..b60fa2d 100644 38index 500a1534..b60fa2d9 100644
39--- a/src/designer/src/plugins/plugins.pro 39--- a/src/designer/src/plugins/plugins.pro
40+++ b/src/designer/src/plugins/plugins.pro 40+++ b/src/designer/src/plugins/plugins.pro
41@@ -1,6 +1,6 @@ 41@@ -1,6 +1,6 @@
diff --git a/recipes-qt/qt5/qttools/0004-linguist-tools-cmake-allow-overriding-the-location-f.patch b/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch
index 1a201de9..80f2ae73 100644
--- a/recipes-qt/qt5/qttools/0004-linguist-tools-cmake-allow-overriding-the-location-f.patch
+++ b/recipes-qt/qt5/qttools/0002-linguist-tools-cmake-allow-overriding-the-location-f.patch
@@ -1,4 +1,4 @@
1From f805a2bf4a0d35a01726d214279ba1caa81b278f Mon Sep 17 00:00:00 2001 1From 105277d4878ee1627bfb3be3d10833020e6923fc Mon Sep 17 00:00:00 2001
2From: Cody P Schafer <dev@codyps.com> 2From: Cody P Schafer <dev@codyps.com>
3Date: Thu, 9 Jul 2015 11:28:19 -0400 3Date: Thu, 9 Jul 2015 11:28:19 -0400
4Subject: [PATCH] linguist-tools cmake: allow overriding the location for 4Subject: [PATCH] linguist-tools cmake: allow overriding the location for
@@ -9,7 +9,7 @@ Subject: [PATCH] linguist-tools cmake: allow overriding the location for
9 1 file changed, 3 insertions(+), 12 deletions(-) 9 1 file changed, 3 insertions(+), 12 deletions(-)
10 10
11diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in 11diff --git a/src/linguist/Qt5LinguistToolsConfig.cmake.in b/src/linguist/Qt5LinguistToolsConfig.cmake.in
12index 4318b16..2e3b70f 100644 12index 4318b16f..2e3b70fa 100644
13--- a/src/linguist/Qt5LinguistToolsConfig.cmake.in 13--- a/src/linguist/Qt5LinguistToolsConfig.cmake.in
14+++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in 14+++ b/src/linguist/Qt5LinguistToolsConfig.cmake.in
15@@ -26,6 +26,9 @@ get_filename_component(_qt5_linguisttools_install_prefix \"${CMAKE_CURRENT_LIST_ 15@@ -26,6 +26,9 @@ get_filename_component(_qt5_linguisttools_install_prefix \"${CMAKE_CURRENT_LIST_
diff --git a/recipes-qt/qt5/qttools_git.bb b/recipes-qt/qt5/qttools_git.bb
index 920341d1..e4ba6eda 100644
--- a/recipes-qt/qt5/qttools_git.bb
+++ b/recipes-qt/qt5/qttools_git.bb
@@ -14,9 +14,12 @@ inherit ptest
14 14
15DEPENDS += "qtbase qtdeclarative qtxmlpatterns" 15DEPENDS += "qtbase qtdeclarative qtxmlpatterns"
16 16
17# Patches from https://github.com/meta-qt5/qttools/commits/b5.9
18# 5.9.meta-qt5.2
17SRC_URI += " \ 19SRC_URI += " \
18 file://run-ptest \ 20 file://run-ptest \
19 file://0004-linguist-tools-cmake-allow-overriding-the-location-f.patch \ 21 file://0001-add-noqtwebkit-configuration.patch \
22 file://0002-linguist-tools-cmake-allow-overriding-the-location-f.patch \
20" 23"
21 24
22FILES_${PN}-tools += "${datadir}${QT_DIR_NAME}/phrasebooks" 25FILES_${PN}-tools += "${datadir}${QT_DIR_NAME}/phrasebooks"
diff --git a/recipes-qt/qt5/qtvirtualkeyboard/0001-include-sys-time.h-for-timeval.patch b/recipes-qt/qt5/qtvirtualkeyboard/0001-include-sys-time.h-for-timeval.patch
new file mode 100644
index 00000000..c74854f3
--- /dev/null
+++ b/recipes-qt/qt5/qtvirtualkeyboard/0001-include-sys-time.h-for-timeval.patch
@@ -0,0 +1,25 @@
1From 2e76f24615766593ad6eb182627fa9d0bdba3c2d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 12 Jul 2017 23:59:52 -0700
4Subject: [PATCH] include sys/time.h for timeval
5
6Musl exposes this issue since its not indirectly
7including sys/time.h like glibc
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 src/virtualkeyboard/3rdparty/pinyin/include/userdict.h | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h b/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
15index 1b9673f..924be7b 100644
16--- a/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
17+++ b/src/virtualkeyboard/3rdparty/pinyin/include/userdict.h
18@@ -24,6 +24,7 @@
19 // Debug performance for operations
20 // #define ___DEBUG_PERF___
21
22+#include <sys/time.h>
23 #ifdef _WIN32
24 #include <winsock.h> // timeval
25 #else
diff --git a/recipes-qt/qt5/qtvirtualkeyboard_git.bb b/recipes-qt/qt5/qtvirtualkeyboard_git.bb
index 243646ac..ce3908d4 100644
--- a/recipes-qt/qt5/qtvirtualkeyboard_git.bb
+++ b/recipes-qt/qt5/qtvirtualkeyboard_git.bb
@@ -6,6 +6,10 @@ LIC_FILES_CHKSUM = " \
6 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 6 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
7" 7"
8 8
9# Patches from https://github.com/meta-qt5/qtvirtualkeyboard/commits/b5.9
10# 5.9.meta-qt5.2
11SRC_URI += "file://0001-include-sys-time.h-for-timeval.patch"
12
9# To enabled Nuance T9 Write support, you need to provide the licensed components 13# 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. 14# and enable "t9write" in PACKAGECONFIG. This can be done in a separate .bbappend file.
11# for example: 15# for example:
diff --git a/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch b/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
index 555bb28f..11acd5fd 100644
--- a/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
+++ b/recipes-qt/qt5/qtwayland/0001-fix-build-without-xkbcommon-evdev.patch
@@ -1,4 +1,4 @@
1From 2b72ad7955fe19abb4a0b4ebb6bc7aa498e454bc Mon Sep 17 00:00:00 2001 1From c4fae91b3d2b2b0f64e3fafac456a6a917c69e88 Mon Sep 17 00:00:00 2001
2From: Raphael Freudiger <laser_b@gmx.ch> 2From: Raphael Freudiger <laser_b@gmx.ch>
3Date: Tue, 10 Jan 2017 15:49:55 +0100 3Date: Tue, 10 Jan 2017 15:49:55 +0100
4Subject: [PATCH] fix build without xkbcommon-evdev 4Subject: [PATCH] fix build without xkbcommon-evdev
@@ -16,17 +16,17 @@ Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
16 3 files changed, 11 insertions(+), 6 deletions(-) 16 3 files changed, 11 insertions(+), 6 deletions(-)
17 17
18diff --git a/src/client/client.pro b/src/client/client.pro 18diff --git a/src/client/client.pro b/src/client/client.pro
19index 7482cfd..cb3578c 100644 19index eae7ad52..0bb7b188 100644
20--- a/src/client/client.pro 20--- a/src/client/client.pro
21+++ b/src/client/client.pro 21+++ b/src/client/client.pro
22@@ -120,3 +120,5 @@ MODULE_PLUGIN_TYPES = \ 22@@ -147,3 +147,5 @@ MODULE_PLUGIN_TYPES = \
23 wayland-decoration-client \ 23 wayland-decoration-client \
24 wayland-shell-integration 24 wayland-shell-integration
25 load(qt_module) 25 load(qt_module)
26+ 26+
27+LIBS += -lxkbcommon 27+LIBS += -lxkbcommon
28diff --git a/src/compositor/compositor.pro b/src/compositor/compositor.pro 28diff --git a/src/compositor/compositor.pro b/src/compositor/compositor.pro
29index dc9000d..4eebfd6 100644 29index dc9000d9..4eebfd64 100644
30--- a/src/compositor/compositor.pro 30--- a/src/compositor/compositor.pro
31+++ b/src/compositor/compositor.pro 31+++ b/src/compositor/compositor.pro
32@@ -32,3 +32,5 @@ include ($$PWD/extensions/extensions.pri) 32@@ -32,3 +32,5 @@ include ($$PWD/extensions/extensions.pri)
@@ -36,10 +36,10 @@ index dc9000d..4eebfd6 100644
36+ 36+
37+LIBS += -lxkbcommon 37+LIBS += -lxkbcommon
38diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp 38diff --git a/src/compositor/compositor_api/qwaylandkeyboard.cpp b/src/compositor/compositor_api/qwaylandkeyboard.cpp
39index 55381b4..5c054c6 100644 39index c30f7b18..e6f1a0b3 100644
40--- a/src/compositor/compositor_api/qwaylandkeyboard.cpp 40--- a/src/compositor/compositor_api/qwaylandkeyboard.cpp
41+++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp 41+++ b/src/compositor/compositor_api/qwaylandkeyboard.cpp
42@@ -338,12 +338,6 @@ void QWaylandKeyboardPrivate::createXKBState(xkb_keymap *keymap) 42@@ -349,12 +349,6 @@ void QWaylandKeyboardPrivate::createXKBState(xkb_keymap *keymap)
43 xkb_state = xkb_state_new(keymap); 43 xkb_state = xkb_state_new(keymap);
44 } 44 }
45 45
@@ -52,7 +52,7 @@ index 55381b4..5c054c6 100644
52 52
53 void QWaylandKeyboardPrivate::createXKBKeymap() 53 void QWaylandKeyboardPrivate::createXKBKeymap()
54 { 54 {
55@@ -373,6 +367,13 @@ void QWaylandKeyboardPrivate::createXKBKeymap() 55@@ -384,6 +378,13 @@ void QWaylandKeyboardPrivate::createXKBKeymap()
56 } 56 }
57 #endif 57 #endif
58 58
@@ -66,6 +66,3 @@ index 55381b4..5c054c6 100644
66 void QWaylandKeyboardPrivate::sendRepeatInfo() 66 void QWaylandKeyboardPrivate::sendRepeatInfo()
67 { 67 {
68 Q_FOREACH (Resource *resource, resourceMap()) { 68 Q_FOREACH (Resource *resource, resourceMap()) {
69--
702.9.3
71
diff --git a/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch b/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
deleted file mode 100644
index 29c9180c..00000000
--- a/recipes-qt/qt5/qtwayland/0002-Fix-initial-window-property-values-being-propagated.patch
+++ /dev/null
@@ -1,35 +0,0 @@
1From 3d30fd8df9b55449844207295ad3d51cc8bb44b1 Mon Sep 17 00:00:00 2001
2From: Robert Griebl <robert.griebl@pelagicore.com>
3Date: Thu, 15 Dec 2016 17:43:00 +0100
4Subject: [PATCH 2/2] Fix initial window property values being propagated
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9This was broken since the the shell-surface refactoring.
10
11Change-Id: I130b7396e85c570a9d11d609af6b3016e3f706f0
12Reviewed-by: Dominik Holland <dominik.holland@pelagicore.com>
13Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
14Signed-off-by: Gordan Markuš <gordan.markus@pelagicore.com>
15---
16 src/client/qwaylandwindow.cpp | 3 +++
17 1 file changed, 3 insertions(+)
18
19diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
20index c8be9c1..b6f16f0 100644
21--- a/src/client/qwaylandwindow.cpp
22+++ b/src/client/qwaylandwindow.cpp
23@@ -176,6 +176,9 @@ void QWaylandWindow::initWindow()
24 mShellSurface->setAppId(appId);
25 }
26 }
27+ // the user may have already set some window properties, so make sure to send them out
28+ for (auto it = m_properties.cbegin(); it != m_properties.cend(); ++it)
29+ mShellSurface->sendProperty(it.key(), it.value());
30 }
31
32 // Enable high-dpi rendering. Scale() returns the screen scale factor and will
33--
342.9.3
35
diff --git a/recipes-qt/qt5/qtwayland_git.bb b/recipes-qt/qt5/qtwayland_git.bb
index ea2a8a53..25191a02 100644
--- a/recipes-qt/qt5/qtwayland_git.bb
+++ b/recipes-qt/qt5/qtwayland_git.bb
@@ -39,10 +39,15 @@ EXTRA_QMAKEVARS_CONFIGURE += "${PACKAGECONFIG_CONFARGS}"
39 39
40SRCREV = "04f6ff77ef0c8858629766e191ecc3d4ef056848" 40SRCREV = "04f6ff77ef0c8858629766e191ecc3d4ef056848"
41 41
42# Patches from https://github.com/meta-qt5/qtwayland/commits/b5.9
43# 5.9.meta-qt5.2
42# From https://bugreports.qt.io/browse/QTBUG-57767 44# From https://bugreports.qt.io/browse/QTBUG-57767
43SRC_URI += " \ 45SRC_URI += " \
44 file://0001-fix-build-without-xkbcommon-evdev.patch \ 46 file://0001-fix-build-without-xkbcommon-evdev.patch \
45 file://0002-Fix-initial-window-property-values-being-propagated.patch \
46" 47"
47 48
48BBCLASSEXTEND =+ "native nativesdk" 49BBCLASSEXTEND =+ "native nativesdk"
50
51# The same issue as in qtbase:
52# http://errors.yoctoproject.org/Errors/Details/152641/
53LDFLAGS_append_x86 = "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-gold', ' -fuse-ld=bfd ', '', d)}"
diff --git a/recipes-qt/qt5/qtwebchannel_git.bb b/recipes-qt/qt5/qtwebchannel_git.bb
index bf9b2a27..c64f6157 100644
--- a/recipes-qt/qt5/qtwebchannel_git.bb
+++ b/recipes-qt/qt5/qtwebchannel_git.bb
@@ -3,11 +3,11 @@ require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \ 6 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
10 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 10 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
11" 11"
12 12
13DEPENDS += "qtdeclarative qtwebsockets" 13DEPENDS += "qtdeclarative qtwebsockets"
diff --git a/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch b/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch
new file mode 100644
index 00000000..a5fb1d84
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0001-Build-accessibility-tests-only-when-Qt-is-configured.patch
@@ -0,0 +1,41 @@
1From 4649f2a11fe4b87e9b79f50ff8ac99ba9a2344f4 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Michael=20Br=C3=BCning?= <michael.bruning@qt.io>
3Date: Wed, 25 Oct 2017 09:47:47 +0200
4Subject: [PATCH] Build accessibility tests only when Qt is configured with
5 accessibility
6
7Original patch by Daniel Mack <daniel@zonque.org>
8
9Task-number: QTBUG-64015
10Change-Id: I7dd0a1aa9bff08c6d19e818acf0e1b8b4b701f5b
11Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
12---
13 tests/auto/widgets/widgets.pro | 5 ++++-
14 1 file changed, 4 insertions(+), 1 deletion(-)
15
16diff --git a/tests/auto/widgets/widgets.pro b/tests/auto/widgets/widgets.pro
17index 441eea0..7bab18f 100644
18--- a/tests/auto/widgets/widgets.pro
19+++ b/tests/auto/widgets/widgets.pro
20@@ -1,7 +1,6 @@
21 TEMPLATE = subdirs
22
23 SUBDIRS += \
24- qwebengineaccessibility \
25 qwebenginedefaultsurfaceformat \
26 qwebenginedownloads \
27 qwebenginefaviconmanager \
28@@ -14,6 +13,10 @@ SUBDIRS += \
29 qwebenginesettings \
30 qwebengineview
31
32+qtConfig(accessibility) {
33+ SUBDIRS += qwebengineaccessibility
34+}
35+
36 contains(WEBENGINE_CONFIG, use_spellchecker):!cross_compile {
37 !contains(WEBENGINE_CONFIG, use_native_spellchecker) {
38 SUBDIRS += qwebenginespellcheck
39--
402.7.4
41
diff --git a/recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch b/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch
index 34f58ded..0e9ea724 100644
--- a/recipes-qt/qt5/qtwebengine/0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch
+++ b/recipes-qt/qt5/qtwebengine/0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch
@@ -1,4 +1,4 @@
1From de6311b4d556abbe131462a3cd962ae87da59522 Mon Sep 17 00:00:00 2001 1From d559da6ab0834aeb7307008015b6232e586fea00 Mon Sep 17 00:00:00 2001
2From: Cleiton Bueno <cleitonrbueno@gmail.com> 2From: Cleiton Bueno <cleitonrbueno@gmail.com>
3Date: Thu, 24 Dec 2015 12:46:58 -0200 3Date: Thu, 24 Dec 2015 12:46:58 -0200
4Subject: [PATCH] chromium: Change false to FALSE and 1 to TRUE, FIX 4Subject: [PATCH] chromium: Change false to FALSE and 1 to TRUE, FIX
@@ -10,11 +10,11 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10 chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------ 10 chromium/ui/gfx/codec/jpeg_codec.cc | 12 ++++++------
11 1 file changed, 6 insertions(+), 6 deletions(-) 11 1 file changed, 6 insertions(+), 6 deletions(-)
12 12
13diff --git a/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc b/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc 13diff --git a/chromium/ui/gfx/codec/jpeg_codec.cc b/chromium/ui/gfx/codec/jpeg_codec.cc
14index 8a08fe0..32b2a05 100644 14index 6d926378be..738d3fdedf 100644
15--- a/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc 15--- a/chromium/ui/gfx/codec/jpeg_codec.cc
16+++ b/src/3rdparty/chromium/ui/gfx/codec/jpeg_codec.cc 16+++ b/chromium/ui/gfx/codec/jpeg_codec.cc
17@@ -120,7 +120,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) { 17@@ -121,7 +121,7 @@ boolean EmptyOutputBuffer(jpeg_compress_struct* cinfo) {
18 // tell libjpeg where to write the next data 18 // tell libjpeg where to write the next data
19 cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used]; 19 cinfo->dest->next_output_byte = &(*state->out)[state->image_buffer_used];
20 cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used; 20 cinfo->dest->free_in_buffer = state->out->size() - state->image_buffer_used;
@@ -23,7 +23,7 @@ index 8a08fe0..32b2a05 100644
23 } 23 }
24 24
25 // Cleans up the JpegEncoderState to prepare for returning in the final form. 25 // Cleans up the JpegEncoderState to prepare for returning in the final form.
26@@ -261,7 +261,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, 26@@ -262,7 +262,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format,
27 cinfo.data_precision = 8; 27 cinfo.data_precision = 8;
28 28
29 jpeg_set_defaults(&cinfo); 29 jpeg_set_defaults(&cinfo);
@@ -32,7 +32,7 @@ index 8a08fe0..32b2a05 100644
32 32
33 // set up the destination manager 33 // set up the destination manager
34 jpeg_destination_mgr destmgr; 34 jpeg_destination_mgr destmgr;
35@@ -273,7 +273,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format, 35@@ -274,7 +274,7 @@ bool JPEGCodec::Encode(const unsigned char* input, ColorFormat format,
36 JpegEncoderState state(output); 36 JpegEncoderState state(output);
37 cinfo.client_data = &state; 37 cinfo.client_data = &state;
38 38
@@ -41,7 +41,7 @@ index 8a08fe0..32b2a05 100644
41 41
42 // feed it the rows, doing necessary conversions for the color format 42 // feed it the rows, doing necessary conversions for the color format
43 #ifdef JCS_EXTENSIONS 43 #ifdef JCS_EXTENSIONS
44@@ -359,7 +359,7 @@ void InitSource(j_decompress_ptr cinfo) { 44@@ -360,7 +360,7 @@ void InitSource(j_decompress_ptr cinfo) {
45 // set to a positive value if TRUE is returned. A FALSE return should only 45 // set to a positive value if TRUE is returned. A FALSE return should only
46 // be used when I/O suspension is desired." 46 // be used when I/O suspension is desired."
47 boolean FillInputBuffer(j_decompress_ptr cinfo) { 47 boolean FillInputBuffer(j_decompress_ptr cinfo) {
@@ -50,7 +50,7 @@ index 8a08fe0..32b2a05 100644
50 } 50 }
51 51
52 // Skip data in the buffer. Since we have all the data at once, this operation 52 // Skip data in the buffer. Since we have all the data at once, this operation
53@@ -487,8 +487,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size, 53@@ -488,8 +488,8 @@ bool JPEGCodec::Decode(const unsigned char* input, size_t input_size,
54 cinfo.client_data = &state; 54 cinfo.client_data = &state;
55 55
56 // fill the file metadata into our buffer 56 // fill the file metadata into our buffer
diff --git a/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch b/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch
new file mode 100644
index 00000000..275ef9e8
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0001-functions.prf-allow-build-for-linux-oe-g-platform.patch
@@ -0,0 +1,30 @@
1From 96746f09947cc36f6c9fc8631bc6a6e7f59efe24 Mon Sep 17 00:00:00 2001
2From: Frieder Schrempf <frieder.schrempf@online.de>
3Date: Mon, 1 Dec 2014 14:34:40 +0000
4Subject: [PATCH] functions.prf: allow build for linux-oe-g++ platform
5
6Upstream-Status: Inappropriate [OE specific]
7
8Signed-off-by: Frieder Schrempf <frieder.schrempf@online.de>
9Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
10---
11 mkspecs/features/functions.prf | 6 ++++++
12 1 file changed, 6 insertions(+)
13
14diff --git a/mkspecs/features/functions.prf b/mkspecs/features/functions.prf
15index 56894e58..ef418a4c 100644
16--- a/mkspecs/features/functions.prf
17+++ b/mkspecs/features/functions.prf
18@@ -21,6 +21,12 @@ defineTest(isPlatformSupported) {
19 return(false)
20 }
21 gcc:!clang:!isGCCVersionSupported(): return(false)
22+ } else:linux-oe-g++* {
23+ !gcc:!clang {
24+ skipBuild("Qt WebEngine on Linux requires clang or GCC.")
25+ return(false)
26+ }
27+ gcc:!clang:!isGCCVersionSupported(): return(false)
28 } else:win32 {
29 winrt {
30 skipBuild("WinRT is not supported.")
diff --git a/recipes-qt/qt5/qtwebengine/0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch b/recipes-qt/qt5/qtwebengine/0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch
new file mode 100644
index 00000000..6ada3f94
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch
@@ -0,0 +1,23 @@
1From 06e9e7844ffa2b6985e5fa7a1c475c8a54ca252a Mon Sep 17 00:00:00 2001
2From: Cleiton Bueno <cleitonrbueno@gmail.com>
3Date: Fri, 25 Dec 2015 18:16:05 -0200
4Subject: [PATCH] WebEngine qquickwebengineview_p_p.h add include QColor
5
6Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com>
7---
8 src/webengine/api/qquickwebengineview_p_p.h | 2 ++
9 1 file changed, 2 insertions(+)
10
11diff --git a/src/webengine/api/qquickwebengineview_p_p.h b/src/webengine/api/qquickwebengineview_p_p.h
12index 19ecf5e1..f6f638ee 100644
13--- a/src/webengine/api/qquickwebengineview_p_p.h
14+++ b/src/webengine/api/qquickwebengineview_p_p.h
15@@ -59,6 +59,8 @@
16 #include <QString>
17 #include <QtCore/qcompilerdetection.h>
18 #include <QtGui/qaccessibleobject.h>
19+#include <QColor>
20+
21
22 namespace QtWebEngineCore {
23 class WebContentsAdapter;
diff --git a/recipes-qt/qt5/qtwebengine/0002-chromium-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0002-chromium-Force-host-toolchain-configuration.patch
new file mode 100644
index 00000000..4a1a975f
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0002-chromium-Force-host-toolchain-configuration.patch
@@ -0,0 +1,40 @@
1From a0b1a742813d0846472fab4aada2388bf2d42d80 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Wed, 15 Mar 2017 13:53:28 +0200
4Subject: [PATCH] chromium: Force host toolchain configuration
5
6Force gcc/g++ to be used for parts using host toolchain, since
7the option(host_build) does not work in yocto builds.
8
9Upstream-Status: Inappropriate [OE specific]
10Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
11Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
12---
13 chromium/tools/gn/bootstrap/bootstrap.py | 12 ++++++------
14 1 file changed, 6 insertions(+), 6 deletions(-)
15
16diff --git a/chromium/tools/gn/bootstrap/bootstrap.py b/chromium/tools/gn/bootstrap/bootstrap.py
17index 43d252b43e..e58347848e 100755
18--- a/chromium/tools/gn/bootstrap/bootstrap.py
19+++ b/chromium/tools/gn/bootstrap/bootstrap.py
20@@ -298,14 +298,14 @@ def write_gn_ninja(path, root_gen_dir, options):
21 ld = os.environ.get('LD', 'link.exe')
22 ar = os.environ.get('AR', 'lib.exe')
23 else:
24- cc = os.environ.get('CC', 'cc')
25- cxx = os.environ.get('CXX', 'c++')
26+ cc = os.environ.get('CC_host', 'gcc')
27+ cxx = os.environ.get('CXX_host', 'g++')
28 ld = cxx
29- ar = os.environ.get('AR', 'ar')
30+ ar = os.environ.get('AR_host', 'ar')
31
32- cflags = os.environ.get('CFLAGS', '').split()
33- cflags_cc = os.environ.get('CXXFLAGS', '').split()
34- ldflags = os.environ.get('LDFLAGS', '').split()
35+ cflags = os.environ.get('CFLAGS_host', '').split()
36+ cflags_cc = os.environ.get('CXXFLAGS_host', '').split()
37+ ldflags = os.environ.get('LDFLAGS_host', '').split()
38 include_dirs = [root_gen_dir, SRC_ROOT]
39 libs = []
40
diff --git a/recipes-qt/qt5/qtwebengine/0003-Include-dependency-to-QCoreApplication-translate.patch b/recipes-qt/qt5/qtwebengine/0003-Include-dependency-to-QCoreApplication-translate.patch
new file mode 100644
index 00000000..8c0484bd
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0003-Include-dependency-to-QCoreApplication-translate.patch
@@ -0,0 +1,23 @@
1From bfd5e19fea1315d10b3217acaf92dfc32018ad03 Mon Sep 17 00:00:00 2001
2From: Cleiton Bueno <cleitonrbueno@gmail.com>
3Date: Thu, 24 Dec 2015 15:59:51 -0200
4Subject: [PATCH] Include dependency to QCoreApplication::translate()
5
6Signed-off-by: Cleiton Bueno <cleitonrbueno@gmail.com>
7---
8 src/core/media_capture_devices_dispatcher.h | 2 ++
9 1 file changed, 2 insertions(+)
10
11diff --git a/src/core/media_capture_devices_dispatcher.h b/src/core/media_capture_devices_dispatcher.h
12index c378c327..1d33d956 100644
13--- a/src/core/media_capture_devices_dispatcher.h
14+++ b/src/core/media_capture_devices_dispatcher.h
15@@ -45,6 +45,8 @@
16 #include <list>
17 #include <map>
18
19+#include <QCoreApplication>
20+
21 #include "web_contents_adapter_client.h"
22
23 #include "base/callback.h"
diff --git a/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch b/recipes-qt/qt5/qtwebengine/0003-chromium-workaround-for-too-long-.rps-file-name.patch
index 42ceeacf..ed897ea2 100644
--- a/recipes-qt/qt5/qtwebengine/0001-chromium-workaround-for-too-long-.rps-file-name.patch
+++ b/recipes-qt/qt5/qtwebengine/0003-chromium-workaround-for-too-long-.rps-file-name.patch
@@ -1,4 +1,4 @@
1From c72097e8790553771daf3231124c3fbe1a438379 Mon Sep 17 00:00:00 2001 1From 5c31bc4a7ae6133fe4cb60fa71465c6706a071c8 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io> 2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Thu, 30 Mar 2017 11:37:24 +0300 3Date: Thu, 30 Mar 2017 11:37:24 +0300
4Subject: [PATCH] chromium: workaround for too long .rps file name 4Subject: [PATCH] chromium: workaround for too long .rps file name
@@ -14,13 +14,13 @@ le.rsp): Unable to create file. File name too long
14Task-number: QTBUG-59769 14Task-number: QTBUG-59769
15Change-Id: I73c5e64ae5174412be2a675e35b0b6047f2bf4c1 15Change-Id: I73c5e64ae5174412be2a675e35b0b6047f2bf4c1
16--- 16---
17 src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc | 9 +++++++++ 17 chromium/tools/gn/ninja_action_target_writer.cc | 9 +++++++++
18 1 file changed, 9 insertions(+) 18 1 file changed, 9 insertions(+)
19 19
20diff --git a/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc b/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc 20diff --git a/chromium/tools/gn/ninja_action_target_writer.cc b/chromium/tools/gn/ninja_action_target_writer.cc
21index a5bc6cd..5cefbfe 100644 21index a5bc6cd526..5cefbfe77c 100644
22--- a/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc 22--- a/chromium/tools/gn/ninja_action_target_writer.cc
23+++ b/src/3rdparty/chromium/tools/gn/ninja_action_target_writer.cc 23+++ b/chromium/tools/gn/ninja_action_target_writer.cc
24@@ -115,9 +115,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() { 24@@ -115,9 +115,18 @@ std::string NinjaActionTargetWriter::WriteRuleDefinition() {
25 // strictly necessary for regular one-shot actions, but it's easier to 25 // strictly necessary for regular one-shot actions, but it's easier to
26 // just always define unique_name. 26 // just always define unique_name.
diff --git a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch b/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch
index 148b0629..bda0ba1a 100644
--- a/recipes-qt/qt5/qtwebengine/0001-Force-host-toolchain-configuration.patch
+++ b/recipes-qt/qt5/qtwebengine/0004-Force-host-toolchain-configuration.patch
@@ -1,4 +1,4 @@
1From e7d1e5dfdece59f247a1d71ad0ca1b0c8cadda21 Mon Sep 17 00:00:00 2001 1From 9bdd03ad0bbb221ad7bffe0e570605c21c28b1b5 Mon Sep 17 00:00:00 2001
2From: Samuli Piippo <samuli.piippo@qt.io> 2From: Samuli Piippo <samuli.piippo@qt.io>
3Date: Wed, 15 Mar 2017 13:53:28 +0200 3Date: Wed, 15 Mar 2017 13:53:28 +0200
4Subject: [PATCH] Force host toolchain configuration 4Subject: [PATCH] Force host toolchain configuration
@@ -10,7 +10,6 @@ Don't use QT_ARCH for the host architecture, since that's always
10the target architecture in bitbake builds, instead ask specifically 10the target architecture in bitbake builds, instead ask specifically
11for the qmakes's host architecture. 11for the qmakes's host architecture.
12 12
13Change-Id: I38329d545e527dbc5892547b6951822171ab761f
14Upstream-Status: Inappropriate [OE specific] 13Upstream-Status: Inappropriate [OE specific]
15Signed-off-by: Samuli Piippo <samuli.piippo@qt.io> 14Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
16--- 15---
@@ -19,7 +18,7 @@ Signed-off-by: Samuli Piippo <samuli.piippo@qt.io>
19 2 files changed, 8 insertions(+), 8 deletions(-) 18 2 files changed, 8 insertions(+), 8 deletions(-)
20 19
21diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro 20diff --git a/src/buildtools/configure_host.pro b/src/buildtools/configure_host.pro
22index f1b3d47..1212372 100644 21index f1b3d47b..12123729 100644
23--- a/src/buildtools/configure_host.pro 22--- a/src/buildtools/configure_host.pro
24+++ b/src/buildtools/configure_host.pro 23+++ b/src/buildtools/configure_host.pro
25@@ -4,7 +4,7 @@ TEMPLATE = aux 24@@ -4,7 +4,7 @@ TEMPLATE = aux
@@ -58,7 +57,7 @@ index f1b3d47..1212372 100644
58 " nm = \"$$which(nm)\" " \ 57 " nm = \"$$which(nm)\" " \
59 " toolchain_args = { " \ 58 " toolchain_args = { " \
60diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri 59diff --git a/src/core/config/linux.pri b/src/core/config/linux.pri
61index 714c864..f66ca55 100644 60index 714c864d..f66ca551 100644
62--- a/src/core/config/linux.pri 61--- a/src/core/config/linux.pri
63+++ b/src/core/config/linux.pri 62+++ b/src/core/config/linux.pri
64@@ -98,7 +98,7 @@ contains(QT_ARCH, "mips"):!host_build { 63@@ -98,7 +98,7 @@ contains(QT_ARCH, "mips"):!host_build {
@@ -70,28 +69,3 @@ index 714c864..f66ca55 100644
70 gn_args += host_cpu=\"$$GN_HOST_CPU\" 69 gn_args += host_cpu=\"$$GN_HOST_CPU\"
71 # Don't bother trying to use system libraries in this case 70 # Don't bother trying to use system libraries in this case
72 gn_args += use_glib=false 71 gn_args += use_glib=false
73diff --git a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
74index 75b9690..601f688 100755
75--- a/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
76+++ b/src/3rdparty/chromium/tools/gn/bootstrap/bootstrap.py
77@@ -298,14 +298,14 @@ def write_gn_ninja(path, root_gen_dir, options):
78 ld = os.environ.get('LD', 'link.exe')
79 ar = os.environ.get('AR', 'lib.exe')
80 else:
81- cc = os.environ.get('CC', 'cc')
82- cxx = os.environ.get('CXX', 'c++')
83+ cc = os.environ.get('CC_host', 'gcc')
84+ cxx = os.environ.get('CXX_host', 'g++')
85 ld = cxx
86- ar = os.environ.get('AR', 'ar')
87+ ar = os.environ.get('AR_host', 'ar')
88
89- cflags = os.environ.get('CFLAGS', '').split()
90- cflags_cc = os.environ.get('CXXFLAGS', '').split()
91- ldflags = os.environ.get('LDFLAGS', '').split()
92+ cflags = os.environ.get('CFLAGS_host', '').split()
93+ cflags_cc = os.environ.get('CXXFLAGS_host', '').split()
94+ ldflags = os.environ.get('LDFLAGS_host', '').split()
95 include_dirs = [root_gen_dir, SRC_ROOT]
96 libs = []
97
diff --git a/recipes-qt/qt5/qtwebengine/0004-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch b/recipes-qt/qt5/qtwebengine/0004-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch
new file mode 100644
index 00000000..68ffb6ce
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0004-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch
@@ -0,0 +1,33 @@
1From 71b3c3d4160c5e98cc0a0797710bdd121a79e8b8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:01:12 -0700
4Subject: [PATCH] chromium: musl: sandbox: Define TEMP_FAILURE_RETRY if not
5 defined
6
7Musl does not define this Macro
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 chromium/sandbox/linux/suid/sandbox.c | 9 +++++++++
12 1 file changed, 9 insertions(+)
13
14diff --git a/chromium/sandbox/linux/suid/sandbox.c b/chromium/sandbox/linux/suid/sandbox.c
15index b655d1c79c..3de34e36f2 100644
16--- a/chromium/sandbox/linux/suid/sandbox.c
17+++ b/chromium/sandbox/linux/suid/sandbox.c
18@@ -44,6 +44,15 @@ static bool DropRoot();
19
20 #define HANDLE_EINTR(x) TEMP_FAILURE_RETRY(x)
21
22+#ifndef TEMP_FAILURE_RETRY
23+# define TEMP_FAILURE_RETRY(expression) \
24+ (__extension__ \
25+ ({ long int __result; \
26+ do __result = (long int) (expression); \
27+ while (__result == -1L && errno == EINTR); \
28+ __result; }))
29+#endif
30+
31 static void FatalError(const char* msg, ...)
32 __attribute__((noreturn, format(printf, 1, 2)));
33
diff --git a/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch b/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch
new file mode 100644
index 00000000..bf1f1891
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch
@@ -0,0 +1,45 @@
1From e695f37fc52defd1b96664b003444692e9b6cb65 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:09:06 -0700
4Subject: [PATCH] chromium: musl: Avoid mallinfo() APIs on non-glibc/linux
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/base/trace_event/malloc_dump_provider.cc | 3 ++-
9 chromium/content/child/content_child_helpers.cc | 2 +-
10 2 files changed, 3 insertions(+), 2 deletions(-)
11
12diff --git a/chromium/base/trace_event/malloc_dump_provider.cc b/chromium/base/trace_event/malloc_dump_provider.cc
13index 7d0cb57931..10be59ebad 100644
14--- a/chromium/base/trace_event/malloc_dump_provider.cc
15+++ b/chromium/base/trace_event/malloc_dump_provider.cc
16@@ -210,6 +210,7 @@ MallocDumpProvider::~MallocDumpProvider() {}
17 // the current process.
18 bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
19 ProcessMemoryDump* pmd) {
20+#if defined(__GLIBC__)
21 size_t total_virtual_size = 0;
22 size_t resident_size = 0;
23 size_t allocated_objects_size = 0;
24@@ -321,7 +322,7 @@ bool MallocDumpProvider::OnMemoryDump(const MemoryDumpArgs& args,
25 pmd->DumpHeapUsage(metrics_by_context, overhead, "malloc");
26 }
27 tid_dumping_heap_ = kInvalidThreadId;
28-
29+#endif // __GLIBC__
30 return true;
31 }
32
33diff --git a/chromium/content/child/content_child_helpers.cc b/chromium/content/child/content_child_helpers.cc
34index 7ddeb4d16a..b8c73b09c5 100644
35--- a/chromium/content/child/content_child_helpers.cc
36+++ b/chromium/content/child/content_child_helpers.cc
37@@ -25,7 +25,7 @@ namespace content {
38 // though, this provides only a partial and misleading value.
39 // Unfortunately some telemetry benchmark rely on it and these need to
40 // be refactored before getting rid of this. See crbug.com/581365 .
41-#if defined(OS_LINUX) || defined(OS_ANDROID)
42+#if defined(__GLIBC__) || defined(OS_ANDROID)
43 size_t GetMemoryUsageKB() {
44 struct mallinfo minfo = mallinfo();
45 uint64_t mem_usage =
diff --git a/recipes-qt/qt5/qtwebengine/0006-chromium-musl-include-fcntl.h-for-loff_t.patch b/recipes-qt/qt5/qtwebengine/0006-chromium-musl-include-fcntl.h-for-loff_t.patch
new file mode 100644
index 00000000..b39ab2c5
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0006-chromium-musl-include-fcntl.h-for-loff_t.patch
@@ -0,0 +1,22 @@
1From ee6aec4439a7ee320d7700d7f10cd3948a73f3e3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:37:49 -0700
4Subject: [PATCH] chromium: musl: include fcntl.h for loff_t
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h b/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
12index b29ec2d29a..91f77dd88d 100644
13--- a/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
14+++ b/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
15@@ -150,6 +150,7 @@ extern "C" {
16 #include <stddef.h>
17 #include <stdint.h>
18 #include <string.h>
19+#include <fcntl.h>
20 #include <sys/ptrace.h>
21 #include <sys/resource.h>
22 #include <sys/time.h>
diff --git a/recipes-qt/qt5/qtwebengine/0007-chromium-musl-use-off64_t-instead-of-the-internal-__.patch b/recipes-qt/qt5/qtwebengine/0007-chromium-musl-use-off64_t-instead-of-the-internal-__.patch
new file mode 100644
index 00000000..65f709d5
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0007-chromium-musl-use-off64_t-instead-of-the-internal-__.patch
@@ -0,0 +1,62 @@
1From 90ebe616e563ab1224234281ea7b1a478f42ca92 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:38:37 -0700
4Subject: [PATCH] chromium: musl: use off64_t instead of the internal __off64_t
5
6- only do the glibc 32-bit ABI check for mmap/mmap64 on gnu libc. musl
7 does not support the 32-bit ABI.
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 .../third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h | 10 +++++-----
12 1 file changed, 5 insertions(+), 5 deletions(-)
13
14diff --git a/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h b/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
15index 715c045f66..edc8cf2db7 100644
16--- a/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
17+++ b/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
18@@ -77,7 +77,7 @@ typedef off64_t __off64_t;
19
20 static inline void* do_mmap64(void *start, size_t length,
21 int prot, int flags,
22- int fd, __off64_t offset) __THROW {
23+ int fd, off64_t offset) __THROW {
24 // The original gperftools uses sys_mmap() here. But, it is not allowed by
25 // Chromium's sandbox.
26 return (void *)syscall(SYS_mmap, start, length, prot, flags, fd, offset);
27@@ -90,7 +90,7 @@ static inline void* do_mmap64(void *start, size_t length,
28
29 static inline void* do_mmap64(void *start, size_t length,
30 int prot, int flags,
31- int fd, __off64_t offset) __THROW {
32+ int fd, off64_t offset) __THROW {
33 void *result;
34
35 // Try mmap2() unless it's not supported
36@@ -161,7 +161,7 @@ static inline void* do_mmap64(void *start, size_t length,
37
38 extern "C" {
39 void* mmap64(void *start, size_t length, int prot, int flags,
40- int fd, __off64_t offset ) __THROW
41+ int fd, off64_t offset ) __THROW
42 ATTRIBUTE_SECTION(malloc_hook);
43 void* mmap(void *start, size_t length,int prot, int flags,
44 int fd, off_t offset) __THROW
45@@ -178,7 +178,7 @@ extern "C" {
46 }
47
48 extern "C" void* mmap64(void *start, size_t length, int prot, int flags,
49- int fd, __off64_t offset) __THROW {
50+ int fd, off64_t offset) __THROW {
51 MallocHook::InvokePreMmapHook(start, length, prot, flags, fd, offset);
52 void *result;
53 if (!MallocHook::InvokeMmapReplacement(
54@@ -189,7 +189,7 @@ extern "C" void* mmap64(void *start, size_t length, int prot, int flags,
55 return result;
56 }
57
58-# if !defined(__USE_FILE_OFFSET64) || !defined(__REDIRECT_NTH)
59+# if defined(__GLIBC__) && (!defined(__USE_FILE_OFFSET64) || !defined(__REDIRECT_NTH))
60
61 extern "C" void* mmap(void *start, size_t length, int prot, int flags,
62 int fd, off_t offset) __THROW {
diff --git a/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch b/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch
new file mode 100644
index 00000000..7a778c22
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0008-chromium-musl-linux-glibc-make-the-distinction.patch
@@ -0,0 +1,23 @@
1From d0621f9278ddd04c05b6ab3ef638be65f96f1bd6 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 14:54:38 -0700
4Subject: [PATCH] chromium: musl: linux != glibc, make the distinction
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/base/allocator/allocator_check.cc | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/chromium/base/allocator/allocator_check.cc b/chromium/base/allocator/allocator_check.cc
12index 5a0564d2f3..8c2dc6491d 100644
13--- a/chromium/base/allocator/allocator_check.cc
14+++ b/chromium/base/allocator/allocator_check.cc
15@@ -21,7 +21,7 @@ bool IsAllocatorInitialized() {
16 #if defined(OS_WIN) && defined(ALLOCATOR_SHIM)
17 // Set by allocator_shim_win.cc when the shimmed _set_new_mode() is called.
18 return g_is_win_shim_layer_initialized;
19-#elif defined(OS_LINUX) && defined(USE_TCMALLOC) && \
20+#elif defined(__GLIBC__) && defined(USE_TCMALLOC) && \
21 !defined(MEMORY_TOOL_REPLACES_ALLOCATOR)
22 // From third_party/tcmalloc/chromium/src/gperftools/tcmalloc.h.
23 // TODO(primiano): replace with an include once base can depend on allocator.
diff --git a/recipes-qt/qt5/qtwebengine/0009-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch b/recipes-qt/qt5/qtwebengine/0009-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch
new file mode 100644
index 00000000..2bc79932
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0009-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch
@@ -0,0 +1,24 @@
1From e8f8e7aa48e97b9b91858ef94f1940464a9178a3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:09:02 -0700
4Subject: [PATCH] chromium: musl: allocator: Do not include glibc_weak_symbols
5 for musl
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 chromium/base/allocator/allocator_shim.cc | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/chromium/base/allocator/allocator_shim.cc b/chromium/base/allocator/allocator_shim.cc
13index 95480ea4b6..1de3d1a532 100644
14--- a/chromium/base/allocator/allocator_shim.cc
15+++ b/chromium/base/allocator/allocator_shim.cc
16@@ -266,7 +266,7 @@ void ShimFree(void* address) {
17 // In the case of tcmalloc we also want to plumb into the glibc hooks
18 // to avoid that allocations made in glibc itself (e.g., strdup()) get
19 // accidentally performed on the glibc heap instead of the tcmalloc one.
20-#if defined(USE_TCMALLOC)
21+#if defined(USE_TCMALLOC) && defined(__GLIBC__)
22 #include "base/allocator/allocator_shim_override_glibc_weak_symbols.h"
23 #endif
24
diff --git a/recipes-qt/qt5/qtwebengine/0010-chromium-musl-Use-correct-member-name-__si_fields-fr.patch b/recipes-qt/qt5/qtwebengine/0010-chromium-musl-Use-correct-member-name-__si_fields-fr.patch
new file mode 100644
index 00000000..82e85f94
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0010-chromium-musl-Use-correct-member-name-__si_fields-fr.patch
@@ -0,0 +1,24 @@
1From ab272bfc9aef6d50c44e1c1bdfdb8a325aebaefc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:12:39 -0700
4Subject: [PATCH] chromium: musl: Use correct member name __si_fields from
5 LinuxSigInfo
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 chromium/sandbox/linux/seccomp-bpf/trap.cc | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/chromium/sandbox/linux/seccomp-bpf/trap.cc b/chromium/sandbox/linux/seccomp-bpf/trap.cc
13index 003708d2c8..0fef3148f9 100644
14--- a/chromium/sandbox/linux/seccomp-bpf/trap.cc
15+++ b/chromium/sandbox/linux/seccomp-bpf/trap.cc
16@@ -168,7 +168,7 @@ void Trap::SigSys(int nr, LinuxSigInfo* info, ucontext_t* ctx) {
17 // most versions of glibc don't include this information in siginfo_t. So,
18 // we need to explicitly copy it into a arch_sigsys structure.
19 struct arch_sigsys sigsys;
20- memcpy(&sigsys, &info->_sifields, sizeof(sigsys));
21+ memcpy(&sigsys, &info->__si_fields, sizeof(sigsys));
22
23 #if defined(__mips__)
24 // When indirect syscall (syscall(__NR_foo, ...)) is made on Mips, the
diff --git a/recipes-qt/qt5/qtwebengine/0011-chromium-musl-Match-syscalls-to-match-musl.patch b/recipes-qt/qt5/qtwebengine/0011-chromium-musl-Match-syscalls-to-match-musl.patch
new file mode 100644
index 00000000..e4e35efc
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0011-chromium-musl-Match-syscalls-to-match-musl.patch
@@ -0,0 +1,44 @@
1From bd3d6bd46e792e312435897e925cca5ccedc1dda Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:24:49 -0700
4Subject: [PATCH] chromium: musl: Match syscalls to match musl
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/third_party/lss/linux_syscall_support.h | 16 ++++++++++++++++
9 1 file changed, 16 insertions(+)
10
11diff --git a/chromium/third_party/lss/linux_syscall_support.h b/chromium/third_party/lss/linux_syscall_support.h
12index 9dbd2391b2..a715de177c 100644
13--- a/chromium/third_party/lss/linux_syscall_support.h
14+++ b/chromium/third_party/lss/linux_syscall_support.h
15@@ -793,6 +793,14 @@ struct kernel_statfs {
16 #endif
17
18
19+#undef stat64
20+#undef fstat64
21+
22+#ifndef __NR_fstatat
23+#define __NR_fstatat __NR_fstatat64
24+#endif
25+
26+
27 #if defined(__x86_64__)
28 #ifndef ARCH_SET_GS
29 #define ARCH_SET_GS 0x1001
30@@ -1210,6 +1218,14 @@ struct kernel_statfs {
31 #ifndef __NR_fallocate
32 #define __NR_fallocate 285
33 #endif
34+
35+#ifndef __NR_pread
36+#define __NR_pread __NR_pread64
37+#endif
38+#ifndef __NR_pwrite
39+#define __NR_pwrite __NR_pwrite64
40+#endif
41+
42 /* End of x86-64 definitions */
43 #elif defined(__mips__)
44 #if _MIPS_SIM == _MIPS_SIM_ABI32
diff --git a/recipes-qt/qt5/qtwebengine/0012-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch b/recipes-qt/qt5/qtwebengine/0012-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch
new file mode 100644
index 00000000..65adde3e
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0012-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch
@@ -0,0 +1,79 @@
1From 505fcfa52c49c9975e63066f631244ace6061d3c Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:27:50 -0700
4Subject: [PATCH] chromium: musl: Define res_ninit and res_nclose for non-glibc
5 platforms
6
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8---
9 chromium/net/dns/dns_config_service_posix.cc | 4 ++++
10 chromium/net/dns/dns_reloader.cc | 4 ++++
11 chromium/net/dns/resolv_compat.h | 29 ++++++++++++++++++++++++++++
12 3 files changed, 37 insertions(+)
13 create mode 100644 chromium/net/dns/resolv_compat.h
14
15diff --git a/chromium/net/dns/dns_config_service_posix.cc b/chromium/net/dns/dns_config_service_posix.cc
16index ba8a369133..e9b40d07fc 100644
17--- a/chromium/net/dns/dns_config_service_posix.cc
18+++ b/chromium/net/dns/dns_config_service_posix.cc
19@@ -25,6 +25,10 @@
20 #include "net/dns/notify_watcher_mac.h"
21 #include "net/dns/serial_worker.h"
22
23+#if defined(OS_LINUX) && !defined(__GLIBC__)
24+#include "net/dns/resolv_compat.h"
25+#endif
26+
27 #if defined(OS_MACOSX) && !defined(OS_IOS)
28 #include "net/dns/dns_config_watcher_mac.h"
29 #endif
30diff --git a/chromium/net/dns/dns_reloader.cc b/chromium/net/dns/dns_reloader.cc
31index 74534e6b1b..2780a776e4 100644
32--- a/chromium/net/dns/dns_reloader.cc
33+++ b/chromium/net/dns/dns_reloader.cc
34@@ -9,6 +9,10 @@
35
36 #include <resolv.h>
37
38+#if defined(OS_LINUX) && !defined(__GLIBC__)
39+#include "net/dns/resolv_compat.h"
40+#endif
41+
42 #include "base/lazy_instance.h"
43 #include "base/logging.h"
44 #include "base/macros.h"
45diff --git a/chromium/net/dns/resolv_compat.h b/chromium/net/dns/resolv_compat.h
46new file mode 100644
47index 0000000000..4f0e852a19
48--- /dev/null
49+++ b/chromium/net/dns/resolv_compat.h
50@@ -0,0 +1,29 @@
51+#if !defined(__GLIBC__)
52+/***************************************************************************
53+ * resolv_compat.h
54+ *
55+ * Mimick GLIBC's res_ninit() and res_nclose() for musl libc
56+ * Note: res_init() is actually deprecated according to
57+ * http://docs.oracle.com/cd/E36784_01/html/E36875/res-nclose-3resolv.html
58+ **************************************************************************/
59+#include <string.h>
60+
61+static inline int res_ninit(res_state statp)
62+{
63+ int rc = res_init();
64+ if (statp != &_res) {
65+ memcpy(statp, &_res, sizeof(*statp));
66+ }
67+ return rc;
68+}
69+
70+static inline int res_nclose(res_state statp)
71+{
72+ if (!statp)
73+ return -1;
74+ if (statp != &_res) {
75+ memset(statp, 0, sizeof(*statp));
76+ }
77+ return 0;
78+}
79+#endif
diff --git a/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Do-not-define-__sbrk-on-musl.patch b/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Do-not-define-__sbrk-on-musl.patch
new file mode 100644
index 00000000..6c864285
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0013-chromium-musl-Do-not-define-__sbrk-on-musl.patch
@@ -0,0 +1,26 @@
1From e4d5b6ccd77506edb7d52f3857c4a5f22bea2437 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 15:39:57 -0700
4Subject: [PATCH] chromium: musl: Do not define __sbrk on musl
5
6musl libc does not have sbrk. on musl libc will only work when called with 0 as
7argument, so we just let it out for now
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11 chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h b/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
15index edc8cf2db7..a868b50d30 100644
16--- a/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
17+++ b/chromium/third_party/tcmalloc/chromium/src/malloc_hook_mmap_linux.h
18@@ -233,7 +233,7 @@ extern "C" void* mremap(void* old_addr, size_t old_size, size_t new_size,
19 }
20
21 // Don't hook sbrk() in Android, since it doesn't expose __sbrk.
22-#if !defined(__ANDROID__)
23+#if !defined(__ANDROID__) && defined(__GLIBC__)
24 // libc's version:
25 extern "C" void* __sbrk(ptrdiff_t increment);
26
diff --git a/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch b/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch
new file mode 100644
index 00000000..f1cc205b
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0014-chromium-musl-Adjust-default-pthread-stack-size.patch
@@ -0,0 +1,47 @@
1From 72a77c994434ecb708b2790ba9efaf1decc02503 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 16:41:23 -0700
4Subject: [PATCH] chromium: musl: Adjust default pthread stack size
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/base/threading/platform_thread_linux.cc | 3 ++-
9 chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp | 4 ++--
10 2 files changed, 4 insertions(+), 3 deletions(-)
11
12diff --git a/chromium/base/threading/platform_thread_linux.cc b/chromium/base/threading/platform_thread_linux.cc
13index 92fbda5ee1..c41579d4ed 100644
14--- a/chromium/base/threading/platform_thread_linux.cc
15+++ b/chromium/base/threading/platform_thread_linux.cc
16@@ -175,7 +175,8 @@ void TerminateOnThread() {}
17
18 size_t GetDefaultThreadStackSize(const pthread_attr_t& attributes) {
19 #if !defined(THREAD_SANITIZER)
20- return 0;
21+ // use 8mb like glibc to avoid running out of space
22+ return (1 << 23);
23 #else
24 // ThreadSanitizer bloats the stack heavily. Evidence has been that the
25 // default stack size isn't enough for some browser tests.
26diff --git a/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp b/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
27index 1d164f510a..3358deb256 100644
28--- a/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
29+++ b/chromium/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp
30@@ -68,7 +68,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() {
31 // FIXME: On Mac OSX and Linux, this method cannot estimate stack size
32 // correctly for the main thread.
33
34-#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD)
35+#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD)
36 // pthread_getattr_np() can fail if the thread is not invoked by
37 // pthread_create() (e.g., the main thread of webkit_unit_tests).
38 // If so, a conservative size estimate is returned.
39@@ -135,7 +135,7 @@ size_t StackFrameDepth::getUnderestimatedStackSize() {
40 }
41
42 void* StackFrameDepth::getStackStart() {
43-#if defined(__GLIBC__) || OS(ANDROID) || OS(FREEBSD)
44+#if OS(LINUX) || OS(ANDROID) || OS(FREEBSD)
45 pthread_attr_t attr;
46 int error;
47 #if OS(FREEBSD)
diff --git a/recipes-qt/qt5/qtwebengine/0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch b/recipes-qt/qt5/qtwebengine/0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch
new file mode 100644
index 00000000..58cd0a76
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch
@@ -0,0 +1,22 @@
1From f2e66acda4934e4c0f56a58ba107cc208f09b7ef Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Jul 2017 17:15:34 -0700
4Subject: [PATCH] chromium: musl: include asm-generic/ioctl.h for TCGETS2
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/device/serial/serial_io_handler_posix.cc | 1 +
9 1 file changed, 1 insertion(+)
10
11diff --git a/chromium/device/serial/serial_io_handler_posix.cc b/chromium/device/serial/serial_io_handler_posix.cc
12index a2ca2e2309..e139cdf9e9 100644
13--- a/chromium/device/serial/serial_io_handler_posix.cc
14+++ b/chromium/device/serial/serial_io_handler_posix.cc
15@@ -6,6 +6,7 @@
16
17 #include <sys/ioctl.h>
18 #include <termios.h>
19+#include <asm-generic/ioctls.h>
20
21 #include "base/files/file_util.h"
22 #include "base/posix/eintr_wrapper.h"
diff --git a/recipes-qt/qt5/qtwebengine/0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch b/recipes-qt/qt5/qtwebengine/0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch
new file mode 100644
index 00000000..acc2c78a
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch
@@ -0,0 +1,23 @@
1From 2141914268b26507d52cc7541cf268478ddc0bdf Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 8 Jul 2017 09:08:23 -0700
4Subject: [PATCH] chromium: musl: tcmalloc: Use off64_t insread of __off64_t
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h b/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
12index 91f77dd88d..bb84a0b305 100644
13--- a/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
14+++ b/chromium/third_party/tcmalloc/chromium/src/base/linux_syscall_support.h
15@@ -1929,7 +1929,7 @@ typedef unsigned long int ulong;
16 #if defined(__x86_64__)
17 /* Need to make sure __off64_t isn't truncated to 32-bits under x32. */
18 LSS_INLINE void* LSS_NAME(mmap)(void *s, size_t l, int p, int f, int d,
19- __off64_t o) {
20+ off64_t o) {
21 LSS_BODY(6, void*, mmap, LSS_SYSCALL_ARG(s), LSS_SYSCALL_ARG(l),
22 LSS_SYSCALL_ARG(p), LSS_SYSCALL_ARG(f),
23 LSS_SYSCALL_ARG(d), (uint64_t)(o));
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index c044c602..deef5737 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -16,7 +16,7 @@ DEPENDS += " \
16 ninja-native \ 16 ninja-native \
17 yasm-native \ 17 yasm-native \
18 qtwebchannel \ 18 qtwebchannel \
19 qtbase qtdeclarative qtxmlpatterns qtquickcontrols \ 19 qtbase qtdeclarative qtxmlpatterns qtquickcontrols qtquickcontrols2 \
20 qtlocation \ 20 qtlocation \
21 libdrm fontconfig pixman openssl pango cairo icu pciutils \ 21 libdrm fontconfig pixman openssl pango cairo icu pciutils \
22 libcap \ 22 libcap \
@@ -24,9 +24,23 @@ DEPENDS += " \
24 ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-lib', '', d)} \ 24 ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa-lib', '', d)} \
25" 25"
26 26
27EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm GYP_CONFIG+=generate_character_data=0" 27DEPENDS_append_libc-musl = " libexecinfo"
28
29EXTRA_QMAKEVARS_PRE += "GYP_CONFIG+=use_system_yasm \
30 GYP_CONFIG+=generate_character_data=0 \
31 GYP_CONFIG+=use_allocator=none \
32 GYP_CONFIG+=use_experimental_allocator_shim=false \
33"
28EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn" 34EXTRA_QMAKEVARS_CONFIGURE += "-feature-system-ninja -no-feature-system-gn"
29 35
36# chromium/third_party/openh264/openh264.gyp adds
37# -Wno-format to openh264_cflags_add
38# similarly chromium/third_party/openh264/BUILD.gn for newer qtwebengine
39# causing following error, because -Wformat-security cannot be used together with -Wno-format
40# cc1plus: error: -Wformat-security ignored without -Wformat [-Werror=format-security]
41# http://errors.yoctoproject.org/Errors/Details/150333/
42SECURITY_STRINGFORMAT = ""
43
30# To use system ffmpeg you need to enable also libwebp, opus, vpx 44# To use system ffmpeg you need to enable also libwebp, opus, vpx
31# Only depenedencies available in oe-core are enabled by default 45# Only depenedencies available in oe-core are enabled by default
32PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss" 46PACKAGECONFIG ??= "libwebp flac libevent libxslt speex nss"
@@ -39,6 +53,7 @@ PACKAGECONFIG[libevent] = "WEBENGINE_CONFIG+=use_system_libevent,,libevent"
39PACKAGECONFIG[libxslt] = "WEBENGINE_CONFIG+=use_system_libxslt,,libxslt" 53PACKAGECONFIG[libxslt] = "WEBENGINE_CONFIG+=use_system_libxslt,,libxslt"
40PACKAGECONFIG[speex] = "WEBENGINE_CONFIG+=use_system_speex,,speex" 54PACKAGECONFIG[speex] = "WEBENGINE_CONFIG+=use_system_speex,,speex"
41PACKAGECONFIG[vpx] = "WEBENGINE_CONFIG+=use_system_vpx,,libvpx" 55PACKAGECONFIG[vpx] = "WEBENGINE_CONFIG+=use_system_vpx,,libvpx"
56PACKAGECONFIG[webrtc] = "WEBENGINE_CONFIG+=use_webrtc,,libvpx"
42PACKAGECONFIG[nss] = "WEBENGINE_CONFIG+=use_nss,,nss" 57PACKAGECONFIG[nss] = "WEBENGINE_CONFIG+=use_nss,,nss"
43 58
44EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}" 59EXTRA_QMAKEVARS_PRE += "${PACKAGECONFIG_CONFARGS}"
@@ -88,6 +103,13 @@ do_configure() {
88 ${EXTRA_QMAKEVARS_CONFIGURE} 103 ${EXTRA_QMAKEVARS_CONFIGURE}
89} 104}
90 105
106do_configure_prepend_libc-musl() {
107 for f in `find ${S}/src/3rdparty/chromium/third_party/ffmpeg/chromium/config/Chromium/linux/ -name config.h -o -name config.asm`; do
108 sed -i -e "s:define HAVE_SYSCTL 1:define HAVE_SYSCTL 0:g" $f
109 done
110 sed -i -e "s:define HAVE_STRUCT_MALLINFO 1:/*undef HAVE_STRUCT_MALLINFO */:g" ${S}/src/3rdparty/chromium/third_party/tcmalloc/chromium/src/config_linux.h
111}
112
91do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+" 113do_compile[progress] = "outof:^\[(\d+)/(\d+)\]\s+"
92 114
93do_install_append() { 115do_install_append() {
@@ -106,11 +128,39 @@ RDEPENDS_${PN}-examples += " \
106 128
107QT_MODULE_BRANCH_CHROMIUM = "58-based" 129QT_MODULE_BRANCH_CHROMIUM = "58-based"
108 130
131# Patches from https://github.com/meta-qt5/qtwebengine/commits/b5.9
132# 5.9.meta-qt5.3
109SRC_URI += " \ 133SRC_URI += " \
110 ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \ 134 ${QT_GIT}/qtwebengine-chromium.git;name=chromium;branch=${QT_MODULE_BRANCH_CHROMIUM};protocol=${QT_GIT_PROTOCOL};destsuffix=git/src/3rdparty \
111 file://0001-Force-host-toolchain-configuration.patch \ 135 file://0001-functions.prf-allow-build-for-linux-oe-g-platform.patch \
112 file://0001-chromium-workaround-for-too-long-.rps-file-name.patch \ 136 file://0001-Build-accessibility-tests-only-when-Qt-is-configured.patch \
113 file://0002-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch \ 137 file://0002-WebEngine-qquickwebengineview_p_p.h-add-include-QCol.patch \
138 file://0003-Include-dependency-to-QCoreApplication-translate.patch \
139 file://0004-Force-host-toolchain-configuration.patch \
140"
141
142# Patches from https://github.com/meta-qt5/qtwebengine-chromium/commits/56-based
143# 56-based.meta-qt5.2
144SRC_URI += " \
145 file://0001-chromium-Change-false-to-FALSE-and-1-to-TRUE-FIX-qtw.patch;patchdir=src/3rdparty \
146 file://0002-chromium-Force-host-toolchain-configuration.patch;patchdir=src/3rdparty \
147 file://0003-chromium-workaround-for-too-long-.rps-file-name.patch;patchdir=src/3rdparty \
148"
149
150SRC_URI_append_libc-musl = "\
151 file://0004-chromium-musl-sandbox-Define-TEMP_FAILURE_RETRY-if-n.patch;patchdir=src/3rdparty \
152 file://0005-chromium-musl-Avoid-mallinfo-APIs-on-non-glibc-linux.patch;patchdir=src/3rdparty \
153 file://0006-chromium-musl-include-fcntl.h-for-loff_t.patch;patchdir=src/3rdparty \
154 file://0007-chromium-musl-use-off64_t-instead-of-the-internal-__.patch;patchdir=src/3rdparty \
155 file://0008-chromium-musl-linux-glibc-make-the-distinction.patch;patchdir=src/3rdparty \
156 file://0009-chromium-musl-allocator-Do-not-include-glibc_weak_sy.patch;patchdir=src/3rdparty \
157 file://0010-chromium-musl-Use-correct-member-name-__si_fields-fr.patch;patchdir=src/3rdparty \
158 file://0011-chromium-musl-Match-syscalls-to-match-musl.patch;patchdir=src/3rdparty \
159 file://0012-chromium-musl-Define-res_ninit-and-res_nclose-for-no.patch;patchdir=src/3rdparty \
160 file://0013-chromium-musl-Do-not-define-__sbrk-on-musl.patch;patchdir=src/3rdparty \
161 file://0014-chromium-musl-Adjust-default-pthread-stack-size.patch;patchdir=src/3rdparty \
162 file://0015-chromium-musl-include-asm-generic-ioctl.h-for-TCGETS.patch;patchdir=src/3rdparty \
163 file://0016-chromium-musl-tcmalloc-Use-off64_t-insread-of-__off6.patch;patchdir=src/3rdparty \
114" 164"
115 165
116SRCREV_qtwebengine = "f32b3514a5186bc4f5452f004324bdb7782d30a3" 166SRCREV_qtwebengine = "f32b3514a5186bc4f5452f004324bdb7782d30a3"
diff --git a/recipes-qt/qt5/qtwebkit/0001-qtwebkit-fix-QA-issue-bad-RPATH.patch b/recipes-qt/qt5/qtwebkit/0001-qtwebkit-fix-QA-issue-bad-RPATH.patch
index d96636e6..764b0305 100644
--- a/recipes-qt/qt5/qtwebkit/0001-qtwebkit-fix-QA-issue-bad-RPATH.patch
+++ b/recipes-qt/qt5/qtwebkit/0001-qtwebkit-fix-QA-issue-bad-RPATH.patch
@@ -1,4 +1,4 @@
1From 86bdd059606252b16c24432fbe4bba461406c1e4 Mon Sep 17 00:00:00 2001 1From c4e691a8dd2037d9b359e0de9d4790da9078f74e Mon Sep 17 00:00:00 2001
2From: Trevor Woerner <trevor.woerner@linaro.org> 2From: Trevor Woerner <trevor.woerner@linaro.org>
3Date: Fri, 7 Feb 2014 04:07:17 +0100 3Date: Fri, 7 Feb 2014 04:07:17 +0100
4Subject: [PATCH] qtwebkit: fix QA issue (bad RPATH) 4Subject: [PATCH] qtwebkit: fix QA issue (bad RPATH)
@@ -14,7 +14,7 @@ Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
14 1 file changed, 1 deletion(-) 14 1 file changed, 1 deletion(-)
15 15
16diff --git a/Tools/qmake/mkspecs/features/unix/default_post.prf b/Tools/qmake/mkspecs/features/unix/default_post.prf 16diff --git a/Tools/qmake/mkspecs/features/unix/default_post.prf b/Tools/qmake/mkspecs/features/unix/default_post.prf
17index fd66af6..ef754c3 100644 17index fd66af670..ef754c367 100644
18--- a/Tools/qmake/mkspecs/features/unix/default_post.prf 18--- a/Tools/qmake/mkspecs/features/unix/default_post.prf
19+++ b/Tools/qmake/mkspecs/features/unix/default_post.prf 19+++ b/Tools/qmake/mkspecs/features/unix/default_post.prf
20@@ -61,7 +61,6 @@ linux-*g++* { 20@@ -61,7 +61,6 @@ linux-*g++* {
diff --git a/recipes-qt/qt5/qtwebkit/0003-Exclude-backtrace-API-for-non-glibc-libraries.patch b/recipes-qt/qt5/qtwebkit/0002-Exclude-backtrace-API-for-non-glibc-libraries.patch
index a16801b5..cec6376d 100644
--- a/recipes-qt/qt5/qtwebkit/0003-Exclude-backtrace-API-for-non-glibc-libraries.patch
+++ b/recipes-qt/qt5/qtwebkit/0002-Exclude-backtrace-API-for-non-glibc-libraries.patch
@@ -1,4 +1,4 @@
1From ed626df67e8287fadbfe2801c241c9717472dcf4 Mon Sep 17 00:00:00 2001 1From fc2773961eaa536e6a617ded7c1a972d979fa2e4 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 5 Jun 2015 19:55:05 -0700 3Date: Fri, 5 Jun 2015 19:55:05 -0700
4Subject: [PATCH] Exclude backtrace() API for non-glibc libraries 4Subject: [PATCH] Exclude backtrace() API for non-glibc libraries
@@ -12,7 +12,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
12 1 file changed, 2 insertions(+), 2 deletions(-) 12 1 file changed, 2 insertions(+), 2 deletions(-)
13 13
14diff --git a/Source/WTF/wtf/Assertions.cpp b/Source/WTF/wtf/Assertions.cpp 14diff --git a/Source/WTF/wtf/Assertions.cpp b/Source/WTF/wtf/Assertions.cpp
15index 1b2091f..ba03a28 100644 15index 1b2091f53..ba03a28ec 100644
16--- a/Source/WTF/wtf/Assertions.cpp 16--- a/Source/WTF/wtf/Assertions.cpp
17+++ b/Source/WTF/wtf/Assertions.cpp 17+++ b/Source/WTF/wtf/Assertions.cpp
18@@ -61,7 +61,7 @@ 18@@ -61,7 +61,7 @@
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb
index 0446bef9..9fc931e9 100644
--- a/recipes-qt/qt5/qtwebkit_git.bb
+++ b/recipes-qt/qt5/qtwebkit_git.bb
@@ -18,10 +18,12 @@ DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt gperf-
18ARM_INSTRUCTION_SET_armv4 = "arm" 18ARM_INSTRUCTION_SET_armv4 = "arm"
19ARM_INSTRUCTION_SET_armv5 = "arm" 19ARM_INSTRUCTION_SET_armv5 = "arm"
20 20
21# Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.9
22# 5.9.meta-qt5.2
21SRC_URI += "\ 23SRC_URI += "\
22 file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \ 24 file://0001-qtwebkit-fix-QA-issue-bad-RPATH.patch \
23 file://0003-Exclude-backtrace-API-for-non-glibc-libraries.patch \
24 file://0001-Remove-unused-check-for-private_tests.patch \ 25 file://0001-Remove-unused-check-for-private_tests.patch \
26 file://0002-Exclude-backtrace-API-for-non-glibc-libraries.patch \
25" 27"
26 28
27PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel \ 29PACKAGECONFIG ??= "gstreamer qtlocation qtmultimedia qtsensors qtwebchannel \
diff --git a/recipes-qt/qt5/qtwebsockets_git.bb b/recipes-qt/qt5/qtwebsockets_git.bb
index 5393ad48..28951057 100644
--- a/recipes-qt/qt5/qtwebsockets_git.bb
+++ b/recipes-qt/qt5/qtwebsockets_git.bb
@@ -1,12 +1,12 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3 3
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 ) & ( GPL-2.0+ | LGPL-3.0 ) | The-Qt-Company-Commercial" 4LICENSE = "GFDL-1.3 & (GPL-3 | LGPL-3.0) | The-Qt-Company-Commercial"
5LIC_FILES_CHKSUM = " \ 5LIC_FILES_CHKSUM = " \
6 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
7 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 6 file://LICENSE.GPL2;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 7 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
9 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 8 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
9 file://LICENSE.LGPL3;md5=e6a600fd5e1d9cbde2d983680233ad02 \
10" 10"
11 11
12DEPENDS += "qtbase qtdeclarative" 12DEPENDS += "qtbase qtdeclarative"
diff --git a/recipes-qt/qt5/qtwebview_git.bb b/recipes-qt/qt5/qtwebview_git.bb
index 4b9e0be8..57abc40d 100644
--- a/recipes-qt/qt5/qtwebview_git.bb
+++ b/recipes-qt/qt5/qtwebview_git.bb
@@ -11,4 +11,12 @@ require qt5-git.inc
11 11
12DEPENDS += "qtbase qtwebengine" 12DEPENDS += "qtbase qtwebengine"
13 13
14COMPATIBLE_MACHINE = "(-)"
15COMPATIBLE_MACHINE_x86 = "(.*)"
16COMPATIBLE_MACHINE_x86-64 = "(.*)"
17COMPATIBLE_MACHINE_armv6 = "(.*)"
18COMPATIBLE_MACHINE_armv7a = "(.*)"
19COMPATIBLE_MACHINE_armv7ve = "(.*)"
20COMPATIBLE_MACHINE_aarch64 = "(.*)"
21
14SRCREV = "7e71daf48c2ee3c3518cbfe6103d212772ccf414" 22SRCREV = "7e71daf48c2ee3c3518cbfe6103d212772ccf414"
diff --git a/recipes-qt/qt5/qtxmlpatterns/run-ptest b/recipes-qt/qt5/qtxmlpatterns/run-ptest
new file mode 100644
index 00000000..044f834d
--- /dev/null
+++ b/recipes-qt/qt5/qtxmlpatterns/run-ptest
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3for x in ` awk '{print $1}' tst_list `;do
4 ./${x};
5done
6
diff --git a/recipes-qt/qt5/qtxmlpatterns_git.bb b/recipes-qt/qt5/qtxmlpatterns_git.bb
index af6a539b..9fc1b5e9 100644
--- a/recipes-qt/qt5/qtxmlpatterns_git.bb
+++ b/recipes-qt/qt5/qtxmlpatterns_git.bb
@@ -1,5 +1,6 @@
1require qt5.inc 1require qt5.inc
2require qt5-git.inc 2require qt5-git.inc
3require qt5-ptest.inc
3 4
4LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )" 5LICENSE = "GFDL-1.3 & BSD & ( GPL-3.0 & The-Qt-Company-GPL-Exception-1.0 | The-Qt-Company-Commercial ) & ( GPL-2.0+ | LGPL-3.0 | The-Qt-Company-Commercial )"
5LIC_FILES_CHKSUM = " \ 6LIC_FILES_CHKSUM = " \
@@ -19,3 +20,4 @@ DEPENDS += "qtbase"
19SRCREV = "9e26cfa167778f3d9444aedcb23c8476683b3785" 20SRCREV = "9e26cfa167778f3d9444aedcb23c8476683b3785"
20 21
21BBCLASSEXTEND =+ "native nativesdk" 22BBCLASSEXTEND =+ "native nativesdk"
23
diff --git a/recipes-qt/quazip/quazip_0.7.2.bb b/recipes-qt/quazip/quazip_0.7.2.bb
deleted file mode 100644
index 6b09cf9c..00000000
--- a/recipes-qt/quazip/quazip_0.7.2.bb
+++ /dev/null
@@ -1,13 +0,0 @@
1SUMMARY = "Qt/C++ wrapper for ZIP/UNZIP package"
2LICENSE = "LGPLv2.1"
3LIC_FILES_CHKSUM = "file://COPYING;md5=27818cd7fd83877a8e3ef82b82798ef4"
4DEPENDS = "qtbase"
5
6SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
7SRC_URI[md5sum] = "84163487a4c3470781c93e5f56c4ca43"
8SRC_URI[sha256sum] = "91d827fbcafd099ae814cc18a8dd3bb709da6b8a27c918ee1c6c03b3f29440f4"
9
10inherit qmake5
11
12EXTRA_QMAKEVARS_PRE += "PREFIX=${prefix}"
13EXTRA_QMAKEVARS_POST += "SUBDIRS=${BPN}"
diff --git a/recipes-qt/quazip/quazip_0.7.3.bb b/recipes-qt/quazip/quazip_0.7.3.bb
new file mode 100644
index 00000000..970204e5
--- /dev/null
+++ b/recipes-qt/quazip/quazip_0.7.3.bb
@@ -0,0 +1,15 @@
1SUMMARY = "Qt/C++ wrapper for ZIP/UNZIP package"
2HOMEPAGE = "http://quazip.sourceforge.net/"
3BUGTRACKER = "https://sourceforge.net/p/quazip/bugs/"
4LICENSE = "LGPLv2.1"
5LIC_FILES_CHKSUM = "file://COPYING;md5=910d778aab53617cbaf13c4e1810e289"
6DEPENDS = "qtbase"
7
8SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.gz"
9SRC_URI[md5sum] = "2ba7dd8b1d6dd588374c9fab5c46e76e"
10SRC_URI[sha256sum] = "2ad4f354746e8260d46036cde1496c223ec79765041ea28eb920ced015e269b5"
11
12inherit qmake5
13
14EXTRA_QMAKEVARS_PRE += "PREFIX=${prefix}"
15EXTRA_QMAKEVARS_POST += "SUBDIRS=${BPN}"
diff --git a/recipes-qt/qwt/qwt-qt5.inc b/recipes-qt/qwt/qwt-qt5.inc
index ee4fbd77..f3ece399 100644
--- a/recipes-qt/qwt/qwt-qt5.inc
+++ b/recipes-qt/qwt/qwt-qt5.inc
@@ -8,9 +8,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=dac2743472b0462ff3cfb4af42051c88"
8DEPENDS = "qtbase qtsvg qttools" 8DEPENDS = "qtbase qtsvg qttools"
9 9
10SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \ 10SRC_URI = "${SOURCEFORGE_MIRROR}/qwt/qwt-${PV}.tar.bz2;name=qwt \
11 file://remove_rpath.patch \
11 " 12 "
12# file://qwt6.patch
13# file://qwt6-fix-linking-with-ld-gold.patch"
14 13
15S = "${WORKDIR}/qwt-${PV}" 14S = "${WORKDIR}/qwt-${PV}"
16 15
@@ -45,3 +44,5 @@ FILES_${PN}-plugins = "${prefix}/plugins/designer/*.so"
45FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug" 44FILES_${PN}-dbg += "${prefix}/plugins/designer/.debug"
46FILES_${PN}-doc += "${prefix}/doc" 45FILES_${PN}-doc += "${prefix}/doc"
47 46
47INSANE_SKIP_${PN}-plugins += "libdir"
48INSANE_SKIP_${PN}-dbg += "libdir"
diff --git a/recipes-qt/qwt/qwt-qt5/remove_rpath.patch b/recipes-qt/qwt/qwt-qt5/remove_rpath.patch
new file mode 100644
index 00000000..14b65d6a
--- /dev/null
+++ b/recipes-qt/qwt/qwt-qt5/remove_rpath.patch
@@ -0,0 +1,17 @@
1Remove rpath from library, it points to build area which is not
2ok
3
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5
6Index: qwt-6.1.3/designer/designer.pro
7===================================================================
8--- qwt-6.1.3.orig/designer/designer.pro
9+++ qwt-6.1.3/designer/designer.pro
10@@ -83,7 +83,6 @@ contains(QWT_CONFIG, QwtDesigner) {
11 # compile the path for finding the Qwt library
12 # into the plugin. Not supported on Windows !
13
14- QMAKE_RPATHDIR *= $${QWT_INSTALL_LIBS}
15 qwtAddLibrary($${QWT_OUT_ROOT}/lib, qwt)
16
17 contains(QWT_CONFIG, QwtDll) {