commit:     681a1bf8e3b6e7e3be095fabe24d838bbb2469f9
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 14 21:32:44 2026 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jan 15 18:52:12 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=681a1bf8

sci-mathematics/eclib: Fix build w/ boost-1.89

Closes: https://bugs.gentoo.org/964383
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-mathematics/eclib/eclib-20250627.ebuild        | 11 +++-
 .../eclib/files/eclib-20250627-boost-1.89.patch    | 60 ++++++++++++++++++++++
 2 files changed, 70 insertions(+), 1 deletion(-)

diff --git a/sci-mathematics/eclib/eclib-20250627.ebuild 
b/sci-mathematics/eclib/eclib-20250627.ebuild
index f1f46ce9609a..a0afac15047f 100644
--- a/sci-mathematics/eclib/eclib-20250627.ebuild
+++ b/sci-mathematics/eclib/eclib-20250627.ebuild
@@ -1,8 +1,10 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
+inherit autotools
+
 DESCRIPTION="Programs for elliptic curves defined over the rational numbers"
 HOMEPAGE="https://github.com/JohnCremona/eclib";
 
SRC_URI="https://github.com/JohnCremona/${PN}/releases/download/${PV}/${P}.tar.bz2";
@@ -22,6 +24,13 @@ RDEPEND="sci-mathematics/pari:=
        flint? ( sci-mathematics/flint:= )"
 DEPEND="${RDEPEND}"
 
+PATCHES=( "${FILESDIR}/${P}-boost-1.89.patch" ) # bug 964383
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
 src_configure() {
        econf \
                $(usex minimal --disable-allprogs "" "" "") \

diff --git a/sci-mathematics/eclib/files/eclib-20250627-boost-1.89.patch 
b/sci-mathematics/eclib/files/eclib-20250627-boost-1.89.patch
new file mode 100644
index 000000000000..d0e5a94ddf2d
--- /dev/null
+++ b/sci-mathematics/eclib/files/eclib-20250627-boost-1.89.patch
@@ -0,0 +1,60 @@
+From 26a999f39b21f644c6a458cfa51a4786596e760f Mon Sep 17 00:00:00 2001
+From: John Cremona <[email protected]>
+Date: Wed, 22 Oct 2025 14:42:50 +0100
+Subject: [PATCH] Fix build w/ boost-1.89
+
+asturm 2026-01-14:
+This is a combination of upstream git master commits, disregarding changes
+in .gitignore and removal of then unused m4/ax_boost_system.m4:
+
+updated boost configuration
+5918854e6a2d7ad9abfa671034b0ea0ebf7515f0
+
+updated boost configuration again
+0f44970b8cee023ad8f53663c97660e0c3b039ef
+
+updated boost configuration again
+31cb6092cde97a18c9517e5b65ff96ebdf942543
+
+Signed-off-by: Andreas Sturmlechner <[email protected]>
+---
+ configure.ac | 12 ++++++++----
+ 1 file changed, 8 insertions(+), 4 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 5b77908..20dd090 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -67,13 +67,17 @@ AX_CXX_COMPILE_STDCXX([17],,mandatory)
+ #
+ # Boost 1.35.0+ required for Asio (1.25.0 for Thread)
+ AX_BOOST_BASE([1.35.0], [
+-AX_BOOST_SYSTEM
++#AX_BOOST_SYSTEM
+ AX_BOOST_ASIO
+ AX_BOOST_THREAD
+ ])
+ 
+-if [test "$ax_cv_boost_system" = "yes"] &&
+-   [test "$ax_cv_boost_asio"   = "yes"] &&
++#BOOST_REQUIRE([1.35.0])
++
++#if [test "$boost" = "yes"]; then
++#   AC_DEFINE([ECLIB_MULTITHREAD],[1],[Define if multithreading available and 
requested])
++#fi
++if [test "$ax_cv_boost_asio"   = "yes"] &&
+    [test "$ax_cv_boost_thread" = "yes"]; then
+    AC_DEFINE([ECLIB_MULTITHREAD],[1],[Define if multithreading available and 
requested])
+ fi
+@@ -81,7 +85,7 @@ fi
+ AX_PTHREAD
+ 
+ # Check for libraries
+-# The following AC_ARG_WITH section were written by Volker Braun
++# The following AC_ARG_WITH section were originally written by Volker Braun
+ 
+ dnl Find PARI
+ AC_ARG_WITH(pari,
+-- 
+2.52.0
+

Reply via email to