summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-05-16 04:13:03 +0100
committerSam James <sam@gentoo.org>2023-05-16 04:35:57 +0100
commit0f303d8963f676ef2da6050e556ab3cfa06f035c (patch)
tree6f0e678ec36b119fdbd9249dfac1dd01caa97d7f /sys-apps
parentsys-cluster/openmpi: add Valgrind annotation support (diff)
downloadgentoo-0f303d8963f676ef2da6050e556ab3cfa06f035c.tar.gz
gentoo-0f303d8963f676ef2da6050e556ab3cfa06f035c.tar.bz2
gentoo-0f303d8963f676ef2da6050e556ab3cfa06f035c.zip
sys-apps/hwloc: add Valgrind annotation support
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-apps')
-rw-r--r--sys-apps/hwloc/hwloc-2.9.1.ebuild8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys-apps/hwloc/hwloc-2.9.1.ebuild b/sys-apps/hwloc/hwloc-2.9.1.ebuild
index 0a38757abeb5..b94b31bd6a7a 100644
--- a/sys-apps/hwloc/hwloc-2.9.1.ebuild
+++ b/sys-apps/hwloc/hwloc-2.9.1.ebuild
@@ -14,7 +14,7 @@ SRC_URI="https://www.open-mpi.org/software/${PN}/${MY_PV}/downloads/${P}.tar.bz2
LICENSE="BSD"
SLOT="0/15"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
-IUSE="cairo +cpuid cuda debug nvml +pci static-libs svg udev xml X video_cards_nvidia"
+IUSE="cairo +cpuid cuda debug nvml +pci static-libs svg udev valgrind xml X video_cards_nvidia"
# opencl: opencl support dropped with x11-drivers/ati-drivers being removed (bug #582406).
# anyone with hardware is welcome to step up and help test to get it re-added.
@@ -34,7 +34,8 @@ RDEPEND=">=sys-libs/ncurses-5.9-r3:=[${MULTILIB_USEDEP}]
x11-libs/libXext
x11-libs/libX11
)"
-DEPEND="${RDEPEND}"
+DEPEND="${RDEPEND}
+ valgrind? ( dev-util/valgrind )"
# 2.69-r5 for --runstatedir
BDEPEND=">=sys-devel/autoconf-2.69-r5
virtual/pkgconfig"
@@ -65,6 +66,9 @@ multilib_src_configure() {
append-ldflags "-L${ESYSROOT}/opt/cuda/$(get_libdir)"
fi
+ export ac_cv_header_valgrind_valgrind_h=$(multilib_native_usex valgrind)
+ export ac_cv_have_decl_RUNNING_ON_VALGRIND=$(multilib_native_usex valgrind)
+
local myconf=(
--disable-opencl