givaro: update to 4.2.0.

This commit is contained in:
Gonzalo Tornaría 2021-12-16 20:20:09 -03:00 committed by Leah Neukirchen
parent b4f3a42c13
commit d83da5086f
2 changed files with 32 additions and 5 deletions

View file

@ -0,0 +1,28 @@
From ab3d332508c21daff41fb64a8658cdc7cc74fc47 Mon Sep 17 00:00:00 2001
From: Cyril Bouvier <cyril.bouvier@lirmm.fr>
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<class D, class TT>
- 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) ;

View file

@ -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 <tornaria@cmat.edu.uy>"
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() {