qtbase: Fix qtopcua issue on bigendian systems

See
http://errors.yoctoproject.org/Errors/Details/213681/

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
This commit is contained in:
Khem Raj
2019-01-04 08:43:15 -08:00
committed by Martin Jansa
parent be8bc9f575
commit f4c8cef858
6 changed files with 37 additions and 6 deletions

View File

@@ -44,11 +44,12 @@ SRC_URI += "\
file://0017-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
file://0018-Fix-compile-issue-with-gcc-9.patch \
file://0019-Fix-compilation-of-qendian-s-qswap-specializations-o.patch \
file://0022-Fix-qbswap-calls-for-Big-Endian-targets.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.4
# 5.12.meta-qt5-native.5
SRC_URI += " \
file://0020-Always-build-uic-and-qvkgen.patch \
"

View File

@@ -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.4
# 5.12.meta-qt5-shared.5
SRC_URI += "\
file://0001-Add-linux-oe-g-platform.patch \
file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -39,11 +39,12 @@ SRC_URI += "\
file://0017-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
file://0018-Fix-compile-issue-with-gcc-9.patch \
file://0019-Fix-compilation-of-qendian-s-qswap-specializations-o.patch \
file://0022-Fix-qbswap-calls-for-Big-Endian-targets.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.4
# 5.12.meta-qt5-native.5
SRC_URI += " \
file://0020-Always-build-uic-and-qvkgen.patch \
"

View File

@@ -0,0 +1,28 @@
From c94a6510ae983e46f60e0cfb1b0f20229c990d93 Mon Sep 17 00:00:00 2001
From: Ville Voutilainen <ville.voutilainen@qt.io>
Date: Fri, 4 Jan 2019 09:35:40 +0200
Subject: [PATCH] Fix qbswap calls for Big Endian targets
Upstream-Status: Backport
Task-number: QTBUG-71945
Change-Id: I5356f8e32d00ea591b1f65cdd4111276fcf876ac
---
src/corelib/global/qendian.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/corelib/global/qendian.h b/src/corelib/global/qendian.h
index f2e5833468..615f523888 100644
--- a/src/corelib/global/qendian.h
+++ b/src/corelib/global/qendian.h
@@ -204,9 +204,9 @@ template <typename T> inline Q_DECL_CONSTEXPR T qToBigEndian(T source)
template <typename T> inline Q_DECL_CONSTEXPR T qFromBigEndian(T source)
{ return source; }
template <typename T> inline Q_DECL_CONSTEXPR T qToLittleEndian(T source)
-{ return qbswap<T>(source); }
+{ return qbswap(source); }
template <typename T> inline Q_DECL_CONSTEXPR T qFromLittleEndian(T source)
-{ return qbswap<T>(source); }
+{ return qbswap(source); }
template <typename T> inline void qToBigEndian(T src, void *dest)
{ qToUnaligned<T>(src, dest); }
template <typename T> inline void qToLittleEndian(T src, void *dest)

View File

@@ -1,4 +1,4 @@
From f8ae183b543b1244fb272f26db330f52e0d53161 Mon Sep 17 00:00:00 2001
From 7af04e47ddfb4d285aab6bbb7efb46eb06252ba2 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Sat, 16 Nov 2013 00:32:30 +0100
Subject: [PATCH] Always build uic and qvkgen

View File

@@ -1,4 +1,4 @@
From 4d5e38f1b5f42d61428b7984f9f4d7f22ebe2a2e Mon Sep 17 00:00:00 2001
From 94cfb4e78bf96e8947ed0c91900e463b99857b30 Mon Sep 17 00:00:00 2001
From: Samuli Piippo <samuli.piippo@qt.io>
Date: Fri, 24 Nov 2017 15:16:31 +0200
Subject: [PATCH] Bootstrap without linkat feature

View File

@@ -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.4
# 5.12.meta-qt5-shared.5
SRC_URI += "\
file://0001-Add-linux-oe-g-platform.patch \
file://0002-cmake-Use-OE_QMAKE_PATH_EXTERNAL_HOST_BINS.patch \
@@ -35,6 +35,7 @@ SRC_URI += "\
file://0017-Define-QMAKE_CXX.COMPILER_MACROS-for-clang-on-linux.patch \
file://0018-Fix-compile-issue-with-gcc-9.patch \
file://0019-Fix-compilation-of-qendian-s-qswap-specializations-o.patch \
file://0022-Fix-qbswap-calls-for-Big-Endian-targets.patch \
"