mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH] qt5: fix missing limits includes in qtdeclarative with GCC 11
@ 2021-12-01 13:40 Bastian Krause
  2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Bastian Krause @ 2021-12-01 13:40 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

Fixes these build errors:

  In file included from qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilereventreceiver_p.h:43,
                   from moc_qqmlprofilereventreceiver_p.cpp:10:
  qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h: In member function 'void QQmlProfilerEvent::assignNumbers(const Container&)':
  qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:65: error: 'numeric_limits' is not a member of 'std'
  qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:87: error: expected primary-expression before '>' token
  qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:90: error: '::max' has not been declared; did you mean 'std::max'?

Signed-off-by: Bastian Krause <bst@pengutronix.de>
---
 ...d-missing-limits-include-to-fix-buil.patch | 31 +++++++++++++++++++
 patches/qt-everywhere-src-5.15.2/series       |  3 +-
 2 files changed, 33 insertions(+), 1 deletion(-)
 create mode 100644 patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch

diff --git a/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch b/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
new file mode 100644
index 000000000..05a0b6726
--- /dev/null
+++ b/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
@@ -0,0 +1,31 @@
+From: Antonio Rojas <arojas@archlinux.org>
+Date: Sun, 23 May 2021 14:32:46 +0200
+Subject: [PATCH] qtdeclarative: Add missing limits include to fix build with
+ GCC 11
+
+This is not required for Qt 6, since it is indirectly pulled via
+qanystrigview.h, but it is for Qt 5 (where qanystrigview does
+not exist) and, in any case, it is good to declare all used headers
+and not rely on them being implicitly pulled.
+
+Upstream fix: https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=367293b18a
+
+Pick-to: 6.1 5.15
+Change-Id: I97606ea493e723006759608b7d4c4f00632f340c
+Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
+---
+ qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h b/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
+index a7e37d196427..01b2f58f1651 100644
+--- a/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
++++ b/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
+@@ -48,6 +48,7 @@
+ #include <QtCore/qmetatype.h>
+ 
+ #include <initializer_list>
++#include <limits>
+ #include <type_traits>
+ 
+ //
diff --git a/patches/qt-everywhere-src-5.15.2/series b/patches/qt-everywhere-src-5.15.2/series
index 226529352..6f9c1ab37 100644
--- a/patches/qt-everywhere-src-5.15.2/series
+++ b/patches/qt-everywhere-src-5.15.2/series
@@ -8,4 +8,5 @@
 0006-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
 0007-HACK-qtwebengine-workaround-for-too-long-file-names.patch
 0008-qtbase-include-limits-where-necessary.patch
-# 0339a08cc8ad82af4c6542508057d7e7  - git-ptx-patches magic
+0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
+# f48701510a7b265918cc79b1cc68a359  - git-ptx-patches magic
-- 
2.30.2


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] qt5: fix missing limits includes in qtdeclarative with GCC 11
  2021-12-01 13:40 [ptxdist] [PATCH] qt5: fix missing limits includes in qtdeclarative with GCC 11 Bastian Krause
@ 2021-12-10 13:07 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-12-10 13:07 UTC (permalink / raw)
  To: ptxdist; +Cc: Bastian Krause

Thanks, applied as afa4fa1d1d79fcf43b41a21e6ef2684b9a17e20d.

Michael

[sent from post-receive hook]

On Fri, 10 Dec 2021 14:07:05 +0100, Bastian Krause <bst@pengutronix.de> wrote:
> Fixes these build errors:
> 
>   In file included from qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilereventreceiver_p.h:43,
>                    from moc_qqmlprofilereventreceiver_p.cpp:10:
>   qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h: In member function 'void QQmlProfilerEvent::assignNumbers(const Container&)':
>   qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:65: error: 'numeric_limits' is not a member of 'std'
>   qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:87: error: expected primary-expression before '>' token
>   qt-everywhere-src-5.15.2/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h:314:90: error: '::max' has not been declared; did you mean 'std::max'?
> 
> Signed-off-by: Bastian Krause <bst@pengutronix.de>
> Message-Id: <20211201134037.1086230-1-bst@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch b/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
> new file mode 100644
> index 000000000000..05a0b6726bc7
> --- /dev/null
> +++ b/patches/qt-everywhere-src-5.15.2/0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
> @@ -0,0 +1,31 @@
> +From: Antonio Rojas <arojas@archlinux.org>
> +Date: Sun, 23 May 2021 14:32:46 +0200
> +Subject: [PATCH] qtdeclarative: Add missing limits include to fix build with
> + GCC 11
> +
> +This is not required for Qt 6, since it is indirectly pulled via
> +qanystrigview.h, but it is for Qt 5 (where qanystrigview does
> +not exist) and, in any case, it is good to declare all used headers
> +and not rely on them being implicitly pulled.
> +
> +Upstream fix: https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=367293b18a
> +
> +Pick-to: 6.1 5.15
> +Change-Id: I97606ea493e723006759608b7d4c4f00632f340c
> +Reviewed-by: Albert Astals Cid <albert.astals.cid@kdab.com>
> +---
> + qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h | 1 +
> + 1 file changed, 1 insertion(+)
> +
> +diff --git a/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h b/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
> +index a7e37d196427..01b2f58f1651 100644
> +--- a/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
> ++++ b/qtdeclarative/src/qmldebug/qqmlprofilerevent_p.h
> +@@ -48,6 +48,7 @@
> + #include <QtCore/qmetatype.h>
> + 
> + #include <initializer_list>
> ++#include <limits>
> + #include <type_traits>
> + 
> + //
> diff --git a/patches/qt-everywhere-src-5.15.2/series b/patches/qt-everywhere-src-5.15.2/series
> index 226529352040..6f9c1ab37966 100644
> --- a/patches/qt-everywhere-src-5.15.2/series
> +++ b/patches/qt-everywhere-src-5.15.2/series
> @@ -8,4 +8,5 @@
>  0006-ptxdist-qtwebengine-let-ninja-use-the-jobserver.patch
>  0007-HACK-qtwebengine-workaround-for-too-long-file-names.patch
>  0008-qtbase-include-limits-where-necessary.patch
> -# 0339a08cc8ad82af4c6542508057d7e7  - git-ptx-patches magic
> +0009-qtdeclarative-Add-missing-limits-include-to-fix-buil.patch
> +# f48701510a7b265918cc79b1cc68a359  - git-ptx-patches magic

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-12-10 13:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-01 13:40 [ptxdist] [PATCH] qt5: fix missing limits includes in qtdeclarative with GCC 11 Bastian Krause
2021-12-10 13:07 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox