1 |
commit: 44dea013934f0c425627dce29e699227acbdee8a |
2 |
Author: Christophe Lermytte <gentoo <AT> lermytte <DOT> be> |
3 |
AuthorDate: Tue Jan 10 21:46:49 2017 +0000 |
4 |
Commit: Sven Wegener <swegener <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 31 22:36:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44dea013 |
7 |
|
8 |
dev-util/systemtap: make dependency on libvirt explicit |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
Closes: gentoo/gentoo#3427 |
12 |
|
13 |
dev-util/systemtap/metadata.xml | 3 ++ |
14 |
dev-util/systemtap/systemtap-3.1-r1.ebuild | 75 ++++++++++++++++++++++++++++++ |
15 |
2 files changed, 78 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/systemtap/metadata.xml b/dev-util/systemtap/metadata.xml |
18 |
index 208c069b8e6..25ae3f091ac 100644 |
19 |
--- a/dev-util/systemtap/metadata.xml |
20 |
+++ b/dev-util/systemtap/metadata.xml |
21 |
@@ -4,4 +4,7 @@ |
22 |
<maintainer type="person"> |
23 |
<email>swegener@g.o</email> |
24 |
</maintainer> |
25 |
+ <use> |
26 |
+ <flag name="libvirt">Support probing of libvirt domains.</flag> |
27 |
+ </use> |
28 |
</pkgmetadata> |
29 |
|
30 |
diff --git a/dev-util/systemtap/systemtap-3.1-r1.ebuild b/dev-util/systemtap/systemtap-3.1-r1.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..5b890a2b054 |
33 |
--- /dev/null |
34 |
+++ b/dev-util/systemtap/systemtap-3.1-r1.ebuild |
35 |
@@ -0,0 +1,75 @@ |
36 |
+# Copyright 1999-2017 Gentoo Foundation |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=6 |
40 |
+ |
41 |
+PYTHON_COMPAT=( python2_7 ) |
42 |
+ |
43 |
+inherit linux-info autotools eutils python-single-r1 |
44 |
+ |
45 |
+DESCRIPTION="A linux trace/probe tool" |
46 |
+HOMEPAGE="http://www.sourceware.org/systemtap/" |
47 |
+SRC_URI="http://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz" |
48 |
+ |
49 |
+LICENSE="GPL-2" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" |
52 |
+IUSE="libvirt sqlite" |
53 |
+ |
54 |
+RDEPEND=">=dev-libs/elfutils-0.142 |
55 |
+ sys-libs/libcap |
56 |
+ ${PYTHON_DEPS} |
57 |
+ libvirt? ( >=app-emulation/libvirt-1.0.2 ) |
58 |
+ sqlite? ( dev-db/sqlite:3 )" |
59 |
+DEPEND="${RDEPEND} |
60 |
+ >=sys-devel/gettext-0.18.2" |
61 |
+ |
62 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
63 |
+ |
64 |
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" |
65 |
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." |
66 |
+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)'." |
67 |
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." |
68 |
+ |
69 |
+DOCS="AUTHORS HACKING NEWS README" |
70 |
+ |
71 |
+pkg_setup() { |
72 |
+ linux-info_pkg_setup |
73 |
+ python-single-r1_pkg_setup |
74 |
+} |
75 |
+ |
76 |
+src_prepare() { |
77 |
+ python_fix_shebang . |
78 |
+ |
79 |
+ sed -i \ |
80 |
+ -e 's:-Werror::g' \ |
81 |
+ configure.ac \ |
82 |
+ Makefile.am \ |
83 |
+ staprun/Makefile.am \ |
84 |
+ stapdyn/Makefile.am \ |
85 |
+ buildrun.cxx \ |
86 |
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \ |
87 |
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \ |
88 |
+ testsuite/systemtap.base/stmt_rel_user.exp \ |
89 |
+ testsuite/systemtap.base/sdt_va_args.exp \ |
90 |
+ testsuite/systemtap.base/sdt_misc.exp \ |
91 |
+ testsuite/systemtap.base/sdt.exp \ |
92 |
+ scripts/kprobes_test/gen_code.py \ |
93 |
+ || die "Failed to clean up sources" |
94 |
+ |
95 |
+ default |
96 |
+ |
97 |
+ eautoreconf |
98 |
+} |
99 |
+ |
100 |
+src_configure() { |
101 |
+ econf \ |
102 |
+ --docdir="${EPREFIX}/usr/share/doc/${PF}" \ |
103 |
+ --without-rpm \ |
104 |
+ --disable-server \ |
105 |
+ --disable-docs \ |
106 |
+ --disable-refdocs \ |
107 |
+ --disable-grapher \ |
108 |
+ $(use_enable libvirt virt) \ |
109 |
+ $(use_enable sqlite) |
110 |
+} |