commit:     58f1e1069105a47b83608407d7da3cd99e7f25b4
Author:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 30 04:54:27 2025 +0000
Commit:     Andrey Grozin <grozin <AT> gentoo <DOT> org>
CommitDate: Wed Apr 30 04:54:27 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58f1e106

sci-mathematics/ginac: fix test with gcc-15

Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>

 sci-mathematics/ginac/files/ginac-1.8.8-gcc-15.patch | 19 +++++++++++++++++++
 sci-mathematics/ginac/ginac-1.8.8.ebuild             |  3 ++-
 2 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/ginac/files/ginac-1.8.8-gcc-15.patch 
b/sci-mathematics/ginac/files/ginac-1.8.8-gcc-15.patch
new file mode 100644
index 000000000000..9a8d618eba1d
--- /dev/null
+++ b/sci-mathematics/ginac/files/ginac-1.8.8-gcc-15.patch
@@ -0,0 +1,19 @@
+diff --git a/check/exam_archive.cpp b/check/exam_archive.cpp
+index 2ca13a8e..5821c97a 100644
+--- a/check/exam_archive.cpp
++++ b/check/exam_archive.cpp
+@@ -101,10 +101,10 @@ unsigned numeric_complex_bug()
+       const cl_I one(1);
+       const cl_R three_fp = cl_float(3.0);
+       std::vector<cl_N> numbers = {
+-              complex(one, one),
+-              complex(one, three_fp),
+-              complex(three_fp, one),
+-              complex(three_fp, three_fp)
++              cln::complex(one, one),
++              cln::complex(one, three_fp),
++              cln::complex(three_fp, one),
++              cln::complex(three_fp, three_fp)
+       };
+       for (auto & n : numbers) {
+               result += checker(n);

diff --git a/sci-mathematics/ginac/ginac-1.8.8.ebuild 
b/sci-mathematics/ginac/ginac-1.8.8.ebuild
index 318ca92c43f2..17c594b83ac8 100644
--- a/sci-mathematics/ginac/ginac-1.8.8.ebuild
+++ b/sci-mathematics/ginac/ginac-1.8.8.ebuild
@@ -29,7 +29,8 @@ BDEPEND="
                virtual/texi2dvi
        )"
 
-PATCHES=( "${FILESDIR}"/${PN}-1.8.2-pkgconfig.patch )
+PATCHES=( "${FILESDIR}"/${PN}-1.8.2-pkgconfig.patch
+       "${FILESDIR}"/${PN}-1.8.8-gcc-15.patch )
 
 src_configure() {
        econf \

Reply via email to