From unknown Sat Jun 14 05:27:29 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#74011] [PATCH] gnu: prrte: Record the absolute file name of =?UTF-8?Q?=E2=80=98prted=E2=80=99.?= Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 25 Oct 2024 10:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74011 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74011@debbugs.gnu.org Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172985324019956 (code B ref -1); Fri, 25 Oct 2024 10:48:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Oct 2024 10:47:20 +0000 Received: from localhost ([127.0.0.1]:37511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hqi-0005Bo-Dv for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:47:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:35306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hqg-0005Bf-I8 for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:47:19 -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 1t4Hq8-00057Y-H9 for guix-patches@gnu.org; Fri, 25 Oct 2024 06:46:45 -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 1t4Hq5-0003aG-Dt; Fri, 25 Oct 2024 06:46:41 -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=nFwgJFHjvHTGmt7PVjlcN09SylPRMytcUeDFy7W+KVE=; b=EbFrVH3HurEyyK GDkRJydsky/7xWohgQ+0ROcTCEApOwDmaG2rQ/RsX5XdOoOp4BZNv8eMhP8Y5Rmmh1RRoimJMbb4E HjPGMY/ioFiBINwsqZEbXEhSWrnO6kBZpOFsVIbgjRa1LwN+JlsGgkjh1IdQ6bUhjHAT6HfIi1zAe Ax8s9y8WJ4SpjbOZEwmzJJnG4K4NA4++6XTZHakAaRZlkMbNy+syslZDqWhtt/NUPo77hAwHQUK56 R6Qg8oH9k2lJ2kCrNyxRBCAg7QAVfFxVJ41AhlctR0mvHB9fAjn7iImuoNYo7JC62bMTjxDMeaxc5 ByhN6uTxaaADi+9+5XCA==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Date: Fri, 25 Oct 2024 12:46:24 +0200 Message-ID: <8cf9c3e955e22aa68741caa03a33bb28bc0aa73b.1729853141.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 Previously a command like: guix shell --pure openmpi@5 openssh intel-mpi-benchmarks \ --with-input=openmpi@4=openmpi@5 slurm -- \ salloc -N2 -- mpirun -np 2 --map-by node IMB-MPI1 PingPong would silently fail due to ‘prted’ not being found in $PATH. * gnu/packages/parallel.scm (prrte)[arguments]: Add ‘patch-prted-reference’ phase. Change-Id: Iff30cb5a4dcc9e9cfe6638d518ee4f19561289a0 --- gnu/packages/parallel.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 202a98b2bc..85f8a114c3 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -727,7 +727,15 @@ (define-public prrte (("_ABSOLUTE") "") (("PRTE_CONFIGURE_CLI") - "\"[elided to reduce closure]\""))))) + "\"[elided to reduce closure]\"")))) + (add-after 'unpack 'patch-prted-reference + (lambda _ + ;; Record the absolute file name of 'prted' instead of + ;; assuming it will be found in $PATH at run time. + (substitute* "src/runtime/prte_mca_params.c" + (("prte_launch_agent =.*") + (string-append "prte_launch_agent = \"" + #$output "/bin/prted\";\n")))))) #:disallowed-references (list (canonical-package gcc)))) (inputs (list libevent base-commit: a1714de3aa4f60d211c166876c3515f96384b0c7 -- 2.46.0 From unknown Sat Jun 14 05:27:29 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#74011: closed (Close) Message-ID: References: <8cf9c3e955e22aa68741caa03a33bb28bc0aa73b.1729853141.git.ludo@gnu.org> X-Gnu-PR-Message: they-closed 74011 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 74011@debbugs.gnu.org Date: Mon, 28 Oct 2024 09:25:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1730107502-21672-1" This is a multi-part message in MIME format... ------------=_1730107502-21672-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #74011: [PATCH] gnu: prrte: Record the absolute file name of =E2=80=98prted= =E2=80=99. 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 74011@debbugs.gnu.org. --=20 74011: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D74011 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1730107502-21672-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 74011-done) by debbugs.gnu.org; 28 Oct 2024 09:24:47 +0000 Received: from localhost ([127.0.0.1]:52517 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5LzS-0005cq-Qx for submit@debbugs.gnu.org; Mon, 28 Oct 2024 05:24:47 -0400 Received: from hera.aquilenet.fr ([185.233.100.1]:57840) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5LzQ-0005cW-Tx for 74011-done@debbugs.gnu.org; Mon, 28 Oct 2024 05:24:45 -0400 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 2F4B5768; Mon, 28 Oct 2024 10:24:03 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at hera.aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xma1IACLL6pE; Mon, 28 Oct 2024 10:24:02 +0100 (CET) Received: from jurong (unknown [IPv6:2001:861:c4:f2f0::c64]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 937AD45B; Mon, 28 Oct 2024 10:24:02 +0100 (CET) Date: Mon, 28 Oct 2024 10:24:01 +0100 From: Andreas Enge To: 74011-done@debbugs.gnu.org Subject: Close Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 74011-done 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: -1.0 (-) The patch passes QA. I am pushing it on behalf of the author who is AWK. Andreas ------------=_1730107502-21672-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Oct 2024 10:47:20 +0000 Received: from localhost ([127.0.0.1]:37511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hqi-0005Bo-Dv for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:47:20 -0400 Received: from lists.gnu.org ([209.51.188.17]:35306) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t4Hqg-0005Bf-I8 for submit@debbugs.gnu.org; Fri, 25 Oct 2024 06:47:19 -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 1t4Hq8-00057Y-H9 for guix-patches@gnu.org; Fri, 25 Oct 2024 06:46:45 -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 1t4Hq5-0003aG-Dt; Fri, 25 Oct 2024 06:46:41 -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=nFwgJFHjvHTGmt7PVjlcN09SylPRMytcUeDFy7W+KVE=; b=EbFrVH3HurEyyK GDkRJydsky/7xWohgQ+0ROcTCEApOwDmaG2rQ/RsX5XdOoOp4BZNv8eMhP8Y5Rmmh1RRoimJMbb4E HjPGMY/ioFiBINwsqZEbXEhSWrnO6kBZpOFsVIbgjRa1LwN+JlsGgkjh1IdQ6bUhjHAT6HfIi1zAe Ax8s9y8WJ4SpjbOZEwmzJJnG4K4NA4++6XTZHakAaRZlkMbNy+syslZDqWhtt/NUPo77hAwHQUK56 R6Qg8oH9k2lJ2kCrNyxRBCAg7QAVfFxVJ41AhlctR0mvHB9fAjn7iImuoNYo7JC62bMTjxDMeaxc5 ByhN6uTxaaADi+9+5XCA==; From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= To: guix-patches@gnu.org Subject: [PATCH] =?UTF-8?q?gnu:=20prrte:=20Record=20the=20absolute=20file?= =?UTF-8?q?=20name=20of=20=E2=80=98prted=E2=80=99.?= Date: Fri, 25 Oct 2024 12:46:24 +0200 Message-ID: <8cf9c3e955e22aa68741caa03a33bb28bc0aa73b.1729853141.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-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?Ludovic=20Court=C3=A8s?= 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 Previously a command like: guix shell --pure openmpi@5 openssh intel-mpi-benchmarks \ --with-input=openmpi@4=openmpi@5 slurm -- \ salloc -N2 -- mpirun -np 2 --map-by node IMB-MPI1 PingPong would silently fail due to ‘prted’ not being found in $PATH. * gnu/packages/parallel.scm (prrte)[arguments]: Add ‘patch-prted-reference’ phase. Change-Id: Iff30cb5a4dcc9e9cfe6638d518ee4f19561289a0 --- gnu/packages/parallel.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/gnu/packages/parallel.scm b/gnu/packages/parallel.scm index 202a98b2bc..85f8a114c3 100644 --- a/gnu/packages/parallel.scm +++ b/gnu/packages/parallel.scm @@ -727,7 +727,15 @@ (define-public prrte (("_ABSOLUTE") "") (("PRTE_CONFIGURE_CLI") - "\"[elided to reduce closure]\""))))) + "\"[elided to reduce closure]\"")))) + (add-after 'unpack 'patch-prted-reference + (lambda _ + ;; Record the absolute file name of 'prted' instead of + ;; assuming it will be found in $PATH at run time. + (substitute* "src/runtime/prte_mca_params.c" + (("prte_launch_agent =.*") + (string-append "prte_launch_agent = \"" + #$output "/bin/prted\";\n")))))) #:disallowed-references (list (canonical-package gcc)))) (inputs (list libevent base-commit: a1714de3aa4f60d211c166876c3515f96384b0c7 -- 2.46.0 ------------=_1730107502-21672-1--