commit:     e25d5c441605f0c72e54150644cc4dabbb65a340
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 17 15:44:13 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Aug 17 15:44:23 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e25d5c44

sci-libs/symengine: fix build with Boost 1.77

Closes: https://bugs.gentoo.org/808057
Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../symengine/files/symengine-0.7.0-boost-1.77.patch  | 19 +++++++++++++++++++
 sci-libs/symengine/symengine-0.7.0.ebuild             |  1 +
 2 files changed, 20 insertions(+)

diff --git a/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch 
b/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch
new file mode 100644
index 00000000000..c4d6dc28e8f
--- /dev/null
+++ b/sci-libs/symengine/files/symengine-0.7.0-boost-1.77.patch
@@ -0,0 +1,19 @@
+https://github.com/symengine/symengine/commit/ceae675dccd593f119f3010d46e133de74fc01bc
+https://bugs.gentoo.org/808057
+
+From: Liam Keegan <l...@keegan.ch>
+Date: Mon, 31 May 2021 21:31:02 +0200
+Subject: [PATCH] use list initialization for int parameter since type depends
+ on boost version
+
+--- a/symengine/mp_boost.cpp
++++ b/symengine/mp_boost.cpp
+@@ -279,7 +279,7 @@ unsigned long mp_scan1(const integer_class &i)
+     if (i == 0) {
+         return ULONG_MAX;
+     }
+-    return find_lsb(i, int_<0>());
++    return find_lsb(i, {});
+ }
+ 
+ // define simple 2x2 matrix with exponentiation by repeated squaring

diff --git a/sci-libs/symengine/symengine-0.7.0.ebuild 
b/sci-libs/symengine/symengine-0.7.0.ebuild
index b06a7e49f07..91f658820bd 100644
--- a/sci-libs/symengine/symengine-0.7.0.ebuild
+++ b/sci-libs/symengine/symengine-0.7.0.ebuild
@@ -31,6 +31,7 @@ DEPEND="${RDEPEND}
 
 PATCHES=(
        "${FILESDIR}/${PN}-0.7.0-cmake-build-type.patch"
+       "${FILESDIR}/${PN}-0.7.0-boost-1.77.patch"
 )
 
 pkg_pretend() {

Reply via email to