1 |
commit: f34a5e36c7ec1608f4752d2eda545751da14846c |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Nov 3 17:56:35 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 4 20:04:38 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f34a5e36 |
7 |
|
8 |
dev-util/systemtap: EAPI 8 |
9 |
|
10 |
bump python |
11 |
autoreconf |
12 |
|
13 |
Closes: https://bugs.gentoo.org/789795 |
14 |
Closes: https://bugs.gentoo.org/820029 |
15 |
Closes: https://bugs.gentoo.org/820155 |
16 |
Closes: https://bugs.gentoo.org/532570 |
17 |
Package-Manager: Portage-3.0.28, Repoman-3.0.3 |
18 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/22808 |
20 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
21 |
|
22 |
dev-util/systemtap/systemtap-4.5-r1.ebuild | 117 +++++++++++++++++++++++++++++ |
23 |
1 file changed, 117 insertions(+) |
24 |
|
25 |
diff --git a/dev-util/systemtap/systemtap-4.5-r1.ebuild b/dev-util/systemtap/systemtap-4.5-r1.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..b11a0b1830c |
28 |
--- /dev/null |
29 |
+++ b/dev-util/systemtap/systemtap-4.5-r1.ebuild |
30 |
@@ -0,0 +1,117 @@ |
31 |
+# Copyright 1999-2021 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=8 |
35 |
+ |
36 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
37 |
+ |
38 |
+inherit autotools linux-info python-single-r1 |
39 |
+ |
40 |
+DESCRIPTION="A linux trace/probe tool" |
41 |
+HOMEPAGE="https://www.sourceware.org/systemtap" |
42 |
+SRC_URI="https://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz" |
43 |
+ |
44 |
+LICENSE="GPL-2" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" |
47 |
+IUSE="libvirt selinux sqlite +ssl test zeroconf" |
48 |
+ |
49 |
+CDEPEND=" |
50 |
+ ${PYTHON_DEPS} |
51 |
+ |
52 |
+ >=dev-libs/elfutils-0.142 |
53 |
+ dev-libs/json-c:= |
54 |
+ sys-libs/ncurses:0= |
55 |
+ sys-libs/readline:0= |
56 |
+ |
57 |
+ libvirt? ( >=app-emulation/libvirt-1.0.2 ) |
58 |
+ selinux? ( sys-libs/libselinux ) |
59 |
+ sqlite? ( dev-db/sqlite:3 ) |
60 |
+ ssl? ( |
61 |
+ dev-libs/nspr |
62 |
+ dev-libs/nss |
63 |
+ ) |
64 |
+ zeroconf? ( net-dns/avahi ) |
65 |
+" |
66 |
+DEPEND=" |
67 |
+ ${CDEPEND} |
68 |
+ app-arch/cpio |
69 |
+ app-text/xmlto |
70 |
+ $(python_gen_cond_dep 'dev-python/setuptools[${PYTHON_USEDEP}]') |
71 |
+ >=sys-devel/gettext-0.18.2 |
72 |
+ |
73 |
+ libvirt? ( dev-libs/libxml2 ) |
74 |
+" |
75 |
+RDEPEND=" |
76 |
+ ${CDEPEND} |
77 |
+ acct-group/stapdev |
78 |
+ acct-group/stapsys |
79 |
+ acct-group/stapusr |
80 |
+" |
81 |
+BDEPEND="test? ( dev-util/dejagnu )" |
82 |
+ |
83 |
+CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS" |
84 |
+ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'." |
85 |
+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)'." |
86 |
+ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'." |
87 |
+ |
88 |
+DOCS="AUTHORS HACKING NEWS README" |
89 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
90 |
+RESTRICT="!test? ( test )" |
91 |
+PATCHES=( |
92 |
+ "${FILESDIR}/${PN}-3.1-ia64.patch" |
93 |
+) |
94 |
+ |
95 |
+pkg_setup() { |
96 |
+ linux-info_pkg_setup |
97 |
+ python-single-r1_pkg_setup |
98 |
+} |
99 |
+ |
100 |
+src_prepare() { |
101 |
+ python_fix_shebang . |
102 |
+ |
103 |
+ sed -i \ |
104 |
+ -e 's|-Werror||g' \ |
105 |
+ configure.ac \ |
106 |
+ Makefile.am \ |
107 |
+ stapbpf/Makefile.am \ |
108 |
+ stapdyn/Makefile.am \ |
109 |
+ staprun/Makefile.am \ |
110 |
+ testsuite/systemtap.unprivileged/unprivileged_probes.exp \ |
111 |
+ testsuite/systemtap.unprivileged/unprivileged_myproc.exp \ |
112 |
+ testsuite/systemtap.base/stmt_rel_user.exp \ |
113 |
+ testsuite/systemtap.base/sdt_va_args.exp \ |
114 |
+ testsuite/systemtap.base/sdt_misc.exp \ |
115 |
+ testsuite/systemtap.base/sdt.exp \ |
116 |
+ scripts/kprobes_test/gen_code.py \ |
117 |
+ || die "Failed to clean up sources" |
118 |
+ |
119 |
+ default |
120 |
+ eautoreconf |
121 |
+} |
122 |
+ |
123 |
+src_configure() { |
124 |
+ local myeconfargs=( |
125 |
+ --disable-docs |
126 |
+ --disable-grapher |
127 |
+ --disable-refdocs |
128 |
+ --disable-server |
129 |
+ --enable-pie |
130 |
+ --with-python3 |
131 |
+ --without-java |
132 |
+ --without-openssl |
133 |
+ --without-python2-probes |
134 |
+ --without-rpm |
135 |
+ $(use_enable libvirt virt) |
136 |
+ $(use_enable sqlite) |
137 |
+ $(use_with zeroconf avahi) |
138 |
+ $(use_with ssl nss) |
139 |
+ $(use_with selinux) |
140 |
+ ) |
141 |
+ PYTHON3="${PYTHON}" econf "${myeconfargs[@]}" |
142 |
+} |
143 |
+ |
144 |
+src_install() { |
145 |
+ default |
146 |
+ python_optimize |
147 |
+} |