* gnu/packages/algebra.scm (gmp-ecm)[source]: Replace 'url-fetch' by
[natice-inputs]: Add requirements.
[arguments]: Adjust 'check phase to substitute correct path.
gnu/packages/algebra.scm | 28 +++++++++++++++++++++-------
1 file changed, 21 insertions(+), 7 deletions(-)
Toggle diff (65 lines)
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index 318d653618..1cf293f17a 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
;;; Copyright © 2020 Jakub Kądziołka <kuba@kadziolka.net>
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
+;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
;;; This file is part of GNU Guix.
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix hg-download)
+ #:use-module (guix svn-download)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix utils))
@@ -670,15 +672,20 @@ geometry and singularity theory.")
- ;; Use the ‘Latest version’ link for a stable URI across releases.
- (uri (string-append "https://gforge.inria.fr/frs/download.php/"
- "latestfile/160/ecm-" version ".tar.gz"))
+ (url "https://scm.gforge.inria.fr/anonscm/svn/ecm/trunk")
- "0hxs24c2m3mh0nq1zz63z3sb7dhy1rilg2s1igwwcb26x3pb7xqc"))))
+ "0g1jqgp9baqz4x9mzksch69i4kp3207d3wn56g9vnsmanrrb4qvb"))))
(build-system gnu-build-system)
+ `(("autoconf" ,autoconf)
@@ -686,7 +693,14 @@ geometry and singularity theory.")
;; Disable specific assembly routines, which depend
;; on the subarchitecture of the build machine,
- "--disable-asm-redc")))
+ #:phases (modify-phases %standard-phases
+ (add-before 'check 'replace-/bin/rm
+ (("/bin/rm") (which "rm")))
(synopsis "Integer factorization library using the elliptic curve method")
"GMP-ECM factors integers using the elliptic curve method (ECM) as well