diff options
author | Sam James <sam@gentoo.org> | 2023-05-16 02:43:26 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-05-16 02:52:20 +0100 |
commit | f1c7a96aac243ac42771066adf7de9d50312f309 (patch) | |
tree | d5fc7869e36ff472885d3ad27b18613e1396640c /sys-block | |
parent | net-misc/openvswitch: add Valgrind annotation support (diff) | |
download | gentoo-f1c7a96aac243ac42771066adf7de9d50312f309.tar.gz gentoo-f1c7a96aac243ac42771066adf7de9d50312f309.tar.bz2 gentoo-f1c7a96aac243ac42771066adf7de9d50312f309.zip |
sys-block/nbdkit: add Valgrind support
It does do at least one thing - suppress dlclose() which confuses Valgrind.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sys-block')
-rw-r--r-- | sys-block/nbdkit/nbdkit-1.32.4.ebuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys-block/nbdkit/nbdkit-1.32.4.ebuild b/sys-block/nbdkit/nbdkit-1.32.4.ebuild index e7c7966aeff5..36d260e9022c 100644 --- a/sys-block/nbdkit/nbdkit-1.32.4.ebuild +++ b/sys-block/nbdkit/nbdkit-1.32.4.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://download.libguestfs.org/nbdkit/$(ver_cut 1-2)-stable/${P}.tar.g LICENSE="BSD" SLOT="0" KEYWORDS="amd64 ~x86" -IUSE="curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux torrent zlib zstd" +IUSE="curl ext2 nbd gnutls libguestfs libssh libvirt lzma selinux torrent valgrind zlib zstd" RDEPEND=" virtual/libiconv @@ -30,7 +30,10 @@ RDEPEND=" ext2? ( sys-fs/e2fsprogs ) torrent? ( net-libs/libtorrent-rasterbar:= ) " -DEPEND="${RDEPEND}" +DEPEND=" + ${RDEPEND} + valgrind? ( dev-util/valgrind ) +" BDEPEND=" dev-lang/perl " @@ -70,9 +73,9 @@ src_configure() { $(use_with libguestfs) $(use_with ext2) $(use_enable torrent) + $(use_enable valgrind) --disable-linuxdisk # Not in Gentoo. - --disable-valgrind # Seems to not do anything? --disable-libfuzzer # Should not be used normally according to upstream # TODO(arsen): Bindings left out |