>From ec65c9d847c30d51bf83b49b397bc1ca20b7ca11 Mon Sep 17 00:00:00 2001 From: Dave Love Date: Mon, 31 Jul 2017 17:15:19 +0100 Subject: [PATCH 8/8] gnu: openmpi: Remove references to compiler pathnames in "_info" programs. This reduces the closure greatly, but note that the Fortran .mod files are gfortran version-specific, so there should probably be development packages for each incompatible version. (The runtime is supposed to be more-or-less version-independent unless the libgfortran soname changes.) There may still be a case for a separate runtime output. * gnu/packages/mpi.scm (openmpi)[arguments]: Add "remove-absolute" phase. --- gnu/packages/mpi.scm | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm index abda1cc43..ffae04415 100644 --- a/gnu/packages/mpi.scm +++ b/gnu/packages/mpi.scm @@ -152,6 +152,14 @@ bind processes, and much more.") ,(string-append "--with-hwloc=" (assoc-ref %build-inputs "hwloc"))) #:phases (modify-phases %standard-phases + (add-before 'build 'remove-absolute + ;; Remove compilers (OPAL_FC_ABSOLUTE etc.) from closure. + (lambda _ + (substitute* '("orte/tools/orte-info/param.c" + "oshmem/tools/oshmem_info/param.c" + "ompi/tools/ompi_info/param.c") + (("_ABSOLUTE") "")) + #t)) (add-before 'build 'scrub-timestamps ;reproducibility (lambda _ (substitute* '("ompi/tools/ompi_info/param.c" -- 2.11.0