Archived
1
0
Fork 0

gnu: mpfi: Update to 1.5.4-1.b982534.

* gnu/packages/multiprecision.scm (mpfi): Update to 1.5.4-1.b982534.
[source]: Fetch from git and use latest commit available.
[tests?]: Delete argument, enabling test suite.
[phases]: New argument.
[native-inputs]: New field.
This commit is contained in:
Maxim Cournoyer 2022-10-02 22:07:39 -04:00
parent a001be9664
commit 8ad1978695
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -29,11 +29,14 @@
#:use-module (guix licenses) #:use-module (guix licenses)
#:use-module (gnu packages) #:use-module (gnu packages)
#:use-module (gnu packages autotools) #:use-module (gnu packages autotools)
#:use-module (gnu packages bison)
#:use-module (gnu packages flex)
#:use-module (gnu packages m4) #:use-module (gnu packages m4)
#:use-module (gnu packages gcc) #:use-module (gnu packages gcc)
#:use-module (gnu packages texinfo) #:use-module (gnu packages texinfo)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix gexp) #:use-module (guix gexp)
#:use-module (guix git-download)
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix utils) #:use-module (guix utils)
#:use-module (guix build-system gnu)) #:use-module (guix build-system gnu))
@ -158,27 +161,44 @@ precision and correctly rounds the results.")
(home-page "http://www.multiprecision.org/mpc/"))) (home-page "http://www.multiprecision.org/mpc/")))
(define-public mpfi (define-public mpfi
(package ;; The last release, 1.5.4, lacks source files such as div_ext.c and others
(name "mpfi") ;; (see: https://gitlab.inria.fr/mpfi/mpfi/-/issues/21721). Use the latest
(version "1.5.4") ;; commit until a new release is made.
(source (origin (let ((commit "b9825348f1e723ab0988105599b34f1f9cd5ff3e")
(method url-fetch) (revision "1"))
(uri (string-append "https://gforge.inria.fr/frs/download.php" (package
"/latestfile/181/mpfi-" version ".tgz")) (name "mpfi")
(sha256 (version (git-version "1.5.4" revision commit))
(base32 (source (origin
"0mismr1ll3wp788dq2n22s5irm0dziy75byyfdwz22kjbmckhf9v")))) (method git-fetch)
(build-system gnu-build-system) (uri (git-reference
(arguments (url "https://gitlab.inria.fr/mpfi/mpfi")
(list #:tests? #f ;tests are broken in this release (commit commit)))
#:configure-flags #~(list "--enable-static=no"))) (file-name (git-file-name name version))
(native-inputs (list automake autoconf libtool texinfo)) (sha256
(propagated-inputs (base32
(list gmp mpfr)) ;<mpfi.h> refers to both "141pa2ym1azka25bwkx2w1mf6wdcn155ncc45dr5bj5dycw2hj0m"))))
(home-page "https://gforge.inria.fr/projects/mpfi/") (build-system gnu-build-system)
(synopsis "C library for arbitrary-precision interval arithmetic") (arguments
(description (list #:configure-flags #~(list "--enable-static=no")
"@acronym{MPFI, Multiple Precision Floating-point Interval} is a portable C #:phases #~(modify-phases %standard-phases
(add-after 'unpack 'chdir
(lambda _
(chdir "mpfi")))
(add-after 'unpack 'disable-problematic-tests
(lambda _
;; XXX: The tdiv_ext and trec_sqrt tests
;; segfaults (not reported upstream; accounts on
;; their gitlab apparently require to be
;; manually created).
(setenv "XFAIL_TESTS" "tdiv_ext trec_sqrt"))))))
(native-inputs (list automake autoconf libtool texinfo))
(propagated-inputs
(list gmp mpfr)) ;<mpfi.h> refers to both
(home-page "https://gitlab.inria.fr/mpfi/mpfi")
(synopsis "C library for arbitrary-precision interval arithmetic")
(description
"@acronym{MPFI, Multiple Precision Floating-point Interval} is a portable C
library for arbitrary-precision interval arithmetic, with intervals represented library for arbitrary-precision interval arithmetic, with intervals represented
using MPFR reliable floating-point numbers. It's based on the @acronym{GMP, GNU using MPFR reliable floating-point numbers. It's based on the @acronym{GMP, GNU
Multiple Precision Arithmetic} and GNU@tie{}@acronym{MPFR, Multiple Precision Multiple Precision Arithmetic} and GNU@tie{}@acronym{MPFR, Multiple Precision
@ -187,7 +207,7 @@ Floating-Point Reliably} libraries.
The purpose of arbitrary-precision interval arithmetic is to get results that The purpose of arbitrary-precision interval arithmetic is to get results that
are both guaranteed, thanks to interval computation, and accurate, thanks to are both guaranteed, thanks to interval computation, and accurate, thanks to
multiple-precision arithmetic.") multiple-precision arithmetic.")
(license lgpl2.1+))) (license lgpl2.1+))))
(define-public irram (define-public irram
(package (package