From: "Ludovic Courtès" <ludo@gnu.org>
To: 73818@debbugs.gnu.org
Cc: "Ludovic Courtès" <ludovic.courtes@inria.fr>
Subject: [bug#73818] [PATCH 2/2] gnu: prrte: Remove reference to GCC and other build tools.
Date: Tue, 15 Oct 2024 14:45:04 +0200 [thread overview]
Message-ID: <3eed0df2217e206b04619ded2debc38213e312ac.1728996088.git.ludo@gnu.org> (raw)
In-Reply-To: <cover.1728996088.git.ludo@gnu.org>
From: Ludovic Courtès <ludovic.courtes@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
prev parent reply other threads:[~2024-10-15 12:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-15 12:42 [bug#73818] [PATCH 0/2] Reduce size of openmpi@5 closure Ludovic Courtès
2024-10-15 12:45 ` [bug#73818] [PATCH 1/2] gnu: openmpi@5: Remove reference to GCC and other build tools Ludovic Courtès
2024-10-15 12:45 ` Ludovic Courtès [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3eed0df2217e206b04619ded2debc38213e312ac.1728996088.git.ludo@gnu.org \
--to=ludo@gnu.org \
--cc=73818@debbugs.gnu.org \
--cc=ludovic.courtes@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.