summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5
diff options
context:
space:
mode:
authorMikko Gronoff <mikko.gronoff@qt.io>2020-01-13 15:40:55 +0200
committerMikko Gronoff <mikko.gronoff@qt.io>2020-01-14 10:02:55 +0200
commit15ce669550e7ee0dae4d16e7cd26d03e7a7a1cf4 (patch)
treeefda9c84b34f6d3f5a37080f0c6398de37bebaef /recipes-qt/qt5
parent370845a0acaa28d34800dcb08bf76e0d7aeeadb0 (diff)
parent9ff0a36249205d36bb44cc34a26cb6201180a89f (diff)
downloadmeta-qt5-15ce669550e7ee0dae4d16e7cd26d03e7a7a1cf4.tar.gz
Merge remote-tracking branch 'qt/5.14' into 5.15
NOTE: Qt License agreement update needs more recent Qt modules content from 5.15 branch. Follow-up commit (submodule update) will address the issue. * qt/5.14: 9ff0a362 coin: update poky to 3.1_M1 from master 6776ec35 qtbase, qtwebengine: address issues introduced in latest upstream merge 5b2109a8 Merge remote-tracking branch 'qt/upstream/master' into 5.14 e4e2acba qtbase: Adjust target mkspec settings e8ea2389 qt5: update submodules d8e970eb knx, opcua: update changefiles ca08d8c7 qt5: update submodules f7841daf qt5: update submodules 25039161 qtwebengine: Fix build with 64bit time_t on 32bit architectures 280139a9 qt5: update submodules 4f3ed3ed qtwebkit: add missing flex-native dep 456ec4ac qt5-creator, qtbase: Replace python with python3 f264e5dd qtdeclarative: Ask for python3 explicitly f6ad80f9 qtbase: Fix build on 32bit arches with 64bit time_t b7f4bd20 recipes: Use features_check instead of distro_features_check 1a4ee018 qtwebengine: Fix musl build 02715fff pyqt5: Upgrade to 5.13.2 Conflicts: coin/module_config.yaml recipes-qt/qt5/nativesdk-qtbase_git.bb recipes-qt/qt5/qt3d_git.bb recipes-qt/qt5/qt5-git.inc recipes-qt/qt5/qtbase-native_git.bb recipes-qt/qt5/qtbase_git.bb recipes-qt/qt5/qtcharts_git.bb recipes-qt/qt5/qtcoap_git.bb recipes-qt/qt5/qtconnectivity_git.bb recipes-qt/qt5/qtdatavis3d_git.bb recipes-qt/qt5/qtdeclarative_git.bb recipes-qt/qt5/qtgamepad_git.bb recipes-qt/qt5/qtgraphicaleffects_git.bb recipes-qt/qt5/qtimageformats_git.bb recipes-qt/qt5/qtknx_git.bb recipes-qt/qt5/qtlocation_git.bb recipes-qt/qt5/qtlottie_git.bb recipes-qt/qt5/qtmqtt_git.bb recipes-qt/qt5/qtmultimedia_git.bb recipes-qt/qt5/qtnetworkauth_git.bb recipes-qt/qt5/qtopcua_git.bb recipes-qt/qt5/qtpurchasing_git.bb recipes-qt/qt5/qtquick3d_git.bb recipes-qt/qt5/qtquickcontrols2_git.bb recipes-qt/qt5/qtquickcontrols_git.bb recipes-qt/qt5/qtremoteobjects_git.bb recipes-qt/qt5/qtscript_git.bb recipes-qt/qt5/qtscxml_git.bb recipes-qt/qt5/qtsensors_git.bb recipes-qt/qt5/qtserialbus_git.bb recipes-qt/qt5/qtserialport_git.bb recipes-qt/qt5/qtsvg_git.bb recipes-qt/qt5/qttools_git.bb recipes-qt/qt5/qttranslations_git.bb recipes-qt/qt5/qtvirtualkeyboard_git.bb recipes-qt/qt5/qtwayland_git.bb recipes-qt/qt5/qtwebchannel_git.bb recipes-qt/qt5/qtwebengine_git.bb recipes-qt/qt5/qtwebglplugin_git.bb recipes-qt/qt5/qtwebsockets_git.bb recipes-qt/qt5/qtwebview_git.bb recipes-qt/qt5/qtx11extras_git.bb recipes-qt/qt5/qtxmlpatterns_git.bb Change-Id: I98dab678c9904aef591fe933bf081b3f297e2021
Diffstat (limited to 'recipes-qt/qt5')
-rw-r--r--recipes-qt/qt5/nativesdk-qtbase_git.bb3
-rw-r--r--recipes-qt/qt5/qt5-creator_git.bb2
-rw-r--r--recipes-qt/qt5/qtbase-native_git.bb3
-rw-r--r--recipes-qt/qt5/qtbase/0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch70
-rw-r--r--recipes-qt/qt5/qtbase_git.bb25
-rw-r--r--recipes-qt/qt5/qtdeclarative/0001-Use-python3-explicitly.patch60
-rw-r--r--recipes-qt/qt5/qtdeclarative_git.bb5
-rw-r--r--recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch70
-rw-r--r--recipes-qt/qt5/qtwebengine_git.bb1
-rw-r--r--recipes-qt/qt5/qtwebkit_git.bb2
10 files changed, 232 insertions, 9 deletions
diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb
index 35c35910..2a3778cf 100644
--- a/recipes-qt/qt5/nativesdk-qtbase_git.bb
+++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = " \
10 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 10 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
11 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 11 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
13 file://LICENSE.QT-LICENSE-AGREEMENT-4.0;md5=948f8877345cd66106f11031977a4625 \ 13 file://LICENSE.QT-LICENSE-AGREEMENT;md5=c8b6dd132d52c6e5a545df07a4e3e283 \
14" 14"
15 15
16QT_MODULE = "qtbase" 16QT_MODULE = "qtbase"
@@ -42,6 +42,7 @@ SRC_URI += "\
42 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 42 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
43 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 43 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
44 file://0017-qfloat16-check-for-__ARM_FP-2.patch \ 44 file://0017-qfloat16-check-for-__ARM_FP-2.patch \
45 file://0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch \
45" 46"
46 47
47# common for qtbase-native and nativesdk-qtbase 48# common for qtbase-native and nativesdk-qtbase
diff --git a/recipes-qt/qt5/qt5-creator_git.bb b/recipes-qt/qt5/qt5-creator_git.bb
index a3960042..a2717ee6 100644
--- a/recipes-qt/qt5/qt5-creator_git.bb
+++ b/recipes-qt/qt5/qt5-creator_git.bb
@@ -66,7 +66,7 @@ FILES_${PN}-dev += " \
66 ${libdir}${QT_DIR_NAME}/qtcreator/*${SOLIBSDEV} \ 66 ${libdir}${QT_DIR_NAME}/qtcreator/*${SOLIBSDEV} \
67" 67"
68 68
69RDEPENDS_${PN} += "perl python" 69RDEPENDS_${PN} += "perl python3"
70RCONFLICTS_${PN} = "qt-creator" 70RCONFLICTS_${PN} = "qt-creator"
71 71
72# To give best user experience out of the box.. 72# To give best user experience out of the box..
diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb
index 86f17b7d..d89a2b40 100644
--- a/recipes-qt/qt5/qtbase-native_git.bb
+++ b/recipes-qt/qt5/qtbase-native_git.bb
@@ -10,7 +10,7 @@ LIC_FILES_CHKSUM = " \
10 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 10 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
11 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 11 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
13 file://LICENSE.QT-LICENSE-AGREEMENT-4.0;md5=948f8877345cd66106f11031977a4625 \ 13 file://LICENSE.QT-LICENSE-AGREEMENT;md5=c8b6dd132d52c6e5a545df07a4e3e283 \
14" 14"
15 15
16require qt5-native.inc 16require qt5-native.inc
@@ -37,6 +37,7 @@ SRC_URI += "\
37 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 37 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
38 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 38 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
39 file://0017-qfloat16-check-for-__ARM_FP-2.patch \ 39 file://0017-qfloat16-check-for-__ARM_FP-2.patch \
40 file://0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch \
40" 41"
41 42
42# common for qtbase-native and nativesdk-qtbase 43# common for qtbase-native and nativesdk-qtbase
diff --git a/recipes-qt/qt5/qtbase/0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch b/recipes-qt/qt5/qtbase/0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch
new file mode 100644
index 00000000..0d3b48ff
--- /dev/null
+++ b/recipes-qt/qt5/qtbase/0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch
@@ -0,0 +1,70 @@
1From c200c1704501e5a74f72dedc3b3b76567d679e0d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 25 Nov 2019 08:27:39 -0800
4Subject: [PATCH] input: Make use of timeval portable for 64bit time_t
5
6This patch avoids using time field of input_event structure which is not available
7on 32bit arches supporting 64bit time_t structs, Patch makes it compatible with new
8and keeps old input.h implementation functional as well.
9
10See https://sourceware.org/glibc/wiki/Y2038ProofnessDesign
11
12Change-Id: Ie4d66a5e7d83065f1a904a542c711431e1d20845
13---
14 .../input/evdevkeyboard/qevdevkeyboardhandler.cpp | 10 +++++++++-
15 .../input/evdevtouch/qevdevtouchhandler.cpp | 7 ++++++-
16 2 files changed, 15 insertions(+), 2 deletions(-)
17
18diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp
19index 3555763b89..e7dc57c027 100644
20--- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp
21+++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp
22@@ -58,6 +58,11 @@
23 #include <linux/input.h>
24 #endif
25
26+#ifndef input_event_sec
27+#define input_event_sec time.tv_sec
28+#define input_event_usec time.tv_usec
29+#endif
30+
31 QT_BEGIN_NAMESPACE
32
33 Q_LOGGING_CATEGORY(qLcEvdevKey, "qt.qpa.input")
34@@ -150,7 +155,10 @@ void QEvdevKeyboardHandler::switchLed(int led, bool state)
35 qCDebug(qLcEvdevKey, "switchLed %d %d", led, int(state));
36
37 struct ::input_event led_ie;
38- ::gettimeofday(&led_ie.time, 0);
39+ struct timeval tval;
40+ ::gettimeofday(&tval, 0);
41+ led_ie.input_event_sec = tval.tv_sec;
42+ led_ie.input_event_usec = tval.tv_usec;
43 led_ie.type = EV_LED;
44 led_ie.code = led;
45 led_ie.value = state;
46diff --git a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp
47index 78728ef4ce..1d65f9b9f7 100644
48--- a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp
49+++ b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp
50@@ -58,6 +58,11 @@
51 #include <linux/input.h>
52 #endif
53
54+#ifndef input_event_sec
55+#define input_event_sec time.tv_sec
56+#define input_event_usec time.tv_usec
57+#endif
58+
59 #include <math.h>
60
61 #if QT_CONFIG(mtdev)
62@@ -573,7 +578,7 @@ void QEvdevTouchScreenData::processInputEvent(input_event *data)
63
64 // update timestamps
65 m_lastTimeStamp = m_timeStamp;
66- m_timeStamp = data->time.tv_sec + data->time.tv_usec / 1000000.0;
67+ m_timeStamp = data->input_event_sec + data->input_event_usec / 1000000.0;
68
69 m_lastTouchPoints = m_touchPoints;
70 m_touchPoints.clear();
diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb
index 8e1cf64c..044297dd 100644
--- a/recipes-qt/qt5/qtbase_git.bb
+++ b/recipes-qt/qt5/qtbase_git.bb
@@ -9,7 +9,7 @@ LIC_FILES_CHKSUM = " \
9 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \ 9 file://LICENSE.GPL3;md5=d32239bcb673463ab874e80d47fae504 \
10 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \ 10 file://LICENSE.GPL3-EXCEPT;md5=763d8c535a234d9a3fb682c7ecb6c073 \
11 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 11 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
12 file://LICENSE.QT-LICENSE-AGREEMENT-4.0;md5=948f8877345cd66106f11031977a4625 \ 12 file://LICENSE.QT-LICENSE-AGREEMENT;md5=c8b6dd132d52c6e5a545df07a4e3e283 \
13" 13"
14 14
15# common for qtbase-native, qtbase-nativesdk and qtbase 15# common for qtbase-native, qtbase-nativesdk and qtbase
@@ -33,6 +33,7 @@ SRC_URI += "\
33 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \ 33 file://0015-corelib-Include-sys-types.h-for-uint32_t.patch \
34 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ 34 file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
35 file://0017-qfloat16-check-for-__ARM_FP-2.patch \ 35 file://0017-qfloat16-check-for-__ARM_FP-2.patch \
36 file://0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch \
36" 37"
37 38
38# for syncqt 39# for syncqt
@@ -264,8 +265,8 @@ do_install_append() {
264 265
265 generate_target_qt_config_file ${D}${OE_QMAKE_PATH_BINS}/qt.conf 266 generate_target_qt_config_file ${D}${OE_QMAKE_PATH_BINS}/qt.conf
266 267
267 # Fix up absolute paths in scripts 268 # Fix up absolute paths in scripts and use python3 instead of python
268 sed -i -e '1s,#!/usr/bin/python,#! ${USRBINPATH}/env python,' \ 269 sed -i -e '1s,#!/usr/bin/python$,#! ${USRBINPATH}/env python3,' \
269 ${D}${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/uikit/devices.py 270 ${D}${OE_QMAKE_PATH_QT_ARCHDATA}/mkspecs/features/uikit/devices.py
270} 271}
271 272
@@ -274,4 +275,22 @@ INSANE_SKIP_${PN}-mkspecs += "file-rdeps"
274 275
275RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}" 276RRECOMMENDS_${PN}-plugins += "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libx11-locale', '', d)}"
276 277
278TARGET_MKSPEC ?= "linux-g++"
279
280# use clean mkspecs on target
281pkg_postinst_${PN}-tools () {
282sed -i \
283 -e 's:HostSpec =.*:HostSpec = ${TARGET_MKSPEC}:g' \
284 -e 's:TargetSpec =.*:TargetSpec = ${TARGET_MKSPEC}:g' \
285 $D${OE_QMAKE_PATH_BINS}/qt.conf
286}
287
288pkg_postinst_${PN}-mkspecs () {
289sed -i 's: cross_compile : :g' $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qconfig.pri
290sed -i \
291 -e 's: cross_compile : :g' \
292 -e 's:HOST_QT_TOOLS =.*::g' \
293 $D${OE_QMAKE_PATH_ARCHDATA}/mkspecs/qmodule.pri
294}
295
277SRCREV = "3c7df4a0ff91a833cf77e38ab8ccd65e289242e9" 296SRCREV = "3c7df4a0ff91a833cf77e38ab8ccd65e289242e9"
diff --git a/recipes-qt/qt5/qtdeclarative/0001-Use-python3-explicitly.patch b/recipes-qt/qt5/qtdeclarative/0001-Use-python3-explicitly.patch
new file mode 100644
index 00000000..e1067016
--- /dev/null
+++ b/recipes-qt/qt5/qtdeclarative/0001-Use-python3-explicitly.patch
@@ -0,0 +1,60 @@
1From dc94032e6132b41bd6927357e4a57c31436294eb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 26 Nov 2019 21:10:03 -0800
4Subject: [PATCH] Use python3 explicitly
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8 qtdeclarative.pro | 2 +-
9 src/3rdparty/masm/masm.pri | 4 ++--
10 tests/auto/qml/ecmascripttests/test262.py | 2 +-
11 3 files changed, 4 insertions(+), 4 deletions(-)
12
13diff --git a/qtdeclarative.pro b/qtdeclarative.pro
14index 5b94da9b6..0e3496ce8 100644
15--- a/qtdeclarative.pro
16+++ b/qtdeclarative.pro
17@@ -2,7 +2,7 @@ CONFIG += tests_need_tools examples_need_tools
18 load(qt_parts)
19
20 !python_available {
21- py_out = $$system('python -c "print(1)"')
22+ py_out = $$system('python3 -c "print(1)"')
23 !equals(py_out, 1): error("Building QtQml requires Python.")
24 tmp = python_available
25 CONFIG += $$tmp
26diff --git a/src/3rdparty/masm/masm.pri b/src/3rdparty/masm/masm.pri
27index 0e63ac2ce..7a30ab64e 100644
28--- a/src/3rdparty/masm/masm.pri
29+++ b/src/3rdparty/masm/masm.pri
30@@ -58,7 +58,7 @@ contains(DEFINES, WTF_USE_UDIS86=1) {
31 udis86.output = udis86_itab.h
32 udis86.input = ITAB
33 udis86.CONFIG += no_link
34- udis86.commands = python $$PWD/disassembler/udis86/itab.py ${QMAKE_FILE_IN}
35+ udis86.commands = python3 $$PWD/disassembler/udis86/itab.py ${QMAKE_FILE_IN}
36 QMAKE_EXTRA_COMPILERS += udis86
37
38 udis86_tab_cfile.target = $$OUT_PWD/udis86_itab.c
39@@ -113,7 +113,7 @@ retgen.output = $$GENERATEDDIR/RegExpJitTables.h
40 retgen.script = $$PWD/yarr/create_regex_tables
41 retgen.input = retgen.script
42 retgen.CONFIG += no_link
43-retgen.commands = python $$retgen.script > ${QMAKE_FILE_OUT}
44+retgen.commands = python3 $$retgen.script > ${QMAKE_FILE_OUT}
45 QMAKE_EXTRA_COMPILERS += retgen
46
47 # Taken from WebKit/Tools/qmake/mkspecs/features/unix/default_post.prf
48diff --git a/tests/auto/qml/ecmascripttests/test262.py b/tests/auto/qml/ecmascripttests/test262.py
49index 19551e3ba..bf3f79a45 100755
50--- a/tests/auto/qml/ecmascripttests/test262.py
51+++ b/tests/auto/qml/ecmascripttests/test262.py
52@@ -1,4 +1,4 @@
53-#!/usr/bin/env python
54+#!/usr/bin/env python3
55 #############################################################################
56 ##
57 ## Copyright (C) 2017 The Qt Company Ltd.
58--
592.24.0
60
diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb
index 4f3aba91..134f232b 100644
--- a/recipes-qt/qt5/qtdeclarative_git.bb
+++ b/recipes-qt/qt5/qtdeclarative_git.bb
@@ -12,12 +12,13 @@ LIC_FILES_CHKSUM = " \
12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \ 12 file://LICENSE.FDL;md5=6d9f2a9af4c8b8c3c769f6cc1b6aaf7e \
13" 13"
14 14
15DEPENDS += "qtbase"
16
17SRC_URI += "\ 15SRC_URI += "\
18 file://0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch \ 16 file://0001-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS-to-locate-qmlca.patch \
17 file://0001-Use-python3-explicitly.patch \
19" 18"
20 19
20DEPENDS += "qtbase"
21
21PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}" 22PACKAGECONFIG ??= "qml-debug qml-network ${@bb.utils.contains('DISTRO_FEATURES', 'qt5-static', 'static', '', d)}"
22PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug" 23PACKAGECONFIG[qml-debug] = "-qml-debug,-no-qml-debug"
23PACKAGECONFIG[qml-network] = "-qml-network, -no-qml-network" 24PACKAGECONFIG[qml-network] = "-qml-network, -no-qml-network"
diff --git a/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch b/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch
new file mode 100644
index 00000000..ac16068c
--- /dev/null
+++ b/recipes-qt/qt5/qtwebengine/chromium/0021-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch
@@ -0,0 +1,70 @@
1From 6ae9112ffea9a5b7d41a06c3d33e55e4f32d8b5a Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 30 Nov 2019 10:07:43 -0800
4Subject: [PATCH] Fix build on 32bit arches with 64bit time_t
5
6time element is deprecated on new input_event structure in kernel's
7input.h [1]
8
9[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=152194fe9c3f
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 chromium/ui/events/ozone/evdev/event_converter_evdev.cc | 4 ++--
14 chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc | 6 +++---
15 chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h | 5 +++++
16 3 files changed, 10 insertions(+), 5 deletions(-)
17
18diff --git a/chromium/ui/events/ozone/evdev/event_converter_evdev.cc b/chromium/ui/events/ozone/evdev/event_converter_evdev.cc
19index 684514ff011..e2f2ae0b633 100644
20--- a/chromium/ui/events/ozone/evdev/event_converter_evdev.cc
21+++ b/chromium/ui/events/ozone/evdev/event_converter_evdev.cc
22@@ -168,8 +168,8 @@ void EventConverterEvdev::SetPalmSuppressionCallback(
23 base::TimeTicks EventConverterEvdev::TimeTicksFromInputEvent(
24 const input_event& event) {
25 base::TimeTicks timestamp =
26- ui::EventTimeStampFromSeconds(event.time.tv_sec) +
27- base::TimeDelta::FromMicroseconds(event.time.tv_usec);
28+ ui::EventTimeStampFromSeconds(event.input_event_sec) +
29+ base::TimeDelta::FromMicroseconds(event.input_event_usec);
30 ValidateEventTimeClock(&timestamp);
31 return timestamp;
32 }
33diff --git a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc
34index 363c3183e05..4fccfd62f84 100644
35--- a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc
36+++ b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.cc
37@@ -59,11 +59,11 @@ void TouchEventLogEvdev::DumpLog(const char* filename) {
38 for (int i = 0; i < kDebugBufferSize; ++i) {
39 struct TouchEvent* te =
40 &logged_events_[(debug_buffer_tail_ + i) % kDebugBufferSize];
41- if (te->ev.time.tv_sec == 0 && te->ev.time.tv_usec == 0)
42+ if (te->ev.input_event_sec == 0 && te->ev.input_event_usec == 0)
43 continue;
44 std::string event_string = base::StringPrintf(
45- "E: %ld.%06ld %04x %04x %d %d\n", te->ev.time.tv_sec,
46- te->ev.time.tv_usec, te->ev.type, te->ev.code, te->ev.value, te->slot);
47+ "E: %ld.%06ld %04x %04x %d %d\n", te->ev.input_event_sec,
48+ te->ev.input_event_usec, te->ev.type, te->ev.code, te->ev.value, te->slot);
49 report_content += event_string;
50 }
51 file.Write(0, report_content.c_str(), report_content.length());
52diff --git a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h
53index ccd3a499a38..5a2da89d09a 100644
54--- a/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h
55+++ b/chromium/ui/events/ozone/evdev/touch_evdev_debug_buffer.h
56@@ -14,6 +14,11 @@
57
58 #include "ui/events/ozone/evdev/events_ozone_evdev_export.h"
59
60+#ifndef input_event_sec
61+#define input_event_sec time.tv_sec
62+#define input_event_usec time.tv_usec
63+#endif
64+
65 namespace ui {
66
67 class EventDeviceInfo;
68--
692.24.0
70
diff --git a/recipes-qt/qt5/qtwebengine_git.bb b/recipes-qt/qt5/qtwebengine_git.bb
index 5c52de31..aaebc5af 100644
--- a/recipes-qt/qt5/qtwebengine_git.bb
+++ b/recipes-qt/qt5/qtwebengine_git.bb
@@ -159,6 +159,7 @@ SRC_URI += " \
159 file://chromium/0005-chromium-Do-not-try-to-set-the-guessed-values-for-ma.patch;patchdir=src/3rdparty \ 159 file://chromium/0005-chromium-Do-not-try-to-set-the-guessed-values-for-ma.patch;patchdir=src/3rdparty \
160 file://chromium/0006-chromium-aarch64-skia-build-fix.patch;patchdir=src/3rdparty \ 160 file://chromium/0006-chromium-aarch64-skia-build-fix.patch;patchdir=src/3rdparty \
161 file://chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch;patchdir=src/3rdparty \ 161 file://chromium/0007-chromium-fix-build-after-y2038-changes-in-glibc.patch;patchdir=src/3rdparty \
162 file://chromium/0021-chromium-Fix-build-on-32bit-arches-with-64bit-time_t.patch;patchdir=src/3rdparty \
162" 163"
163 164
164SRC_URI_append_libc-musl = "\ 165SRC_URI_append_libc-musl = "\
diff --git a/recipes-qt/qt5/qtwebkit_git.bb b/recipes-qt/qt5/qtwebkit_git.bb
index 807be20c..53f3043e 100644
--- a/recipes-qt/qt5/qtwebkit_git.bb
+++ b/recipes-qt/qt5/qtwebkit_git.bb
@@ -7,7 +7,7 @@ LIC_FILES_CHKSUM = " \
7 file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee \ 7 file://Source/JavaScriptCore/parser/Parser.h;endline=21;md5=bd69f72183a7af673863f057576e21ee \
8" 8"
9 9
10DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt gperf-native bison-native" 10DEPENDS += "qtbase qtdeclarative icu ruby-native sqlite3 glib-2.0 libxslt gperf-native bison-native flex-native"
11 11
12# Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.13 12# Patches from https://github.com/meta-qt5/qtwebkit/commits/b5.13
13# 5.13.meta-qt5.1 13# 5.13.meta-qt5.1