diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-10 23:05:58 +0100 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2021-01-24 14:03:13 +0100 |
commit | 6733c610258ddf66de113f23dde026e31f7a8069 (patch) | |
tree | 4ac71b754e62013cdc51bea1b2d6ec5ca92449c8 | |
parent | app-office/libreoffice: Fix build with GCC-11 (diff) | |
download | gentoo-6733c610258ddf66de113f23dde026e31f7a8069.tar.gz gentoo-6733c610258ddf66de113f23dde026e31f7a8069.tar.bz2 gentoo-6733c610258ddf66de113f23dde026e31f7a8069.zip |
dev-qt/qtdeclarative: Fix build with GCC-11
Closes: https://bugs.gentoo.org/752093
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | dev-qt/qtdeclarative/files/qtdeclarative-5.15.2-gcc11.patch | 31 | ||||
-rw-r--r-- | dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/dev-qt/qtdeclarative/files/qtdeclarative-5.15.2-gcc11.patch b/dev-qt/qtdeclarative/files/qtdeclarative-5.15.2-gcc11.patch new file mode 100644 index 000000000000..c5dd916912d1 --- /dev/null +++ b/dev-qt/qtdeclarative/files/qtdeclarative-5.15.2-gcc11.patch @@ -0,0 +1,31 @@ +From 543594243ad0006bf4d98998ecfa52b46242f0ed Mon Sep 17 00:00:00 2001 +From: Jeff Law <law@redhat.com> +Date: Oct 16 2020 21:12:18 +0000 +Subject: Fix missing #include for gcc-11 + + +diff --git a/src/qml/jsruntime/qv4regexp.cpp b/src/qml/jsruntime/qv4regexp.cpp +index 76daead8..4f707703 100644 +--- a/src/qml/jsruntime/qv4regexp.cpp ++++ b/src/qml/jsruntime/qv4regexp.cpp +@@ -37,6 +37,7 @@ + ** + ****************************************************************************/ + ++#include <limits> + #include "qv4regexp_p.h" + #include "qv4engine_p.h" + #include "qv4scopedvalue_p.h" +diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h +index a7e37d19..21c3b465 100644 +--- a/src/qmldebug/qqmlprofilerevent_p.h ++++ b/src/qmldebug/qqmlprofilerevent_p.h +@@ -40,6 +40,8 @@ + #ifndef QQMLPROFILEREVENT_P_H + #define QQMLPROFILEREVENT_P_H + ++#include <limits> ++ + #include "qqmlprofilerclientdefinitions_p.h" + + #include <QtCore/qstring.h> diff --git a/dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild b/dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild index 91ee527902f7..e4bb580355ca 100644 --- a/dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild +++ b/dev-qt/qtdeclarative/qtdeclarative-5.15.2.ebuild @@ -30,6 +30,7 @@ RDEPEND="${DEPEND} PATCHES=( "${FILESDIR}/${PN}-5.14.2-QQuickItemView-fix-maxXY-extent.patch" # QTBUG-83890 + "${FILESDIR}/${P}-gcc11.patch" # bug 752093 ) src_prepare() { |