From unknown Sat Jun 21 05:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#73163] [PATCH] gnu: openpmix: Do not keep a reference to GCC and other build tools. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Sep 2024 08:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 73163 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73163@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , romain.garbage@inria.fr X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172595752421959 (code B ref -1); Tue, 10 Sep 2024 08:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 10 Sep 2024 08:38:44 +0000 Received: from localhost ([127.0.0.1]:34834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwOZ-0005i6-OE for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:38:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:46518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwOX-0005hz-U3 for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:38:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwOR-0002p4-A9 for guix-patches@gnu.org; Tue, 10 Sep 2024 04:38:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwOQ-0000yR-Fx; Tue, 10 Sep 2024 04:38:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=FAkmiXa2W6ENuQYLg3qUu2EuizhtH/7AxOUWS9bcXHE=; b=QTt+UkrjOdmpME O/pfckmj5EHsXkMlt3tMyL4qkfVL069o2cQbEMulucn4cXWbAjMd49ciVAObHkK9oUqiwwYbtjKW2 jNIt6Rl7Tf/NkQ1OQs8t54JzmTvqAkoqRyIXP6svJ5hPgTAT+SMSlE67oqMxaYJ88nHapPq5pUHFo heHMKmZLk1zvOcqMdpjXmAERhHFrjqvi7dgd3ZpN/p+iqf5uFpvDdHvHLx6EAH7zci5rfKUFQLPH6 rQeBmJpAx4hGIEZVgKeqqSheVYpgI7c0dQ/C7R0iN7P4hT86EAxgLVQiVxng3aIMPxGHy4F7/H09E 1Vo3jYC2+PNAsLVsOxUw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 10 Sep 2024 10:38:07 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès This reduces the closure of ‘openpmix’ from 297 MiB to 93 MiB. * gnu/packages/parallel.scm (openpmix)[arguments]: Add #:phases and #:disallowed-references. Change-Id: I231c550743e2854e431b8100584bd464695de695 --- gnu/packages/parallel.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5a55a8641..d3ff363cd5 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -52,6 +52,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages gcc) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) @@ -646,7 +647,28 @@ (define-public openpmix (arguments (list #:configure-flags #~(list (string-append "--with-hwloc=" - (ungexp (this-package-input "hwloc") "lib"))))) + (ungexp (this-package-input "hwloc") "lib"))) + + ;; Don't keep a reference to GCC. + #:disallowed-references (and (not (%current-target-system)) + (list (canonical-package gcc))) + + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'strip-pmix-config-header + (lambda _ + ;; The 'pmix_info' program prints the 'configure' command + ;; line, compiler absolute file name, etc., which causes it + ;; to keep references to many build-time packages. Scrub + ;; these. + (substitute* "src/include/pmix_config.h.in" + (("#define PMIX_CONFIGURE_CLI .*") + "#define PMIX_CONFIGURE_CLI \"[scrubbed]\"\n")) + + (substitute* "configure" + (("PMIX_CC_ABSOLUTE=\"(.*)\"" _ cc) + (string-append "PMIX_CC_ABSOLUTE=\"$(basename \"" + cc "\")\"\n")))))))) (inputs (list libevent `(,hwloc "lib"))) (native-inputs (list perl python)) (synopsis "PMIx library") base-commit: 637ca78f513fac15284403c0d3af64492ea832a1 -- 2.46.0 From unknown Sat Jun 21 05:17:44 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#73163] [PATCH v2] gnu: openpmix: Do not keep a reference to GCC and other build tools. References: In-Reply-To: Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 10 Sep 2024 08:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73163 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73163@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , romain.garbage@inria.fr Received: via spool by 73163-submit@debbugs.gnu.org id=B73163.172595815823960 (code B ref 73163); Tue, 10 Sep 2024 08:50:01 +0000 Received: (at 73163) by debbugs.gnu.org; 10 Sep 2024 08:49:18 +0000 Received: from localhost ([127.0.0.1]:34850 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwYn-0006EO-NH for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:49:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwYm-0006EC-0x for 73163@debbugs.gnu.org; Tue, 10 Sep 2024 04:49:17 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwYa-00029s-1L; Tue, 10 Sep 2024 04:49:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=l5S2jagm8mv+izCsu3fWjihRl34LgWsxUpGEoAz99O4=; b=m0QFb8JFdtkwXR 8nadwG2W6HQ2LgTeVaxoKqCUZnQNTQuzjkn90OipOS9p1Ga3SnTSwMGdZQ87+NmvJZjbViw3pOKBv SKXv+dL1AshYhCL2gcbX3R/Ju91RfItweitACjwbrbySjhBMMAyWCf7/gY1s8CVSYTZxINKg5Dxuc ugrhX1GGe/bptNLQxQ53P1pjyHhrXbzT3QKLhpReysJjQ9iNOH3+f5Idi0VJ6TWB+9xDRhGZ2fVYu ftqD+Lxtvy9lcdWCjq9H2BcBAwWoDnyNMShH4d0pNg1jJZtD/xXIBKNqf/xNxCwTbZ7N+W6VKsARg W84ClydFyt5MCnpJjyKw==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Tue, 10 Sep 2024 10:48:54 +0200 Message-ID: <2d318ad3d3887118448da393d57aaf4b722e52ec.1725958053.git.ludo@gnu.org> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès This reduces the closure of ‘openpmix’ from 297 MiB to 93 MiB. * gnu/packages/parallel.scm (openpmix)[arguments]: Add #:phases and #:disallowed-references. Change-Id: I231c550743e2854e431b8100584bd464695de695 --- gnu/packages/parallel.scm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5a55a8641..a77894b8d6 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -52,6 +52,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages gcc) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) @@ -646,7 +647,29 @@ (define-public openpmix (arguments (list #:configure-flags #~(list (string-append "--with-hwloc=" - (ungexp (this-package-input "hwloc") "lib"))))) + (ungexp (this-package-input "hwloc") "lib"))) + + ;; Don't keep a reference to GCC. + #:disallowed-references (and (not (%current-target-system)) + (list (canonical-package gcc))) + + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'strip-pmix-cc-absolute + (lambda _ + ;; The 'pmix_info' program prints the 'configure' command + ;; line, compiler absolute file name, etc., which causes it + ;; to keep references to many build-time packages. Scrub + ;; these. + (substitute* "configure" + (("PMIX_CC_ABSOLUTE=\"(.*)\"" _ cc) + (string-append "PMIX_CC_ABSOLUTE=\"$(basename \"" + cc "\")\"\n"))))) + (add-after 'configure 'strip-pmix-config-header + (lambda _ + (substitute* "src/include/pmix_config.h" + (("#define PMIX_CONFIGURE_CLI .*") + "#define PMIX_CONFIGURE_CLI \"[scrubbed]\"\n"))))))) (inputs (list libevent `(,hwloc "lib"))) (native-inputs (list perl python)) (synopsis "PMIx library") base-commit: 637ca78f513fac15284403c0d3af64492ea832a1 -- 2.46.0 From unknown Sat Jun 21 05:17:44 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#73163: closed (Re: [bug#73163] [PATCH v2] gnu: openpmix: Do not keep a reference to GCC and other build tools.) Message-ID: References: <87tteg7y9n.fsf@gnu.org> X-Gnu-PR-Message: they-closed 73163 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 73163@debbugs.gnu.org Date: Mon, 16 Sep 2024 09:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1726478343-10840-1" This is a multi-part message in MIME format... ------------=_1726478343-10840-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #73163: [PATCH] gnu: openpmix: Do not keep a reference to GCC and other bui= ld tools. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 73163@debbugs.gnu.org. --=20 73163: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D73163 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1726478343-10840-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 73163-done) by debbugs.gnu.org; 16 Sep 2024 09:18:21 +0000 Received: from localhost ([127.0.0.1]:51121 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sq7sD-0002no-36 for submit@debbugs.gnu.org; Mon, 16 Sep 2024 05:18:21 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sq7sB-0002na-5k for 73163-done@debbugs.gnu.org; Mon, 16 Sep 2024 05:18:19 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sq7rs-0007lt-3b; Mon, 16 Sep 2024 05:18:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Mp7fzKIFlLU8lwELqOHuTJqZV/CWAuiNu5BlthMeutM=; b=BpRH90uRMgkA0v99XTkX h7++6BNJuWzX39j54t/5vEMw9PFfmFgUVOes78s+4+4n2Yzu9PgFSus8FhaCMzsKowbsSk6cw1ZtS F5A33kZUaot2INoSO6jdk5Y2mO+STdnElk0kCtMKhV3rk7pZhDKx6lidt4fFuMa8tG0I7uiQxozfN GN9CYat+Kafa5kBl7T1SUbES7ICJEPT/53Skij2ibDJ+PNUjZjE14idvMFFuJ5RN8iWOJ0n4Dvk71 LhkSFUABAgqV1dfOljLQJL4CKe+TTdkefSQpG/WNzAg+8Z5bUbkMTU/vuL5d0t5t+/KpB9a4KUVt2 EN+XnDZVg1A8Mg==; From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: 73163-done@debbugs.gnu.org Subject: Re: [bug#73163] [PATCH v2] gnu: openpmix: Do not keep a reference to GCC and other build tools. In-Reply-To: <2d318ad3d3887118448da393d57aaf4b722e52ec.1725958053.git.ludo@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22's?= message of "Tue, 10 Sep 2024 10:48:54 +0200") References: <2d318ad3d3887118448da393d57aaf4b722e52ec.1725958053.git.ludo@gnu.org> Date: Mon, 16 Sep 2024 11:17:56 +0200 Message-ID: <87tteg7y9n.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 73163-done Cc: romain.garbage@inria.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Ludovic Court=C3=A8s skribis: > From: Ludovic Court=C3=A8s > > This reduces the closure of =E2=80=98openpmix=E2=80=99 from 297=C2=A0MiB = to 93=C2=A0MiB. > > * gnu/packages/parallel.scm (openpmix)[arguments]: Add #:phases > and #:disallowed-references. > > Change-Id: I231c550743e2854e431b8100584bd464695de695 Pushed as 3daab044145b4b39fe60c64e89f35e3b2a538935. ------------=_1726478343-10840-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Sep 2024 08:38:44 +0000 Received: from localhost ([127.0.0.1]:34834 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwOZ-0005i6-OE for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:38:44 -0400 Received: from lists.gnu.org ([209.51.188.17]:46518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1snwOX-0005hz-U3 for submit@debbugs.gnu.org; Tue, 10 Sep 2024 04:38:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwOR-0002p4-A9 for guix-patches@gnu.org; Tue, 10 Sep 2024 04:38:36 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1snwOQ-0000yR-Fx; Tue, 10 Sep 2024 04:38:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=FAkmiXa2W6ENuQYLg3qUu2EuizhtH/7AxOUWS9bcXHE=; b=QTt+UkrjOdmpME O/pfckmj5EHsXkMlt3tMyL4qkfVL069o2cQbEMulucn4cXWbAjMd49ciVAObHkK9oUqiwwYbtjKW2 jNIt6Rl7Tf/NkQ1OQs8t54JzmTvqAkoqRyIXP6svJ5hPgTAT+SMSlE67oqMxaYJ88nHapPq5pUHFo heHMKmZLk1zvOcqMdpjXmAERhHFrjqvi7dgd3ZpN/p+iqf5uFpvDdHvHLx6EAH7zci5rfKUFQLPH6 rQeBmJpAx4hGIEZVgKeqqSheVYpgI7c0dQ/C7R0iN7P4hT86EAxgLVQiVxng3aIMPxGHy4F7/H09E 1Vo3jYC2+PNAsLVsOxUw==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH] gnu: openpmix: Do not keep a reference to GCC and other build tools. Date: Tue, 10 Sep 2024 10:38:07 +0200 Message-ID: X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= , romain.garbage@inria.fr X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) From: Ludovic Courtès This reduces the closure of ‘openpmix’ from 297 MiB to 93 MiB. * gnu/packages/parallel.scm (openpmix)[arguments]: Add #:phases and #:disallowed-references. Change-Id: I231c550743e2854e431b8100584bd464695de695 --- gnu/packages/parallel.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index d5a55a8641..d3ff363cd5 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -52,6 +52,7 @@ (define-module (gnu packages parallel) #:use-module (gnu packages documentation) #:use-module (gnu packages flex) #:use-module (gnu packages freeipmi) + #:use-module (gnu packages gcc) #:use-module (gnu packages libevent) #:use-module (gnu packages linux) #:use-module (gnu packages maths) @@ -646,7 +647,28 @@ (define-public openpmix (arguments (list #:configure-flags #~(list (string-append "--with-hwloc=" - (ungexp (this-package-input "hwloc") "lib"))))) + (ungexp (this-package-input "hwloc") "lib"))) + + ;; Don't keep a reference to GCC. + #:disallowed-references (and (not (%current-target-system)) + (list (canonical-package gcc))) + + #:phases + #~(modify-phases %standard-phases + (add-before 'configure 'strip-pmix-config-header + (lambda _ + ;; The 'pmix_info' program prints the 'configure' command + ;; line, compiler absolute file name, etc., which causes it + ;; to keep references to many build-time packages. Scrub + ;; these. + (substitute* "src/include/pmix_config.h.in" + (("#define PMIX_CONFIGURE_CLI .*") + "#define PMIX_CONFIGURE_CLI \"[scrubbed]\"\n")) + + (substitute* "configure" + (("PMIX_CC_ABSOLUTE=\"(.*)\"" _ cc) + (string-append "PMIX_CC_ABSOLUTE=\"$(basename \"" + cc "\")\"\n")))))))) (inputs (list libevent `(,hwloc "lib"))) (native-inputs (list perl python)) (synopsis "PMIx library") base-commit: 637ca78f513fac15284403c0d3af64492ea832a1 -- 2.46.0 ------------=_1726478343-10840-1--