eclib: update to 20241112.

This commit is contained in:
Gonzalo Tornaría 2024-12-23 17:15:16 -03:00 committed by Leah Neukirchen
parent 229a20ff03
commit 1aaf66c827
4 changed files with 18 additions and 14 deletions

View File

@ -4208,7 +4208,7 @@ libxcvt.so.0 libxcvt-0.1.1_1
libgf2x.so.3 gf2x-1.3.0_1
libntl.so.44 ntl-11.5.1_1
libflint.so.19 flintlib-3.1.0_1
libec.so.10 eclib-20220621_1
libec.so.14 eclib-20241112_1
libsymmetrica.so.2 symmetrica-3.0.1_1
libLfunction.so.1 lcalc-2.0.4_1
liblrcalc.so.2 lrcalc-2.1_1

View File

@ -1,11 +0,0 @@
--- a/libsrc/interface.cc
+++ b/libsrc/interface.cc
@@ -103,7 +103,7 @@ void Compute_Euler(RR& y)
l = RR::precision();
- x = 1 + static_cast<long>((0.25 * (l - 3)) * (NTL_BITS_PER_LONG * LOG2));
+ x = 1 + static_cast<long>((0.25 * (l - 3)) * (64 * LOG2));
n = 1 + static_cast<long>(3.591 * x);
a=x;

View File

@ -0,0 +1,15 @@
new_modrat is broken on 32 bit, revert to old_modrat
--- a/libsrc/arith.cc
+++ b/libsrc/arith.cc
@@ -429,8 +430,8 @@ int new_modrat(long n, long m, long& a, long& b);
int modrat(long n, long m, long& a, long& b)
{
- // return old_modrat(n, m, a, b);
- return new_modrat(n, m, a, b);
+ return old_modrat(n, m, a, b);
+ //return new_modrat(n, m, a, b);
}
int old_modrat(long n, long m, long& a, long& b)

View File

@ -1,6 +1,6 @@
# Template file for 'eclib'
pkgname=eclib
version=20240408
version=20241112
revision=1
build_style=gnu-configure
configure_args="--with-flint --with-boost"
@ -11,7 +11,7 @@ license="GPL-2.0-or-later"
homepage="https://github.com/JohnCremona/eclib"
changelog="https://github.com/JohnCremona/eclib/releases"
distfiles="https://github.com/JohnCremona/eclib/releases/download/v${version}/eclib-${version}.tar.bz2"
checksum=3ba908e2019de53fcba141449caa6fa82f03605bf83bf9da8092df538adabe7c
checksum=30765c27ca1420141f83517897119d0185fea9b31132392170ddae40b060e46f
eclib-devel_package() {
depends="${sourcepkg}>=${version}_${revision} ntl-devel"