commit:     a38b8e42b49bcfb08828a65c72514df95c9369ec
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 31 01:24:44 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 31 01:24:48 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a38b8e42

dev-libs/elfutils: add Valgrind annotations support

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

 dev-libs/elfutils/elfutils-0.191-r1.ebuild | 4 +++-
 dev-libs/elfutils/elfutils-9999.ebuild     | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/dev-libs/elfutils/elfutils-0.191-r1.ebuild 
b/dev-libs/elfutils/elfutils-0.191-r1.ebuild
index 1a15c09a876d..3c3f14c55bdd 100644
--- a/dev-libs/elfutils/elfutils-0.191-r1.ebuild
+++ b/dev-libs/elfutils/elfutils-0.191-r1.ebuild
@@ -28,7 +28,7 @@ fi
 
 LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
 SLOT="0"
-IUSE="bzip2 debuginfod lzma nls test +utils zstd"
+IUSE="bzip2 debuginfod lzma nls test +utils valgrind zstd"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -53,6 +53,7 @@ RDEPEND="
 "
 DEPEND="
        ${RDEPEND}
+       valgrind? ( dev-debug/valgrind )
 "
 BDEPEND+="
        sys-devel/m4
@@ -92,6 +93,7 @@ multilib_src_configure() {
                $(use_enable nls)
                $(multilib_native_use_enable debuginfod)
                $(use_enable debuginfod libdebuginfod)
+               $(use_enable valgrind valgrind-annotations)
 
                # explicitly disable thread safety, it's not recommended by 
upstream
                # doesn't build either on musl.

diff --git a/dev-libs/elfutils/elfutils-9999.ebuild 
b/dev-libs/elfutils/elfutils-9999.ebuild
index e4acd35940aa..68c12620d8c0 100644
--- a/dev-libs/elfutils/elfutils-9999.ebuild
+++ b/dev-libs/elfutils/elfutils-9999.ebuild
@@ -28,7 +28,7 @@ fi
 
 LICENSE="|| ( GPL-2+ LGPL-3+ ) utils? ( GPL-3+ )"
 SLOT="0"
-IUSE="bzip2 debuginfod lzma nls test +utils zstd"
+IUSE="bzip2 debuginfod lzma nls test +utils valgrind zstd"
 RESTRICT="!test? ( test )"
 
 RDEPEND="
@@ -53,6 +53,7 @@ RDEPEND="
 "
 DEPEND="
        ${RDEPEND}
+       valgrind? ( dev-debug/valgrind )
 "
 BDEPEND+="
        sys-devel/m4
@@ -91,6 +92,7 @@ multilib_src_configure() {
                $(use_enable nls)
                $(multilib_native_use_enable debuginfod)
                $(use_enable debuginfod libdebuginfod)
+               $(use_enable valgrind valgrind-annotations)
 
                # explicitly disable thread safety, it's not recommended by 
upstream
                # doesn't build either on musl.

Reply via email to