From 28f75db5a21db7da1e77557c3f2d50ad492276503ad20d6aee44336d713760de Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 27 Mar 2023 22:40:56 +0000 Subject: [PATCH] - Add 0001-build-resolve-missing-includes-showing-on-gcc-13.patch OBS-URL: https://build.opensuse.org/package/show/science/4ti2?expand=0&rev=22 --- ...e-missing-includes-showing-on-gcc-13.patch | 27 +++++++++++++++++++ 4ti2.changes | 5 ++++ 4ti2.spec | 3 ++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-build-resolve-missing-includes-showing-on-gcc-13.patch diff --git a/0001-build-resolve-missing-includes-showing-on-gcc-13.patch b/0001-build-resolve-missing-includes-showing-on-gcc-13.patch new file mode 100644 index 0000000..eff549d --- /dev/null +++ b/0001-build-resolve-missing-includes-showing-on-gcc-13.patch @@ -0,0 +1,27 @@ +From c024db44f43593fbfe9d8d51f035db7a605d1fa6 Mon Sep 17 00:00:00 2001 +From: Jan Engelhardt +Date: Tue, 28 Mar 2023 00:33:03 +0200 +Subject: [PATCH] build: resolve missing includes showing on gcc-13 +References: https://github.com/4ti2/4ti2/pull/40 + +../../src/zsolve/VectorArrayAPI.hpp: In function 'void _4ti2_zsolve_::convert(const T1&, T2&) [with T1 = long int; T2 = int]': +../../src/zsolve/VectorArrayAPI.hpp:79:14: error: 'INT32_MIN' was not declared in this scope; did you mean 'INT_MIN'? +--- + src/zsolve/VectorArrayAPI.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/zsolve/VectorArrayAPI.hpp b/src/zsolve/VectorArrayAPI.hpp +index a5cb948..cd2ae99 100644 +--- a/src/zsolve/VectorArrayAPI.hpp ++++ b/src/zsolve/VectorArrayAPI.hpp +@@ -27,6 +27,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + #include "zsolve/VectorArray.hpp" + #include "zsolve/Exception.h" + #include ++#include + #include + + namespace _4ti2_zsolve_ { +-- +2.40.0 + diff --git a/4ti2.changes b/4ti2.changes index e317f01..4a2f770 100644 --- a/4ti2.changes +++ b/4ti2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Mar 27 22:35:21 UTC 2023 - Jan Engelhardt + +- Add 0001-build-resolve-missing-includes-showing-on-gcc-13.patch + ------------------------------------------------------------------- Thu Jul 1 20:03:41 UTC 2021 - Jan Engelhardt diff --git a/4ti2.spec b/4ti2.spec index b2e6cc7..b473fde 100644 --- a/4ti2.spec +++ b/4ti2.spec @@ -1,7 +1,7 @@ # # spec file for package 4ti2 # -# Copyright (c) 2021 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 @@ -27,6 +27,7 @@ URL: https://4ti2.github.io/ Source: https://github.com/4ti2/4ti2/releases/download/Release_1_6_9/4ti2-1.6.9.tar.gz Patch1: 4ti2-docdir.diff Patch2: 4ti2-handle-prefix.patch +Patch3: 0001-build-resolve-missing-includes-showing-on-gcc-13.patch BuildRequires: autoconf >= 2.59 BuildRequires: automake BuildRequires: fdupes