givaro: update to 4.2.1.

This commit is contained in:
Gonzalo Tornaría 2025-02-11 09:50:58 -03:00 committed by oreo639
parent f553102a5b
commit 4ebaaf6562
3 changed files with 4 additions and 55 deletions

View file

@ -1,28 +0,0 @@
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,23 +0,0 @@
From c7744bb133496cd7ac04688f345646d505e1bf52 Mon Sep 17 00:00:00 2001
From: "Benjamin A. Beasley" <code@musicinmybrain.net>
Date: Thu, 19 Jan 2023 09:12:22 -0500
Subject: [PATCH] Add missing #include <cstdint> for (u)int64_t
Fixes failure to compile on GCC 13.
---
src/library/poly1/givdegree.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/library/poly1/givdegree.h b/src/library/poly1/givdegree.h
index 3753a425..eb85a0dd 100644
--- a/src/library/poly1/givdegree.h
+++ b/src/library/poly1/givdegree.h
@@ -19,6 +19,8 @@
#ifndef __GIVARO_poly1degree_H
#define __GIVARO_poly1degree_H
+#include <cstdint>
+
#include <iostream>
namespace Givaro {

View file

@ -1,16 +1,16 @@
# Template file for 'givaro'
pkgname=givaro
version=4.2.0
revision=2
version=4.2.1
revision=1
build_style=gnu-configure
makedepends="gmpxx-devel"
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"
changelog="https://github.com/linbox-team/givaro/releases"
distfiles="https://github.com/linbox-team/givaro/releases/download/v${version}/givaro-${version}.tar.gz"
checksum=865e228812feca971dfb6e776a7bc7ac959cf63ebd52b4f05492730a46e1f189
checksum=feefb7445842ceb756f8bb13900d975b530551e488a2ae174bda7b636251de43
nocross=yes
build_options="native_build"