Accepting request 887816 from KDE:Qt:5.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/887816
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libqt5-qtdeclarative?expand=0&rev=66
This commit is contained in:
Dominique Leuenberger 2021-04-24 21:07:08 +00:00 committed by Git OBS Bridge
commit 8121547a36
3 changed files with 47 additions and 0 deletions

View File

@ -0,0 +1,40 @@
From 9bc2fa1c7ecd907dd513c07e69a95e5c994b8d9a Mon Sep 17 00:00:00 2001
From: Fabian Vogt <fvogt@suse.de>
Date: Thu, 22 Apr 2021 16:41:52 +0200
Subject: [PATCH] Include <limits> 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 <limits.h>
+#include <limits>
#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 <initializer_list>
#include <type_traits>
+#include <limits>
//
// W A R N I N G
--
2.20.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Apr 22 14:43:09 UTC 2021 - Fabian Vogt <fvogt@suse.com>
- 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 <fvogt@suse.com>

View File

@ -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}