mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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
This commit is contained in:
parent
30e469cc9c
commit
38af41c4af
1 changed files with 19 additions and 3 deletions
|
@ -711,9 +711,25 @@ commonly needed services in distributed and parallel computing systems.")
|
||||||
"0wiy0vk37v4db1jgxza8bci0cczcvj34dalzsrlz05dk45zb7dl3"))))
|
"0wiy0vk37v4db1jgxza8bci0cczcvj34dalzsrlz05dk45zb7dl3"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
(list #:configure-flags #~(list (string-append "--with-hwloc="
|
(list #:configure-flags
|
||||||
|
#~(list (string-append "--with-hwloc="
|
||||||
(assoc-ref %build-inputs "hwloc"))
|
(assoc-ref %build-inputs "hwloc"))
|
||||||
(string-append "--with-pmix=" #$(this-package-input "openpmix")))))
|
(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
|
(inputs (list libevent
|
||||||
`(,hwloc "lib")
|
`(,hwloc "lib")
|
||||||
openpmix))
|
openpmix))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue