From c54dbc8b98eb60a1993b3a0e2091980af42c9aedc97eea88fa7def30c662a792 Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Thu, 22 Apr 2021 14:51:01 +0000 Subject: [PATCH] Accepting request 887815 from home:Vogtinator:qt5.15 - Add patch to fix build with GCC 11 (boo#1185100): * 0001-Include-limits-to-fix-build-with-GCC-11.patch OBS-URL: https://build.opensuse.org/request/show/887815 OBS-URL: https://build.opensuse.org/package/show/KDE:Qt:5.15/libqt5-qtdeclarative?expand=0&rev=16 --- ...lude-limits-to-fix-build-with-GCC-11.patch | 40 +++++++++++++++++++ libqt5-qtdeclarative.changes | 6 +++ libqt5-qtdeclarative.spec | 1 + 3 files changed, 47 insertions(+) create mode 100644 0001-Include-limits-to-fix-build-with-GCC-11.patch diff --git a/0001-Include-limits-to-fix-build-with-GCC-11.patch b/0001-Include-limits-to-fix-build-with-GCC-11.patch new file mode 100644 index 0000000..b981b04 --- /dev/null +++ b/0001-Include-limits-to-fix-build-with-GCC-11.patch @@ -0,0 +1,40 @@ +From 9bc2fa1c7ecd907dd513c07e69a95e5c994b8d9a Mon Sep 17 00:00:00 2001 +From: Fabian Vogt +Date: Thu, 22 Apr 2021 16:41:52 +0200 +Subject: [PATCH] Include to fix build with GCC 11 + +Yarr.h is even broken in upstream WebKit as of now. + +References: QTBUG-89977 +--- + src/3rdparty/masm/yarr/Yarr.h | 1 + + src/qmldebug/qqmlprofilerevent_p.h | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/3rdparty/masm/yarr/Yarr.h b/src/3rdparty/masm/yarr/Yarr.h +index ccf78f9880..2955ea7e72 100644 +--- a/src/3rdparty/masm/yarr/Yarr.h ++++ b/src/3rdparty/masm/yarr/Yarr.h +@@ -28,6 +28,7 @@ + #pragma once + + #include ++#include + #include "YarrErrorCode.h" + + namespace JSC { namespace Yarr { +diff --git a/src/qmldebug/qqmlprofilerevent_p.h b/src/qmldebug/qqmlprofilerevent_p.h +index a7e37d1964..3f13679a6a 100644 +--- a/src/qmldebug/qqmlprofilerevent_p.h ++++ b/src/qmldebug/qqmlprofilerevent_p.h +@@ -49,6 +49,7 @@ + + #include + #include ++#include + + // + // W A R N I N G +-- +2.20.1 + diff --git a/libqt5-qtdeclarative.changes b/libqt5-qtdeclarative.changes index 2060929..20733ca 100644 --- a/libqt5-qtdeclarative.changes +++ b/libqt5-qtdeclarative.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Apr 22 14:43:09 UTC 2021 - Fabian Vogt + +- Add patch to fix build with GCC 11 (boo#1185100): + * 0001-Include-limits-to-fix-build-with-GCC-11.patch + ------------------------------------------------------------------- Fri Mar 12 12:06:44 UTC 2021 - Fabian Vogt diff --git a/libqt5-qtdeclarative.spec b/libqt5-qtdeclarative.spec index 6989490..6f966d6 100644 --- a/libqt5-qtdeclarative.spec +++ b/libqt5-qtdeclarative.spec @@ -33,6 +33,7 @@ Source: https://download.qt.io/official_releases/qt/5.15/%{real_version} Source1: baselibs.conf # PATCH-FIX-OPENSUSE sse2_nojit.patch -- enable JIT and sse2 only on sse2 case Patch100: sse2_nojit.patch +Patch101: 0001-Include-limits-to-fix-build-with-GCC-11.patch Patch103: qtdeclarative-5.15.0-FixMaxXMaxYExtent.patch BuildRequires: fdupes BuildRequires: libQt5Core-private-headers-devel >= %{version}