summaryrefslogtreecommitdiffstats
path: root/recipes-qt/qt5/qtbase
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-qt/qt5/qtbase')
-rw-r--r--recipes-qt/qt5/qtbase/0001-Add-linux-oe-g-platform.patch8
-rw-r--r--recipes-qt/qt5/qtbase/0004-configure-bump-path-length-from-256-to-512-character.patch6
-rw-r--r--recipes-qt/qt5/qtbase/0008-Replace-pthread_yield-with-sched_yield.patch8
-rw-r--r--recipes-qt/qt5/qtbase/0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch49
-rw-r--r--recipes-qt/qt5/qtbase/0017-input-Make-use-of-timeval-portable-for-64bit-time_t.patch70
-rw-r--r--recipes-qt/qt5/qtbase/0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch18
6 files changed, 20 insertions, 139 deletions
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 a8d85346..37e0a6a9 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 8442f94819458c79a88ad6177207c0e922a007bd Mon Sep 17 00:00:00 2001 1From c97da220d95091386724e1eadc360ed16ed52dfe 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
@@ -65,10 +65,10 @@ index 934a18a924..0f5b1b6333 100644
65 msg = "test $$1 succeeded" 65 msg = "test $$1 succeeded"
66 write_file($$QMAKE_CONFIG_LOG, msg, append) 66 write_file($$QMAKE_CONFIG_LOG, msg, append)
67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf 67diff --git a/mkspecs/features/qt.prf b/mkspecs/features/qt.prf
68index 99b7fe6562..1ddfddb2bd 100644 68index 69d1954306..37f7c9c4a2 100644
69--- a/mkspecs/features/qt.prf 69--- a/mkspecs/features/qt.prf
70+++ b/mkspecs/features/qt.prf 70+++ b/mkspecs/features/qt.prf
71@@ -148,7 +148,7 @@ import_plugins:qtConfig(static) { 71@@ -151,7 +151,7 @@ import_plugins:qtConfig(static) {
72 plug_name = $$QMAKE_PREFIX_STATICLIB$${plug}$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB 72 plug_name = $$QMAKE_PREFIX_STATICLIB$${plug}$$qtPlatformTargetSuffix().$$QMAKE_EXTENSION_STATICLIB
73 plug_path = $$eval(QT_PLUGIN.$${plug}.PATH) 73 plug_path = $$eval(QT_PLUGIN.$${plug}.PATH)
74 isEmpty(plug_path): \ 74 isEmpty(plug_path): \
@@ -77,7 +77,7 @@ index 99b7fe6562..1ddfddb2bd 100644
77 LIBS += $$plug_path/$$plug_type/$$plug_name 77 LIBS += $$plug_path/$$plug_type/$$plug_name
78 } else { 78 } else {
79 LIBS += -l$${plug}$$qtPlatformTargetSuffix() 79 LIBS += -l$${plug}$$qtPlatformTargetSuffix()
80@@ -271,8 +271,8 @@ for(ever) { 80@@ -274,8 +274,8 @@ for(ever) {
81 # static builds: link qml import plugins into the target. 81 # static builds: link qml import plugins into the target.
82 contains(all_qt_module_deps, qml): \ 82 contains(all_qt_module_deps, qml): \
83 qtConfig(static):import_plugins:!host_build:!no_import_scan { 83 qtConfig(static):import_plugins:!host_build:!no_import_scan {
diff --git a/recipes-qt/qt5/qtbase/0004-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 f91792c0..751e59d7 100644
--- a/recipes-qt/qt5/qtbase/0004-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 56eb22b1063d9bbdcf6ec39828e4c3498b72c99c Mon Sep 17 00:00:00 2001 1From 44e37eab48ff04bd20815fd4ae0b5d79d493aabc 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 e775bf046e..a20eded987 100644 18index 49755f7abf..f84862d1ca 100644
19--- a/configure.pri 19--- a/configure.pri
20+++ b/configure.pri 20+++ b/configure.pri
21@@ -876,10 +876,10 @@ defineTest(qtConfOutput_preparePaths) { 21@@ -883,10 +883,10 @@ defineTest(qtConfOutput_preparePaths) {
22 22
23 $${currentConfig}.output.qconfigSource = \ 23 $${currentConfig}.output.qconfigSource = \
24 "/* Installation Info */" \ 24 "/* Installation Info */" \
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
index 4353d43e..08a79898 100644
--- 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
@@ -1,4 +1,4 @@
1From c4393e037ebfc6bfa1a58ceab29fdb78389cd47e Mon Sep 17 00:00:00 2001 1From 18904a169397f343e75bee5f29fa9ae1444a295f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 27 Jul 2017 08:02:51 -0700 3Date: Thu, 27 Jul 2017 08:02:51 -0700
4Subject: [PATCH] Replace pthread_yield with sched_yield 4Subject: [PATCH] Replace pthread_yield with sched_yield
@@ -36,7 +36,7 @@ index 19b3289390..4d0cdf8b5f 100644
36 QMetaType info(tp); 36 QMetaType info(tp);
37 if (!info.isValid()) { 37 if (!info.isValid()) {
38diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp 38diff --git a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
39index 6dd390ccbd..43b92606d9 100644 39index e397e80fe0..cdb7893e56 100644
40--- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp 40--- a/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
41+++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp 41+++ b/tests/auto/network/socket/qtcpsocket/tst_qtcpsocket.cpp
42@@ -78,6 +78,7 @@ 42@@ -78,6 +78,7 @@
@@ -46,8 +46,8 @@ index 6dd390ccbd..43b92606d9 100644
46+#include <sched.h> 46+#include <sched.h>
47 #endif 47 #endif
48 48
49 #include "private/qhostinfo_p.h" 49 #include <memory>
50@@ -2199,8 +2200,8 @@ public slots: 50@@ -2200,8 +2201,8 @@ public slots:
51 51
52 #if defined(Q_OS_MAC) 52 #if defined(Q_OS_MAC)
53 pthread_yield_np(); 53 pthread_yield_np();
diff --git a/recipes-qt/qt5/qtbase/0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch b/recipes-qt/qt5/qtbase/0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
deleted file mode 100644
index 147e304d..00000000
--- a/recipes-qt/qt5/qtbase/0012-mkspecs-common-gcc-base.conf-Use-I-instead-of-isyste.patch
+++ /dev/null
@@ -1,49 +0,0 @@
1From 47d2068fa96173b68bcbc45a80a66d7c9cbf4775 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 14 Feb 2018 17:08:43 -0800
4Subject: [PATCH] mkspecs/common/gcc-base.conf: Use -I instead of -isystem
5
6-isystem fails to build when code uses include_next on certain files e.g.
7
8qtbase/5.10.0+gitAUTOINC+50117d738a-r0/recipe-sysroot/usr/include/c++/7.3.0/cstdlib:75:15: fatal error: stdlib.h: No such file or directory
9 #include_next <stdlib.h>
10 ^~~~~~~~~~
11compilation terminated.
12make[2]: *** [Makefile:11592: .obj/qgenericpluginfactory.o] Error 1
13
14Upstream-Status: Pending
15
16Change-Id: Ia47832a6339a6ee59c0a6301fc5e552cd28b1029
17Signed-off-by: Khem Raj <raj.khem@gmail.com>
18Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
19---
20 mkspecs/common/clang.conf | 2 +-
21 mkspecs/common/gcc-base.conf | 2 +-
22 2 files changed, 2 insertions(+), 2 deletions(-)
23
24diff --git a/mkspecs/common/clang.conf b/mkspecs/common/clang.conf
25index 2499c8b6d8..2e79e083cd 100644
26--- a/mkspecs/common/clang.conf
27+++ b/mkspecs/common/clang.conf
28@@ -18,7 +18,7 @@ QMAKE_PCH_OUTPUT_EXT = .pch
29
30 QMAKE_CFLAGS_OPTIMIZE_SIZE = -Oz
31
32-QMAKE_CFLAGS_ISYSTEM = -isystem
33+QMAKE_CFLAGS_ISYSTEM =
34 QMAKE_CFLAGS_PRECOMPILE = -x c-header -c ${QMAKE_PCH_INPUT} -o ${QMAKE_PCH_OUTPUT}
35 QMAKE_CFLAGS_USE_PRECOMPILE = -Xclang -include-pch -Xclang ${QMAKE_PCH_OUTPUT}
36 QMAKE_CFLAGS_LTCG = -flto=thin
37diff --git a/mkspecs/common/gcc-base.conf b/mkspecs/common/gcc-base.conf
38index 1f919d270a..adf3fead32 100644
39--- a/mkspecs/common/gcc-base.conf
40+++ b/mkspecs/common/gcc-base.conf
41@@ -46,7 +46,7 @@ QMAKE_CFLAGS_DEBUG += -g
42 QMAKE_CFLAGS_SHLIB += $$QMAKE_CFLAGS_PIC
43 QMAKE_CFLAGS_STATIC_LIB += $$QMAKE_CFLAGS_PIC
44 QMAKE_CFLAGS_APP += $$QMAKE_CFLAGS_PIC
45-QMAKE_CFLAGS_ISYSTEM = -isystem
46+QMAKE_CFLAGS_ISYSTEM =
47 QMAKE_CFLAGS_YACC += -Wno-unused -Wno-parentheses
48 QMAKE_CFLAGS_HIDESYMS += -fvisibility=hidden
49 QMAKE_CFLAGS_EXCEPTIONS_OFF += -fno-exceptions
diff --git a/recipes-qt/qt5/qtbase/0017-input-Make-use-of-timeval-portable-for-64bit-time_t.patch b/recipes-qt/qt5/qtbase/0017-input-Make-use-of-timeval-portable-for-64bit-time_t.patch
deleted file mode 100644
index 341be6ad..00000000
--- a/recipes-qt/qt5/qtbase/0017-input-Make-use-of-timeval-portable-for-64bit-time_t.patch
+++ /dev/null
@@ -1,70 +0,0 @@
1From 8e9c933cad3bd044b432b5557cf47a9ffea4e318 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
11Upstream-Status: Submitted [https://codereview.qt-project.org/c/qt/qtbase/+/282610]
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/0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch b/recipes-qt/qt5/qtbase/0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch
index c032ec03..69063457 100644
--- a/recipes-qt/qt5/qtbase/0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch
+++ b/recipes-qt/qt5/qtbase/0018-tst_qpainter-FE_-macros-are-not-defined-for-every-pl.patch
@@ -1,4 +1,4 @@
1From 557aa4d5584525cca4efcf20d6a86ad3ae99e36b Mon Sep 17 00:00:00 2001 1From 6c9e68cffb15cc1e848ca57ea12d4e5905d46507 Mon Sep 17 00:00:00 2001
2From: Nicola Lunghi <nick83ola@gmail.com> 2From: Nicola Lunghi <nick83ola@gmail.com>
3Date: Wed, 5 Feb 2020 15:32:25 +0000 3Date: Wed, 5 Feb 2020 15:32:25 +0000
4Subject: [PATCH] tst_qpainter: FE_ macros are not defined for every platform 4Subject: [PATCH] tst_qpainter: FE_ macros are not defined for every platform
@@ -13,10 +13,10 @@ Upstream-Status: submitted [https://codereview.qt-project.org/c/qt/qtbase/+/2894
13 1 file changed, 37 insertions(+), 13 deletions(-) 13 1 file changed, 37 insertions(+), 13 deletions(-)
14 14
15diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp 15diff --git a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
16index 45798cc527..de3f156cae 100644 16index 42e98ce363..0ca9b87f04 100644
17--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp 17--- a/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
18+++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp 18+++ b/tests/auto/gui/painting/qpainter/tst_qpainter.cpp
19@@ -2894,19 +2894,43 @@ void tst_QPainter::monoImages() 19@@ -2931,19 +2931,43 @@ void tst_QPainter::monoImages()
20 #if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__) 20 #if !defined(Q_OS_AIX) && !defined(Q_CC_MSVC) && !defined(Q_OS_SOLARIS) && !defined(__UCLIBC__)
21 #include <fenv.h> 21 #include <fenv.h>
22 22
@@ -67,7 +67,7 @@ index 45798cc527..de3f156cae 100644
67 return QLatin1String("Invalid operation"); 67 return QLatin1String("Invalid operation");
68 return QLatin1String("No exception"); 68 return QLatin1String("No exception");
69 } 69 }
70@@ -2932,7 +2956,7 @@ private: 70@@ -2969,7 +2993,7 @@ private:
71 71
72 void fpe_rasterizeLine_task232012() 72 void fpe_rasterizeLine_task232012()
73 { 73 {
@@ -76,7 +76,7 @@ index 45798cc527..de3f156cae 100644
76 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied); 76 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied);
77 img.fill(0x0); 77 img.fill(0x0);
78 QPainter p(&img); 78 QPainter p(&img);
79@@ -2944,7 +2968,7 @@ void fpe_rasterizeLine_task232012() 79@@ -2981,7 +3005,7 @@ void fpe_rasterizeLine_task232012()
80 80
81 void fpe_pixmapTransform() 81 void fpe_pixmapTransform()
82 { 82 {
@@ -85,7 +85,7 @@ index 45798cc527..de3f156cae 100644
85 85
86 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied); 86 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied);
87 87
88@@ -2972,7 +2996,7 @@ void fpe_pixmapTransform() 88@@ -3009,7 +3033,7 @@ void fpe_pixmapTransform()
89 89
90 void fpe_zeroLengthLines() 90 void fpe_zeroLengthLines()
91 { 91 {
@@ -94,7 +94,7 @@ index 45798cc527..de3f156cae 100644
94 94
95 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied); 95 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied);
96 96
97@@ -2984,7 +3008,7 @@ void fpe_zeroLengthLines() 97@@ -3021,7 +3045,7 @@ void fpe_zeroLengthLines()
98 98
99 void fpe_divByZero() 99 void fpe_divByZero()
100 { 100 {
@@ -103,7 +103,7 @@ index 45798cc527..de3f156cae 100644
103 103
104 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied); 104 QImage img(128, 128, QImage::Format_ARGB32_Premultiplied);
105 105
106@@ -3007,7 +3031,7 @@ void fpe_divByZero() 106@@ -3044,7 +3068,7 @@ void fpe_divByZero()
107 107
108 void fpe_steepSlopes() 108 void fpe_steepSlopes()
109 { 109 {
@@ -112,7 +112,7 @@ index 45798cc527..de3f156cae 100644
112 112
113 QImage img(1024, 1024, QImage::Format_ARGB32_Premultiplied); 113 QImage img(1024, 1024, QImage::Format_ARGB32_Premultiplied);
114 114
115@@ -3026,7 +3050,7 @@ void fpe_steepSlopes() 115@@ -3063,7 +3087,7 @@ void fpe_steepSlopes()
116 116
117 void fpe_radialGradients() 117 void fpe_radialGradients()
118 { 118 {