From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1518778-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 256BD15810D
	for <garchives@archives.gentoo.org>; Tue, 16 May 2023 03:39:55 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 5A331E08CA;
	Tue, 16 May 2023 03:39:54 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 3DB33E08CA
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 03:39:54 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 139A0340D54
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 03:39:53 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 74582A70
	for <gentoo-commits@lists.gentoo.org>; Tue, 16 May 2023 03:39:51 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1684208155.c4e92548c4fe135f7717994566059d3c7526038e.sam@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/openmpi/
X-VCS-Repository: repo/gentoo
X-VCS-Files: sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
X-VCS-Directories: sys-cluster/openmpi/
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: c4e92548c4fe135f7717994566059d3c7526038e
X-VCS-Branch: master
Date: Tue, 16 May 2023 03:39:51 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 1bab5f0c-a8df-4331-9d0b-1c8492f6074f
X-Archives-Hash: 10cb5bd488e76811294ea2dbf74e5d53

commit:     c4e92548c4fe135f7717994566059d3c7526038e
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 16 02:53:56 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 16 03:35:55 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4e92548

sys-cluster/openmpi: add Valgrind annotation support

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild b/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
index 339560c3b179..79fe1e97a75c 100644
--- a/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
+++ b/sys-cluster/openmpi/openmpi-4.1.4-r1.ebuild
@@ -31,7 +31,7 @@ SRC_URI="https://www.open-mpi.org/software/ompi/v$(ver_cut 1-2)/downloads/${MY_P
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~ppc ppc64 ~riscv sparc x86 ~amd64-linux"
-IUSE="cma cuda cxx fortran ipv6 java libompitrace peruse romio
+IUSE="cma cuda cxx fortran ipv6 java libompitrace peruse romio valgrind
 	${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM} ${IUSE_OPENMPI_OFED_FEATURES}"
 
 REQUIRED_USE="
@@ -61,7 +61,8 @@ RDEPEND="${CDEPEND}
 	java? ( >=virtual/jre-1.8:* )"
 
 DEPEND="${CDEPEND}
-	java? ( >=virtual/jdk-1.8:* )"
+	java? ( >=virtual/jdk-1.8:* )
+	valgrind? ( dev-util/valgrind )"
 
 MULTILIB_WRAPPED_HEADERS=(
 	/usr/include/mpi.h
@@ -137,6 +138,7 @@ multilib_src_configure() {
 		$(multilib_native_use_enable openmpi_ofed_features_dynamic-sl openib-dynamic-sl)
 
 		$(multilib_native_use_with cuda cuda "${EPREFIX}"/opt/cuda)
+		$(multilib_native_use_with valgrind)
 		$(multilib_native_use_with openmpi_fabrics_ofed verbs "${EPREFIX}"/usr)
 		$(multilib_native_use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
 		$(multilib_native_use_with openmpi_rm_pbs tm)