diff options
author | Michał Górny <mgorny@gentoo.org> | 2023-12-25 08:00:16 +0100 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2023-12-25 08:06:24 +0100 |
commit | b9383d127d02605200977c760165bfb04552dbf5 (patch) | |
tree | c804aa290a61e23921dbac5daccaafddbe5a009f /sci-libs | |
parent | dev-python/pypdf: Bump to 3.17.4 (diff) | |
download | gentoo-b9383d127d02605200977c760165bfb04552dbf5.tar.gz gentoo-b9383d127d02605200977c760165bfb04552dbf5.tar.bz2 gentoo-b9383d127d02605200977c760165bfb04552dbf5.zip |
sci-libs/symengine: Backportfix flint-3 build fix
Closes: https://bugs.gentoo.org/920645
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/symengine/files/symengine-0.11.1-flint-3.patch | 41 | ||||
-rw-r--r-- | sci-libs/symengine/symengine-0.11.1.ebuild | 2 |
2 files changed, 43 insertions, 0 deletions
diff --git a/sci-libs/symengine/files/symengine-0.11.1-flint-3.patch b/sci-libs/symengine/files/symengine-0.11.1-flint-3.patch new file mode 100644 index 000000000000..662a4bc1bdc1 --- /dev/null +++ b/sci-libs/symengine/files/symengine-0.11.1-flint-3.patch @@ -0,0 +1,41 @@ +From 1ef98559d75b4fa5b87dad2daff0d12e7857ac8d Mon Sep 17 00:00:00 2001 +From: Isuru Fernando <isuruf@gmail.com> +Date: Mon, 30 Oct 2023 20:25:05 -0500 +Subject: [PATCH] Fix flint headers and replace use of deprecated funcs in + flint2/3 + +--- + symengine/flint_wrapper.h | 8 ++++++-- + 1 file changed, 6 insertions(+), 2 deletions(-) + +diff --git a/symengine/flint_wrapper.h b/symengine/flint_wrapper.h +index 21cfcef056..ade419088f 100644 +--- a/symengine/flint_wrapper.h ++++ b/symengine/flint_wrapper.h +@@ -6,6 +6,8 @@ + + #include <flint/fmpz.h> + #include <flint/fmpq.h> ++#include <flint/fmpz_poly.h> ++#include <flint/fmpz_poly_factor.h> + #include <flint/fmpq_poly.h> + + namespace SymEngine +@@ -710,13 +712,15 @@ class fmpq_poly_wrapper + } + fmpq_poly_wrapper(const mpz_t z) + { ++ fmpz_wrapper fz(z); + fmpq_poly_init(poly); +- fmpq_poly_set_mpz(poly, z); ++ fmpq_poly_set_fmpz(poly, fz.get_fmpz_t()); + } + fmpq_poly_wrapper(const mpq_t q) + { ++ fmpq_wrapper fq(q); + fmpq_poly_init(poly); +- fmpq_poly_set_mpq(poly, q); ++ fmpq_poly_set_fmpq(poly, fq.get_fmpq_t()); + } + fmpq_poly_wrapper(const fmpq_wrapper &q) + { diff --git a/sci-libs/symengine/symengine-0.11.1.ebuild b/sci-libs/symengine/symengine-0.11.1.ebuild index eb06f3cc27bf..63bf4d2833ef 100644 --- a/sci-libs/symengine/symengine-0.11.1.ebuild +++ b/sci-libs/symengine/symengine-0.11.1.ebuild @@ -38,6 +38,8 @@ BDEPEND="doc? ( app-doc/doxygen[dot] )" PATCHES=( "${FILESDIR}"/${PN}-0.7.0-cmake-build-type.patch "${FILESDIR}"/${PN}-0.8.1-fix_llvm.patch + # https://github.com/symengine/symengine/pull/1985 + "${FILESDIR}"/${PN}-0.11.1-flint-3.patch ) pkg_pretend() { |