From 454d6fa4c54e59f2751f013a64ab97091d0cf8f1d24ac8ef8867316e89adac06 Mon Sep 17 00:00:00 2001 From: Asterios Dramis Date: Sat, 5 Jun 2021 21:12:50 +0000 Subject: [PATCH] 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 --- ...d-missing-include-to-simdarray.h-275.patch | 24 +++++++++++++++++++ Vc.changes | 6 +++++ Vc.spec | 6 +++-- 3 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 0001-Add-missing-include-to-simdarray.h-275.patch diff --git a/0001-Add-missing-include-to-simdarray.h-275.patch b/0001-Add-missing-include-to-simdarray.h-275.patch new file mode 100644 index 0000000..8eace38 --- /dev/null +++ b/0001-Add-missing-include-to-simdarray.h-275.patch @@ -0,0 +1,24 @@ +From d259ff47fa62d8417663507f95c7014a51ade78f Mon Sep 17 00:00:00 2001 +From: Guilherme Amadio +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 ++#include + + #include "writemaskedvector.h" + #include "simdarrayhelper.h" +-- +2.31.1 + diff --git a/Vc.changes b/Vc.changes index 8df77f2..4b72517 100644 --- a/Vc.changes +++ b/Vc.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Jun 5 17:12:32 UTC 2021 - Christophe Giboudeaux + +- Add GCC 11 compatibility fix: + * 0001-Add-missing-include-to-simdarray.h-275.patch + ------------------------------------------------------------------- Wed May 13 07:10:56 UTC 2020 - Martin Pluskal diff --git a/Vc.spec b/Vc.spec index bb7170a..de9d01f 100644 --- a/Vc.spec +++ b/Vc.spec @@ -1,7 +1,7 @@ # # spec file for package Vc # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # Copyright (c) 2018 Asterios Dramis . # # 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