gnu: arpack-ng-openmpi: Fix build.
authorPaul Garlick <pgarlick@tourbillion-technology.com>
Tue, 11 Sep 2018 08:38:39 +0000 (09:38 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 11 Sep 2018 15:46:29 +0000 (17:46 +0200)
* gnu/packages/maths.scm (arpack-ng-openmpi)[arguments]: Add
'set-test-environment phase.

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
gnu/packages/maths.scm

index 4e1347e..d1db75e 100644 (file)
@@ -508,7 +508,17 @@ large scale eigenvalue problems.")
     (arguments
      (substitute-keyword-arguments (package-arguments arpack-ng)
        ((#:configure-flags _ '())
-        ''("--enable-mpi"))))
+        ''("--enable-mpi"))
+       ((#:phases phases '%standard-phases)
+        `(modify-phases ,phases
+           (add-before 'check 'set-test-environment
+             (lambda _
+               ;; By default, running the test suite would fail because 'ssh'
+               ;; could not be found in $PATH.  Define this variable to
+               ;; placate Open MPI without adding a dependency on OpenSSH (the
+               ;; agent isn't used anyway.)
+               (setenv "OMPI_MCA_plm_rsh_agent" (which "cat"))
+               #t))))))
     (synopsis "Fortran subroutines for solving eigenvalue problems with MPI")))
 
 (define-public lapack