guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

05/07: gnu: openmpi: Remove references to compiler pathnames in "_info"


From: Ludovic Courtès
Subject: 05/07: gnu: openmpi: Remove references to compiler pathnames in "_info" programs.
Date: Mon, 21 Aug 2017 11:06:13 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 0d97d3cbff3d81c8a95b2dc7e037deb04c770779
Author: Dave Love <address@hidden>
Date:   Mon Jul 31 17:15:19 2017 +0100

    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.
    
    Co-authored-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/mpi.scm | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gnu/packages/mpi.scm b/gnu/packages/mpi.scm
index f24da7b..3337054 100644
--- a/gnu/packages/mpi.scm
+++ b/gnu/packages/mpi.scm
@@ -143,6 +143,18 @@ 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 compiler absolute file names (OPAL_FC_ABSOLUTE
+                    ;; etc.) to reduce the closure size.  See
+                    ;; 
<https://lists.gnu.org/archive/html/guix-devel/2017-07/msg00388.html>
+                    ;; and
+                    ;; 
<https://www.mail-archive.com/address@hidden//msg31397.html>.
+                    (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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]