1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 PYTHON_COMPAT=( python2_7 )
8 inherit linux-info autotools eutils python-single-r1
10 DESCRIPTION="A linux trace/probe tool"
11 HOMEPAGE="https://www.sourceware.org/systemtap/"
12 SRC_URI="https://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
16 KEYWORDS="alpha amd64 ~arm ~arm64 ia64 ~mips ~ppc ppc64 ~s390 ~sparc x86"
19 RDEPEND=">=dev-libs/elfutils-0.142
22 libvirt? ( >=app-emulation/libvirt-1.0.2 )
23 sqlite? ( dev-db/sqlite:3 )"
25 >=sys-devel/gettext-0.18.2"
27 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
29 CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
30 ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
31 ERROR_RELAY="${PN} works with support for user space relay support (RELAY) - this can be enabled in 'General setup -> Kernel->user space relay support (formerly relayfs)'."
32 ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
34 DOCS="AUTHORS HACKING NEWS README"
36 PATCHES=("${FILESDIR}"/${PN}-3.1-ia64.patch)
40 python-single-r1_pkg_setup
53 testsuite/systemtap.unprivileged/unprivileged_probes.exp \
54 testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
55 testsuite/systemtap.base/stmt_rel_user.exp \
56 testsuite/systemtap.base/sdt_va_args.exp \
57 testsuite/systemtap.base/sdt_misc.exp \
58 testsuite/systemtap.base/sdt.exp \
59 scripts/kprobes_test/gen_code.py \
60 || die "Failed to clean up sources"
69 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
75 $(use_enable libvirt virt) \