commit:     7d30eab6e802ebc2fe427d30e220b3c92cb17908
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Tue May 16 01:50:37 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue May 16 01:52:20 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d30eab6

sys-block/fio: add Valgrind annotation support

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

 sys-block/fio/fio-3.34.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sys-block/fio/fio-3.34.ebuild b/sys-block/fio/fio-3.34.ebuild
index 7ca26eaf225e..b090ea6b924f 100644
--- a/sys-block/fio/fio-3.34.ebuild
+++ b/sys-block/fio/fio-3.34.ebuild
@@ -17,7 +17,7 @@ SRC_URI="https://brick.kernel.dk/snaps/${MY_P}.tar.bz2";
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="amd64 arm ~arm64 ~ia64 ~loong ~ppc ppc64 ~riscv x86"
-IUSE="aio curl glusterfs gnuplot gtk io-uring nfs numa python rbd rdma static 
tcmalloc test zbc zlib"
+IUSE="aio curl glusterfs gnuplot gtk io-uring nfs numa python rbd rdma static 
tcmalloc test valgrind zbc zlib"
 REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )
        gnuplot? ( python )
        io-uring? ( aio )"
@@ -48,7 +48,8 @@ RDEPEND="!static? ( ${LIB_DEPEND//\[static-libs(+)]} )
        gtk? ( x11-libs/gtk+:2 )"
 DEPEND="${RDEPEND}
        static? ( ${LIB_DEPEND} )
-       test? ( dev-util/cunit )"
+       test? ( dev-util/cunit )
+       valgrind? ( dev-util/valgrind )"
 RDEPEND+="
        python? (
                ${PYTHON_DEPS}
@@ -74,6 +75,7 @@ src_prepare() {
                -e '/if compile_prog "" "-lz" "zlib" *; *then/  '"s::if $(usex 
zlib true false) ; then:" \
                -e '/if compile_prog "" "-laio" "libaio" *; *then/'"s::if 
$(usex aio true false) ; then:" \
                -e '/if compile_prog "" "-lcunit" "CUnit" *; *then/'"s::if 
$(usex test true false) ; then:" \
+               -e '/if compile_prog "" "" "valgrind_dev" *; *then/'"s::if 
$(usex valgrind true false) ; then:" \
                configure || die
 }
 

Reply via email to