Subject: bug#32694: closed (Re: [bug#32694] [PATCH] gnu: arpack-ng-openmpi: Fix build.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 11 Sep 2018 15:13:02 +0000

Your bug report

#32694: [PATCH] gnu: arpack-ng-openmpi: Fix build.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
32694: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=32694
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#32694] [PATCH] gnu: arpack-ng-openmpi: Fix build.
From: [email-masked] (Ludovic Courtès)
To: Paul Garlick <[email-masked]>
Cc: [email-masked]
Date: Tue, 11 Sep 2018 17:12:19 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Paul Garlick <[email-masked]> skribis:

> * gnu/packages/maths.scm (arpack-ng-openmpi)[arguments]: Add
> 'set-test-environment phase.

Applied, thanks!

Ludo'.

Subject: [PATCH] gnu: arpack-ng-openmpi: Fix build.
From: Paul Garlick <[email-masked]>
To: [email-masked]
Cc: Paul Garlick <[email-masked]>
Date: Tue, 11 Sep 2018 09:38:39 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/maths.scm (arpack-ng-openmpi)[arguments]: Add
'set-test-environment phase.
---
 gnu/packages/maths.scm | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/maths.scm b/gnu/packages/maths.scm
index 01bd03c..bf68089 100644
--- a/gnu/packages/maths.scm
+++ b/gnu/packages/maths.scm
@@ -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
-- 
1.8.3.1