net-misc/openvswitch: add Valgrind annotation support

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-05-16 02:31:20 +01:00
parent c0a799a70c
commit 04b0a27962

View File

@@ -15,7 +15,7 @@ SRC_URI="https://www.openvswitch.org/releases/${P}.tar.gz"
LICENSE="Apache-2.0 GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm64 ~ppc64 x86"
IUSE="debug modules monitor +ssl unwind"
IUSE="debug modules monitor +ssl unwind valgrind"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# Check python/ovs/version.py in tarball for dev-python/ovs dep
@@ -29,7 +29,8 @@ RDEPEND="${PYTHON_DEPS}
unwind? ( sys-libs/libunwind:= )
ssl? ( dev-libs/openssl:= )"
DEPEND="${RDEPEND}
sys-apps/util-linux[caps]"
sys-apps/util-linux[caps]
valgrind? ( dev-util/valgrind )"
BDEPEND="virtual/pkgconfig"
PATCHES=(
@@ -80,6 +81,8 @@ src_configure() {
# want to add a BDEPEND on graphviz right now. bug #856286
export ovs_cv_dot="no"
export ac_cv_header_valgrind_valgrind_h=$(usex valgrind)
local linux_config
use modules && linux_config="--with-linux=${KV_OUT_DIR}"