From 6310c5c17380ad5e3bdaf1938e025d713066e7ee Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Sun, 2 May 2021 00:44:13 +0200 Subject: qtdeclarative: fix build with gcc-11 Signed-off-by: Martin Jansa --- .../qtdeclarative/0001-Fix-build-with-gcc-11.patch | 69 ++++++++++++++++++++++ recipes-qt/qt5/qtdeclarative_git.bb | 2 + 2 files changed, 71 insertions(+) create mode 100644 recipes-qt/qt5/qtdeclarative/0001-Fix-build-with-gcc-11.patch diff --git a/recipes-qt/qt5/qtdeclarative/0001-Fix-build-with-gcc-11.patch b/recipes-qt/qt5/qtdeclarative/0001-Fix-build-with-gcc-11.patch new file mode 100644 index 00000000..0eb78467 --- /dev/null +++ b/recipes-qt/qt5/qtdeclarative/0001-Fix-build-with-gcc-11.patch @@ -0,0 +1,69 @@ +From aca2df64cd0cb6c4a8c03dc564c59f2a805dda7c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Thu, 4 Mar 2021 14:37:06 -0800 +Subject: [PATCH] Fix build with gcc-11 + +* squash 2 patches from meta-qt5/master: +qmldebug: Include limits header + +this is needed to solve +qmldebug/qqmlprofilerevent_p.h:314:65: error: 'numeric_limits' is not a member of 'std' + +Its exposed bu gcc11 + +yarr: Include for numeric_limits + +Fixes +src/3rdparty/masm/yarr/Yarr.h:46:44: error: 'numeric_limits' is not a member of 'std' + 46 | static const unsigned offsetNoMatch = std::numeric_limits::max(); + | ^~~~~~~~~~~~~~ + +Upstream-Status: Pending + +And add also to src/qml/jsruntime/qv4propertykey_p.h. + +Signed-off-by: Khem Raj +Signed-off-by: Martin Jansa +--- + src/3rdparty/masm/yarr/Yarr.h | 2 +- + src/qml/jsruntime/qv4propertykey_p.h | 1 + + src/qmldebug/qqmlprofilerevent_p.h | 1 + + 3 files changed, 3 insertions(+), 1 deletion(-) + +diff --git a/src/3rdparty/masm/yarr/Yarr.h b/src/3rdparty/masm/yarr/Yarr.h +index ccf78f9880..cbb42c60d8 100644 +--- a/src/3rdparty/masm/yarr/Yarr.h ++++ b/src/3rdparty/masm/yarr/Yarr.h +@@ -27,7 +27,7 @@ + + #pragma once + +-#include ++#include + #include "YarrErrorCode.h" + + namespace JSC { namespace Yarr { +diff --git a/src/qml/jsruntime/qv4propertykey_p.h b/src/qml/jsruntime/qv4propertykey_p.h +index 47867765db..c945b27498 100644 +--- a/src/qml/jsruntime/qv4propertykey_p.h ++++ b/src/qml/jsruntime/qv4propertykey_p.h +@@ -50,6 +50,7 @@ + // We mean it. + // + ++#include + #include + + QT_BEGIN_NAMESPACE +diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h +index 1e205d8dbb..f2467bb032 100644 +--- a/src/qmldebug/qqmlprofilerevent_p.h ++++ b/src/qmldebug/qqmlprofilerevent_p.h +@@ -47,6 +47,7 @@ + #include + #include + ++#include + #include + #include + diff --git a/recipes-qt/qt5/qtdeclarative_git.bb b/recipes-qt/qt5/qtdeclarative_git.bb index d27450b8..43c1063c 100644 --- a/recipes-qt/qt5/qtdeclarative_git.bb +++ b/recipes-qt/qt5/qtdeclarative_git.bb @@ -27,3 +27,5 @@ do_install_append_class-nativesdk() { SRCREV = "36e4e9bbd402cefab9d7b68635a94a02e0b41187" BBCLASSEXTEND =+ "native nativesdk" + +SRC_URI += "file://0001-Fix-build-with-gcc-11.patch" -- cgit v1.2.3