diff --git a/srcpkgs/givaro/patches/197.patch b/srcpkgs/givaro/patches/197.patch new file mode 100644 index 00000000000..bafaff3efbd --- /dev/null +++ b/srcpkgs/givaro/patches/197.patch @@ -0,0 +1,28 @@ +From ab3d332508c21daff41fb64a8658cdc7cc74fc47 Mon Sep 17 00:00:00 2001 +From: Cyril Bouvier +Date: Thu, 16 Dec 2021 17:12:25 +0100 +Subject: [PATCH] dom_power argument is now an uint64_t to avoid problem with + 32bit machine + +--- + src/kernel/system/givpower.h | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/kernel/system/givpower.h b/src/kernel/system/givpower.h +index eb784872..5644264d 100644 +--- a/src/kernel/system/givpower.h ++++ b/src/kernel/system/givpower.h +@@ -71,11 +71,11 @@ namespace Givaro { + + //! dom_power + template +- TT& dom_power(TT& res, const TT& n, long l, const D& F) ++ TT& dom_power(TT& res, const TT& n, uint64_t l, const D& F) + { + if (l == 0) return F.assign(res,F.one) ; + +- unsigned long p = (unsigned long) l ; ++ uint64_t p = l; + bool is_assg = false ; + + TT puiss; F.init(puiss); F.assign(puiss,n) ; diff --git a/srcpkgs/givaro/template b/srcpkgs/givaro/template index 9c16de5b197..52457c02a1e 100644 --- a/srcpkgs/givaro/template +++ b/srcpkgs/givaro/template @@ -1,6 +1,6 @@ # Template file for 'givaro' pkgname=givaro -version=4.1.1 +version=4.2.0 revision=1 build_style=gnu-configure makedepends="gmpxx-devel" @@ -8,16 +8,15 @@ short_desc="C++ library for arithmetic and algebraic computations" maintainer="Gonzalo TornarĂ­a " license="CECILL-B" homepage="https://github.com/linbox-team/givaro" +changelog="https://github.com/linbox-team/givaro/raw/master/ChangeLog" distfiles="https://github.com/linbox-team/givaro/releases/download/v${version}/givaro-${version}.tar.gz" -checksum=628049899386e91da245aee6cd446350fbca87e94863bc0d815066c08150487f +checksum=865e228812feca971dfb6e776a7bc7ac959cf63ebd52b4f05492730a46e1f189 nocross=yes build_options="native_build" if [ -z "$build_option_native_build" ]; then - configure_args="--enable-sse --enable-sse2 - --disable-sse3 --disable-ssse3 --disable-sse41 --disable-sse42 - --disable-avx --disable-avx2 --disable-fma --disable-fma4" + configure_args="--without-archnative" fi post_install() {