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 sqlite? ( dev-db/sqlite:3 )"
24 >=sys-devel/gettext-0.18.2"
26 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
28 CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
29 ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
30 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)'."
31 ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
33 DOCS="AUTHORS HACKING NEWS README"
37 python-single-r1_pkg_setup
50 testsuite/systemtap.unprivileged/unprivileged_probes.exp \
51 testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
52 testsuite/systemtap.base/stmt_rel_user.exp \
53 testsuite/systemtap.base/sdt_va_args.exp \
54 testsuite/systemtap.base/sdt_misc.exp \
55 testsuite/systemtap.base/sdt.exp \
56 scripts/kprobes_test/gen_code.py \
57 || die "Failed to clean up sources"
66 --docdir="${EPREFIX}/usr/share/doc/${PF}" \