GNU bug report logs -
#73818
[PATCH 0/2] Reduce size of openmpi@5 closure
Previous Next
Reported by: Ludovic Courtès <ludo <at> gnu.org>
Date: Tue, 15 Oct 2024 12:44:01 UTC
Severity: normal
Tags: patch
Done: Ludovic Courtès <ludovic.courtes <at> inria.fr>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 73818 <at> debbugs.gnu.org (full text, mbox):
From: Ludovic Courtès <ludovic.courtes <at> inria.fr>
This reduces the closure of ‘prrte’ from 305 MiB to 99 MiB.
* gnu/packages/parallel.scm (prrte)[arguments]: Add #:phases.
Change-Id: Idc26cf5899dd5fa8378535fc8530dbdb3e20608d
---
gnu/packages/parallel.scm | 22 +++++++++++++++++++---
1 file changed, 19 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm
index fc96136065..186aebad45 100644
--- a/gnu/packages/parallel.scm
+++ b/gnu/packages/parallel.scm
@@ -711,9 +711,25 @@ (define-public prrte
"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))
--
2.46.0
This bug report was last modified 265 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.