From b57453b329efb0802ca5af11256df9c1019c992c57f3ef26941eac98e8933cfb Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 6 Mar 2023 06:59:19 +0000 Subject: [PATCH] Accepting request 1069524 from home:marxin:branches:graphics - Use -fexcess-precision=fast as GCC 13 changes the default for C++ compiler and without the change some tests fail on i586. More info can be seen here: https://gcc.gnu.org/gcc-13/porting_to.html#excess-precision OBS-URL: https://build.opensuse.org/request/show/1069524 OBS-URL: https://build.opensuse.org/package/show/graphics/lib2geom?expand=0&rev=5 --- lib2geom.changes | 8 ++++++++ lib2geom.spec | 7 ++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/lib2geom.changes b/lib2geom.changes index 4d09d35..098c6d2 100644 --- a/lib2geom.changes +++ b/lib2geom.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Thu Mar 2 10:46:51 UTC 2023 - Martin Liška + +- Use -fexcess-precision=fast as GCC 13 changes the default + for C++ compiler and without the change some tests fail on i586. + More info can be seen here: + https://gcc.gnu.org/gcc-13/porting_to.html#excess-precision + ------------------------------------------------------------------- Sun Dec 18 14:52:12 UTC 2022 - thod_@gmx.de diff --git a/lib2geom.spec b/lib2geom.spec index 64dffc3..b54125d 100644 --- a/lib2geom.spec +++ b/lib2geom.spec @@ -1,7 +1,7 @@ # # spec file for package lib2geom # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -32,15 +32,15 @@ Group: System/Libraries Source0: %{url}/-/archive/%{short_version}/%{name}-%{short_version}.tar.gz # PATCH-FIX-OPENSUSE Patch1: fix-pkgconfig-libdir-path.patch -BuildRequires: libboost_headers-devel BuildRequires: cmake >= 2.6 -BuildRequires: cmake(double-conversion) BuildRequires: gcc-c++ BuildRequires: glib2 BuildRequires: gsl-devel BuildRequires: gtest BuildRequires: gtk3-devel +BuildRequires: libboost_headers-devel BuildRequires: ninja +BuildRequires: cmake(double-conversion) %description A C++ 2D geometry library geared towards processing data @@ -68,6 +68,7 @@ needed to develop applications that require %{name}. %autosetup -n %{name}-%{short_version} -p1 %build +%global optflags %optflags -fexcess-precision=fast %cmake -Wno-dev \ -D2GEOM_BUILD_SHARED:BOOL=ON \ -D2GEOM_TOYS:BOOL=OFF \