From: Lucas Stach <l.stach@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH v2 5/5] qt5: fix build with GCC11
Date: Mon, 3 May 2021 12:37:43 +0200 [thread overview]
Message-ID: <20210503103743.31995-5-l.stach@pengutronix.de> (raw)
In-Reply-To: <20210503103743.31995-1-l.stach@pengutronix.de>
Some of those files are used to build host-side tools, so those changes are
needed to fix the build on a host with GCC11.
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
...tbase-include-limits-where-necessary.patch | 69 +++++++++++++++++++
patches/qt-everywhere-src-5.15.2/series | 3 +-
2 files changed, 71 insertions(+), 1 deletion(-)
create mode 100644 patches/qt-everywhere-src-5.15.2/0008-qtbase-include-limits-where-necessary.patch
diff --git a/patches/qt-everywhere-src-5.15.2/0008-qtbase-include-limits-where-necessary.patch b/patches/qt-everywhere-src-5.15.2/0008-qtbase-include-limits-where-necessary.patch
new file mode 100644
index 000000000000..33138cc3623c
--- /dev/null
+++ b/patches/qt-everywhere-src-5.15.2/0008-qtbase-include-limits-where-necessary.patch
@@ -0,0 +1,69 @@
+From: Lucas Stach <l.stach@pengutronix.de>
+Date: Sat, 1 May 2021 00:57:24 +0200
+Subject: [PATCH] qtbase: include limits where necessary
+
+Upstream fixes:
+https://code.qt.io/cgit/qt/qtbase.git/commit/?id=813a928c7c3cf986
+https://code.qt.io/cgit/qt/qtbase.git/commit/?id=9c56d4da2ff631a8
+
+Fixes build with GCC11, which changed internal includes so that
+limits isn't implicitly pulled in some cases.
+
+Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
+---
+ qtbase/src/corelib/global/qendian.h | 2 ++
+ qtbase/src/corelib/global/qfloat16.h | 1 +
+ qtbase/src/corelib/text/qbytearraymatcher.h | 2 ++
+ qtbase/src/corelib/tools/qoffsetstringarray_p.h | 1 +
+ 4 files changed, 6 insertions(+)
+
+diff --git a/qtbase/src/corelib/global/qendian.h b/qtbase/src/corelib/global/qendian.h
+index 257efbbdbecf..a97776c761b7 100644
+--- a/qtbase/src/corelib/global/qendian.h
++++ b/qtbase/src/corelib/global/qendian.h
+@@ -44,6 +44,8 @@
+ #include <QtCore/qfloat16.h>
+ #include <QtCore/qglobal.h>
+
++#include <limits>
++
+ // include stdlib.h and hope that it defines __GLIBC__ for glibc-based systems
+ #include <stdlib.h>
+ #include <string.h>
+diff --git a/qtbase/src/corelib/global/qfloat16.h b/qtbase/src/corelib/global/qfloat16.h
+index c7a9c87af322..5302be072ed8 100644
+--- a/qtbase/src/corelib/global/qfloat16.h
++++ b/qtbase/src/corelib/global/qfloat16.h
+@@ -43,6 +43,7 @@
+
+ #include <QtCore/qglobal.h>
+ #include <QtCore/qmetatype.h>
++#include <limits>
+ #include <string.h>
+
+ #if defined(QT_COMPILER_SUPPORTS_F16C) && defined(__AVX2__) && !defined(__F16C__)
+diff --git a/qtbase/src/corelib/text/qbytearraymatcher.h b/qtbase/src/corelib/text/qbytearraymatcher.h
+index 0eedfc1d2035..f5f9bef7b87c 100644
+--- a/qtbase/src/corelib/text/qbytearraymatcher.h
++++ b/qtbase/src/corelib/text/qbytearraymatcher.h
+@@ -42,6 +42,8 @@
+
+ #include <QtCore/qbytearray.h>
+
++#include <limits>
++
+ QT_BEGIN_NAMESPACE
+
+
+diff --git a/qtbase/src/corelib/tools/qoffsetstringarray_p.h b/qtbase/src/corelib/tools/qoffsetstringarray_p.h
+index 4dd9e9603bc1..8b3fbfe55985 100644
+--- a/qtbase/src/corelib/tools/qoffsetstringarray_p.h
++++ b/qtbase/src/corelib/tools/qoffsetstringarray_p.h
+@@ -53,6 +53,7 @@
+
+ #include "private/qglobal_p.h"
+
++#include <limits>
+ #include <tuple>
+ #include <array>
+
diff --git a/patches/qt-everywhere-src-5.15.2/series b/patches/qt-everywhere-src-5.15.2/series
index 68b5075b33b2..226529352040 100644
--- a/patches/qt-everywhere-src-5.15.2/series
+++ b/patches/qt-everywhere-src-5.15.2/series
@@ -7,4 +7,5 @@
0005-ptxdist-qtwebengine-allow-building-with-ptxdist.patch
0006-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
0007-HACK-qtwebengine-workaround-for-too-long-file-names.patch
-# 4b456a724e88b1f3c6125e3941898e96 - git-ptx-patches magic
+0008-qtbase-include-limits-where-necessary.patch
+# 0339a08cc8ad82af4c6542508057d7e7 - git-ptx-patches magic
--
2.29.2
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de
next prev parent reply other threads:[~2021-05-03 10:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-03 10:37 [ptxdist] [PATCH v2 1/5] dtc: " Lucas Stach
2021-05-03 10:37 ` [ptxdist] [PATCH v2 2/5] nspr: version bump 4.26 -> 4.30 Lucas Stach
2021-05-27 6:45 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-05-03 10:37 ` [ptxdist] [PATCH v2 3/5] host-nss: disable array-parameter warning Lucas Stach
2021-05-27 6:45 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-05-03 10:37 ` [ptxdist] [PATCH v2 4/5] host-fakeroot: version bump 1.25.1 -> 1.25.3 Lucas Stach
2021-05-27 6:45 ` [ptxdist] [APPLIED] " Michael Olbrich
2021-05-03 10:37 ` Lucas Stach [this message]
2021-05-27 6:45 ` [ptxdist] [APPLIED] qt5: fix build with GCC11 Michael Olbrich
2021-05-27 6:45 ` [ptxdist] [APPLIED] dtc: " Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210503103743.31995-5-l.stach@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox