Accepting request 897731 from home:cgiboudeaux:branches:devel:libraries:c_c++

Add GCC 11 compatibility fix.

Needed to fix the krita build.

OBS-URL: https://build.opensuse.org/request/show/897731
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/Vc?expand=0&rev=35
This commit is contained in:
Asterios Dramis 2021-06-05 21:12:50 +00:00 committed by Git OBS Bridge
parent bfec58c33c
commit 454d6fa4c5
3 changed files with 34 additions and 2 deletions

View File

@ -0,0 +1,24 @@
From d259ff47fa62d8417663507f95c7014a51ade78f Mon Sep 17 00:00:00 2001
From: Guilherme Amadio <amadio@cern.ch>
Date: Wed, 12 May 2021 17:13:56 +0200
Subject: [PATCH] Add missing include to simdarray.h (#275)
---
Vc/common/simdarray.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/Vc/common/simdarray.h b/Vc/common/simdarray.h
index 67d1c23..50f89cd 100644
--- a/Vc/common/simdarray.h
+++ b/Vc/common/simdarray.h
@@ -33,6 +33,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//#include "../IO"
#include <array>
+#include <limits>
#include "writemaskedvector.h"
#include "simdarrayhelper.h"
--
2.31.1

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Jun 5 17:12:32 UTC 2021 - Christophe Giboudeaux <christophe@krop.fr>
- Add GCC 11 compatibility fix:
* 0001-Add-missing-include-to-simdarray.h-275.patch
-------------------------------------------------------------------
Wed May 13 07:10:56 UTC 2020 - Martin Pluskal <mpluskal@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package Vc
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2018 Asterios Dramis <asterios.dramis@gmail.com>.
#
# All modifications and additions to the file contributed by third parties
@ -25,6 +25,8 @@ License: BSD-3-Clause
Group: System/Libraries
URL: https://github.com/VcDevel/Vc/
Source0: https://github.com/VcDevel/Vc/releases/download/%{version}/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM
Patch0: 0001-Add-missing-include-to-simdarray.h-275.patch
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
@ -74,7 +76,7 @@ sets.
This package provides the Vc static library.
%prep
%setup -q
%autosetup -p1
%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects