diff options
author | Mikko Gronoff <mikko.gronoff@qt.io> | 2020-01-12 20:44:47 +0200 |
---|---|---|
committer | Mikko Gronoff <mikko.gronoff@qt.io> | 2020-01-13 12:38:02 +0200 |
commit | 6776ec35cf9b31a2fac8057f540d65ea09373a7f (patch) | |
tree | 970998705de25c309b25c220e1c70014f41b691d | |
parent | 5b2109a88ee8e8a769190e640661434d98b62548 (diff) | |
download | meta-qt5-6776ec35cf9b31a2fac8057f540d65ea09373a7f.tar.gz |
qtbase, qtwebengine: address issues introduced in latest upstream merge
* Replace faulty qtbase patch "0018-input-Make-use-of-timeval-portable-
for-64bit-time_t.patch" with fixed version
* Remove obsolete webengine patch "0004-mkspecs-Allow-builds-with-libc-
glibc.patch"
Change-Id: I02ecbb09a04313b0f68bce8083b5c0a6e0b0c035
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
-rw-r--r-- | recipes-qt/qt5/qtbase/0018-input-Make-use-of-timeval-portable-for-64bit-time_t.patch | 34 | ||||
-rw-r--r-- | recipes-qt/qt5/qtwebengine/0004-mkspecs-Allow-builds-with-libc-glibc.patch | 29 |
2 files changed, 21 insertions, 42 deletions
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 index 76b4671c..0d3b48ff 100644 --- 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 | |||
@@ -1,4 +1,4 @@ | |||
1 | From e06ac2e26c8490a7b8702e9462d1f38244ac3f0f Mon Sep 17 00:00:00 2001 | 1 | From c200c1704501e5a74f72dedc3b3b76567d679e0d Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Mon, 25 Nov 2019 08:27:39 -0800 | 3 | Date: Mon, 25 Nov 2019 08:27:39 -0800 |
4 | Subject: [PATCH] input: Make use of timeval portable for 64bit time_t | 4 | Subject: [PATCH] input: Make use of timeval portable for 64bit time_t |
@@ -9,15 +9,14 @@ and keeps old input.h implementation functional as well. | |||
9 | 9 | ||
10 | See https://sourceware.org/glibc/wiki/Y2038ProofnessDesign | 10 | See https://sourceware.org/glibc/wiki/Y2038ProofnessDesign |
11 | 11 | ||
12 | Upstream-Status: Submitted [https://codereview.qt-project.org/c/qt/qtbase/+/282610] | 12 | Change-Id: Ie4d66a5e7d83065f1a904a542c711431e1d20845 |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | 13 | --- |
15 | .../input/evdevkeyboard/qevdevkeyboardhandler.cpp | 10 +++++++++- | 14 | .../input/evdevkeyboard/qevdevkeyboardhandler.cpp | 10 +++++++++- |
16 | .../input/evdevtouch/qevdevtouchhandler.cpp | 2 +- | 15 | .../input/evdevtouch/qevdevtouchhandler.cpp | 7 ++++++- |
17 | 2 files changed, 10 insertions(+), 2 deletions(-) | 16 | 2 files changed, 15 insertions(+), 2 deletions(-) |
18 | 17 | ||
19 | diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp | 18 | diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp |
20 | index 666613f09d..0e3e0ea0de 100644 | 19 | index 3555763b89..e7dc57c027 100644 |
21 | --- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp | 20 | --- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp |
22 | +++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp | 21 | +++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp |
23 | @@ -58,6 +58,11 @@ | 22 | @@ -58,6 +58,11 @@ |
@@ -32,8 +31,8 @@ index 666613f09d..0e3e0ea0de 100644 | |||
32 | QT_BEGIN_NAMESPACE | 31 | QT_BEGIN_NAMESPACE |
33 | 32 | ||
34 | Q_LOGGING_CATEGORY(qLcEvdevKey, "qt.qpa.input") | 33 | Q_LOGGING_CATEGORY(qLcEvdevKey, "qt.qpa.input") |
35 | @@ -149,7 +154,10 @@ void QEvdevKeyboardHandler::switchLed(int led, bool state) | 34 | @@ -150,7 +155,10 @@ void QEvdevKeyboardHandler::switchLed(int led, bool state) |
36 | qCDebug(qLcEvdevKey) << "switchLed" << led << state; | 35 | qCDebug(qLcEvdevKey, "switchLed %d %d", led, int(state)); |
37 | 36 | ||
38 | struct ::input_event led_ie; | 37 | struct ::input_event led_ie; |
39 | - ::gettimeofday(&led_ie.time, 0); | 38 | - ::gettimeofday(&led_ie.time, 0); |
@@ -45,10 +44,22 @@ index 666613f09d..0e3e0ea0de 100644 | |||
45 | led_ie.code = led; | 44 | led_ie.code = led; |
46 | led_ie.value = state; | 45 | led_ie.value = state; |
47 | diff --git a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 46 | diff --git a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp |
48 | index f86f80785e..3914698f2a 100644 | 47 | index 78728ef4ce..1d65f9b9f7 100644 |
49 | --- a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 48 | --- a/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp |
50 | +++ b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp | 49 | +++ b/src/platformsupport/input/evdevtouch/qevdevtouchhandler.cpp |
51 | @@ -568,7 +568,7 @@ void QEvdevTouchScreenData::processInputEvent(input_event *data) | 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) | ||
52 | 63 | ||
53 | // update timestamps | 64 | // update timestamps |
54 | m_lastTimeStamp = m_timeStamp; | 65 | m_lastTimeStamp = m_timeStamp; |
@@ -57,6 +68,3 @@ index f86f80785e..3914698f2a 100644 | |||
57 | 68 | ||
58 | m_lastTouchPoints = m_touchPoints; | 69 | m_lastTouchPoints = m_touchPoints; |
59 | m_touchPoints.clear(); | 70 | m_touchPoints.clear(); |
60 | -- | ||
61 | 2.24.0 | ||
62 | |||
diff --git a/recipes-qt/qt5/qtwebengine/0004-mkspecs-Allow-builds-with-libc-glibc.patch b/recipes-qt/qt5/qtwebengine/0004-mkspecs-Allow-builds-with-libc-glibc.patch deleted file mode 100644 index 73ef469f..00000000 --- a/recipes-qt/qt5/qtwebengine/0004-mkspecs-Allow-builds-with-libc-glibc.patch +++ /dev/null | |||
@@ -1,29 +0,0 @@ | |||
1 | From a5c8d833ffb8b54626b7b670b2782a6cf9a45075 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 12 Nov 2019 19:53:59 -0800 | ||
4 | Subject: [PATCH] mkspecs: Allow builds with libc != glibc | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | mkspecs/features/configure.prf | 5 ----- | ||
9 | 1 file changed, 5 deletions(-) | ||
10 | |||
11 | diff --git a/mkspecs/features/configure.prf b/mkspecs/features/configure.prf | ||
12 | index cc84182b..c278ffae 100644 | ||
13 | --- a/mkspecs/features/configure.prf | ||
14 | +++ b/mkspecs/features/configure.prf | ||
15 | @@ -75,11 +75,6 @@ defineTest(runConfigure) { | ||
16 | return(false) | ||
17 | } | ||
18 | |||
19 | - !qtConfig(webengine-system-glibc) { | ||
20 | - skipBuild("A suitable version >= 2.27 of libc could not be found.") | ||
21 | - return(false) | ||
22 | - } | ||
23 | - | ||
24 | QT_FOR_CONFIG += gui-private | ||
25 | |||
26 | !qtConfig(webengine-system-khr) { | ||
27 | -- | ||
28 | 2.24.0 | ||
29 | |||