diff options
author | Ludovic Courtès <[email protected]> | 2024-10-15 11:42:12 +0200 |
---|---|---|
committer | Ludovic Courtès <[email protected]> | 2024-10-25 11:55:37 +0200 |
commit | 38af41c4af29976e7b33ec31de8ff8d58264a763 (patch) | |
tree | 7f7102b00182d7b782fb48f76df410ae59f4b466 /gnu/packages/parallel.scm | |
parent | 30e469cc9cffcb6541205392ebbc121465b72416 (diff) |
gnu: prrte: Remove reference to GCC and other build tools.
This reduces the closure of ‘prrte’ from 305 MiB to 99 MiB.
* gnu/packages/parallel.scm (prrte)[arguments]: Add #:phases.
Change-Id: Idc26cf5899dd5fa8378535fc8530dbdb3e20608d
Diffstat (limited to 'gnu/packages/parallel.scm')
-rw-r--r-- | gnu/packages/parallel.scm | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 89d82fb8da..202a98b2bc 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -711,9 +711,25 @@ commonly needed services in distributed and parallel computing systems.") "0wiy0vk37v4db1jgxza8bci0cczcvj34dalzsrlz05dk45zb7dl3")))) (build-system gnu-build-system) (arguments - (list #:configure-flags #~(list (string-append "--with-hwloc=" - (assoc-ref %build-inputs "hwloc")) - (string-append "--with-pmix=" #$(this-package-input "openpmix"))))) + (list #:configure-flags + #~(list (string-append "--with-hwloc=" + (assoc-ref %build-inputs "hwloc")) + (string-append "--with-pmix=" + #$(this-package-input "openpmix"))) + + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'remove-absolute-references + (lambda _ + ;; Remove references to GCC, the shell, etc. (shown by + ;; 'prte_info') to reduce the closure size. + (substitute* "src/tools/prte_info/param.c" + (("_ABSOLUTE") + "") + (("PRTE_CONFIGURE_CLI") + "\"[elided to reduce closure]\""))))) + + #:disallowed-references (list (canonical-package gcc)))) (inputs (list libevent `(,hwloc "lib") openpmix)) |