diff --git a/recipes-qt/qt5/nativesdk-qtbase_git.bb b/recipes-qt/qt5/nativesdk-qtbase_git.bb index be37f55..83eb549 100644 --- a/recipes-qt/qt5/nativesdk-qtbase_git.bb +++ b/recipes-qt/qt5/nativesdk-qtbase_git.bb @@ -25,7 +25,7 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/qtbase:" # common for qtbase-native, qtbase-nativesdk and qtbase # Patches from https://github.com/meta-qt5/qtbase/commits/b5.12-shared -# 5.12.meta-qt5-shared.12 +# 5.12.meta-qt5-shared.13 SRC_URI += "\ file://0001-Add-linux-oe-g-platform.patch \ file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ @@ -45,14 +45,16 @@ SRC_URI += "\ file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ file://0017-Fix-Wdeprecated-copy-warnings.patch \ file://0018-qfloat16-Include-limits-header.patch \ + file://0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch \ + file://0020-evdevkeyboard-fix-input_event-time-related-compile.patch \ " # common for qtbase-native and nativesdk-qtbase # Patches from https://github.com/meta-qt5/qtbase/commits/b5.12-native -# 5.12.meta-qt5-native.12 +# 5.12.meta-qt5-native.13 SRC_URI += " \ - file://0019-Always-build-uic-and-qvkgen.patch \ - file://0020-Avoid-renameeat2-for-native-sdk-builds.patch \ + file://0021-Always-build-uic-and-qvkgen.patch \ + file://0022-Avoid-renameeat2-for-native-sdk-builds.patch \ " # CMake's toolchain configuration of nativesdk-qtbase diff --git a/recipes-qt/qt5/qtbase-native_git.bb b/recipes-qt/qt5/qtbase-native_git.bb index 7cf33dc..d4db457 100644 --- a/recipes-qt/qt5/qtbase-native_git.bb +++ b/recipes-qt/qt5/qtbase-native_git.bb @@ -18,7 +18,7 @@ require qt5-git.inc # common for qtbase-native, qtbase-nativesdk and qtbase # Patches from https://github.com/meta-qt5/qtbase/commits/b5.12-shared -# 5.12.meta-qt5-shared.12 +# 5.12.meta-qt5-shared.13 SRC_URI += "\ file://0001-Add-linux-oe-g-platform.patch \ file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ @@ -38,19 +38,21 @@ SRC_URI += "\ file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ file://0017-Fix-Wdeprecated-copy-warnings.patch \ file://0018-qfloat16-Include-limits-header.patch \ + file://0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch \ + file://0020-evdevkeyboard-fix-input_event-time-related-compile.patch \ " # common for qtbase-native and nativesdk-qtbase # Patches from https://github.com/meta-qt5/qtbase/commits/b5.12-native -# 5.12.meta-qt5-native.12 +# 5.12.meta-qt5-native.13 SRC_URI += " \ - file://0019-Always-build-uic-and-qvkgen.patch \ - file://0020-Avoid-renameeat2-for-native-sdk-builds.patch \ + file://0021-Always-build-uic-and-qvkgen.patch \ + file://0022-Avoid-renameeat2-for-native-sdk-builds.patch \ " # only for qtbase-native SRC_URI += " \ - file://0021-Bootstrap-without-linkat-feature.patch \ + file://0023-Bootstrap-without-linkat-feature.patch \ " CLEANBROKEN = "1" diff --git a/recipes-qt/qt5/qtbase/0023-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch b/recipes-qt/qt5/qtbase/0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch similarity index 91% rename from recipes-qt/qt5/qtbase/0023-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch rename to recipes-qt/qt5/qtbase/0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch index 17a3476..e6b7bd0 100644 --- a/recipes-qt/qt5/qtbase/0023-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch +++ b/recipes-qt/qt5/qtbase/0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch @@ -1,4 +1,4 @@ -From 4e00087b393183493a0f7115fd41efc867bd3421 Mon Sep 17 00:00:00 2001 +From 86c91e5f4340ced36fb33ab380760bbccfdb84e2 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sun, 1 Jan 2023 21:30:23 -0800 Subject: [PATCH] zlib: Do not undefine _FILE_OFFSET_BITS @@ -32,6 +32,3 @@ index 20de7cb4ce..f6ab9357c7 100644 #ifndef QT_BOOTSTRAPPED # include #endif --- -2.39.0 - diff --git a/recipes-qt/qt5/qtbase/0020-evdevkeyboard-fix-input_event-time-related-compile.patch b/recipes-qt/qt5/qtbase/0020-evdevkeyboard-fix-input_event-time-related-compile.patch new file mode 100644 index 0000000..8af46a0 --- /dev/null +++ b/recipes-qt/qt5/qtbase/0020-evdevkeyboard-fix-input_event-time-related-compile.patch @@ -0,0 +1,60 @@ +From 85e1eb951ab3b1fda04a49e52f50bc9c50af1a13 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer +Date: Mon, 4 May 2020 23:17:45 +0200 +Subject: [PATCH] evdevkeyboard: fix input_event time related compile +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Fixes: + + evdevkeyboard/qevdevkeyboardhandler.cpp: In member function ‘void QEvdevKeyboardHandler::switchLed(int, bool)’: + evdevkeyboard/qevdevkeyboardhandler.cpp:153:28: error: ‘struct input_event’ has no member named ‘time’; did you mean ‘type’? + ::gettimeofday(&led_ie.time, 0); + ^~~~ + type + +Task-number: QTBUG-84012 +Change-Id: I1d127561e0406ae570da656d3e31f9434c7b8798 +Reviewed-by: Laszlo Agocs +(cherry picked from commit c5b8b662105cc5ced968da9f567fe1134c52d6b5) + +Upstream-Status: Backport [5.15 d9b430560a6ea28fc6024cede34d765c7bd68e22] + +Signed-off-by: Martin Jansa +--- + .../input/evdevkeyboard/qevdevkeyboardhandler.cpp | 13 ++++++++++++- + 1 file changed, 12 insertions(+), 1 deletion(-) + +diff --git a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp +index ad134a825f..f2b47b82bc 100644 +--- a/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp ++++ b/src/platformsupport/input/evdevkeyboard/qevdevkeyboardhandler.cpp +@@ -58,6 +58,14 @@ + #include + #endif + ++#ifndef input_event_sec ++#define input_event_sec time.tv_sec ++#endif ++ ++#ifndef input_event_usec ++#define input_event_usec time.tv_usec ++#endif ++ + QT_BEGIN_NAMESPACE + + Q_LOGGING_CATEGORY(qLcEvdevKey, "qt.qpa.input") +@@ -148,8 +156,11 @@ void QEvdevKeyboardHandler::switchLed(int led, bool state) + { + qCDebug(qLcEvdevKey) << "switchLed" << led << state; + ++ struct timeval tv; ++ ::gettimeofday(&tv, 0); + struct ::input_event led_ie; +- ::gettimeofday(&led_ie.time, 0); ++ led_ie.input_event_sec = tv.tv_sec; ++ led_ie.input_event_usec = tv.tv_usec; + led_ie.type = EV_LED; + led_ie.code = led; + led_ie.value = state; diff --git a/recipes-qt/qt5/qtbase/0019-Always-build-uic-and-qvkgen.patch b/recipes-qt/qt5/qtbase/0021-Always-build-uic-and-qvkgen.patch similarity index 92% rename from recipes-qt/qt5/qtbase/0019-Always-build-uic-and-qvkgen.patch rename to recipes-qt/qt5/qtbase/0021-Always-build-uic-and-qvkgen.patch index 4846688..3cb5ab2 100644 --- a/recipes-qt/qt5/qtbase/0019-Always-build-uic-and-qvkgen.patch +++ b/recipes-qt/qt5/qtbase/0021-Always-build-uic-and-qvkgen.patch @@ -1,4 +1,4 @@ -From 0eb870c467ecb1f756f665e65798deb21dd360f0 Mon Sep 17 00:00:00 2001 +From 4dde34f5b142ab7700469e566cbed78699438460 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sat, 16 Nov 2013 00:32:30 +0100 Subject: [PATCH] Always build uic and qvkgen diff --git a/recipes-qt/qt5/qtbase/0020-Avoid-renameeat2-for-native-sdk-builds.patch b/recipes-qt/qt5/qtbase/0022-Avoid-renameeat2-for-native-sdk-builds.patch similarity index 97% rename from recipes-qt/qt5/qtbase/0020-Avoid-renameeat2-for-native-sdk-builds.patch rename to recipes-qt/qt5/qtbase/0022-Avoid-renameeat2-for-native-sdk-builds.patch index 4daa3be..fa77ef5 100644 --- a/recipes-qt/qt5/qtbase/0020-Avoid-renameeat2-for-native-sdk-builds.patch +++ b/recipes-qt/qt5/qtbase/0022-Avoid-renameeat2-for-native-sdk-builds.patch @@ -1,4 +1,4 @@ -From e45d6335b5030195cffb54a49632e0123477cf42 Mon Sep 17 00:00:00 2001 +From 026db0b6cbffba8c46df8b1eb739ef53df9b413d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Sun, 14 Apr 2019 13:27:58 +0200 Subject: [PATCH] Avoid renameeat2 for native(sdk) builds diff --git a/recipes-qt/qt5/qtbase/0021-Bootstrap-without-linkat-feature.patch b/recipes-qt/qt5/qtbase/0023-Bootstrap-without-linkat-feature.patch similarity index 92% rename from recipes-qt/qt5/qtbase/0021-Bootstrap-without-linkat-feature.patch rename to recipes-qt/qt5/qtbase/0023-Bootstrap-without-linkat-feature.patch index 493d867..b0bcb77 100644 --- a/recipes-qt/qt5/qtbase/0021-Bootstrap-without-linkat-feature.patch +++ b/recipes-qt/qt5/qtbase/0023-Bootstrap-without-linkat-feature.patch @@ -1,4 +1,4 @@ -From 51756824d0aad6965aeec06581b0181e28a6b402 Mon Sep 17 00:00:00 2001 +From d83c11c9c197195164af9a3ac202740c0c8673cb Mon Sep 17 00:00:00 2001 From: Samuli Piippo Date: Fri, 24 Nov 2017 15:16:31 +0200 Subject: [PATCH] Bootstrap without linkat feature diff --git a/recipes-qt/qt5/qtbase_git.bb b/recipes-qt/qt5/qtbase_git.bb index a13eb25..c3c68b1 100644 --- a/recipes-qt/qt5/qtbase_git.bb +++ b/recipes-qt/qt5/qtbase_git.bb @@ -14,7 +14,7 @@ LIC_FILES_CHKSUM = " \ # common for qtbase-native, qtbase-nativesdk and qtbase # Patches from https://github.com/meta-qt5/qtbase/commits/b5.12-shared -# 5.12.meta-qt5-shared.12 +# 5.12.meta-qt5-shared.13 SRC_URI += "\ file://0001-Add-linux-oe-g-platform.patch \ file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \ @@ -34,10 +34,10 @@ SRC_URI += "\ file://0016-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \ file://0017-Fix-Wdeprecated-copy-warnings.patch \ file://0018-qfloat16-Include-limits-header.patch \ + file://0019-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch \ + file://0020-evdevkeyboard-fix-input_event-time-related-compile.patch \ " -SRC_URI += "file://0023-zlib-Do-not-undefine-_FILE_OFFSET_BITS.patch" - # for syncqt RDEPENDS:${PN}-tools += "perl"