unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#32694] [PATCH] gnu: arpack-ng-openmpi: Fix build.
@ 2018-09-11  8:38 Paul Garlick
  2018-09-11 15:12 ` bug#32694: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Paul Garlick @ 2018-09-11  8:38 UTC (permalink / raw)
  To: 32694; +Cc: Paul Garlick

* 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#32694: [PATCH] gnu: arpack-ng-openmpi: Fix build.
  2018-09-11  8:38 [bug#32694] [PATCH] gnu: arpack-ng-openmpi: Fix build Paul Garlick
@ 2018-09-11 15:12 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2018-09-11 15:12 UTC (permalink / raw)
  To: Paul Garlick; +Cc: 32694-done

Hi,

Paul Garlick <pgarlick@tourbillion-technology.com> skribis:

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

Applied, thanks!

Ludo'.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-11 15:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-11  8:38 [bug#32694] [PATCH] gnu: arpack-ng-openmpi: Fix build Paul Garlick
2018-09-11 15:12 ` bug#32694: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).