Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/systemtap/, dev-util/systemtap/files/
Date: Fri, 16 Jul 2021 22:38:57
Message-Id: 1626475125.46ed3bebdca73fc1f911e8d3f6afbe4010e9da31.conikost@gentoo
1 commit: 46ed3bebdca73fc1f911e8d3f6afbe4010e9da31
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Fri Jul 16 22:38:32 2021 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Fri Jul 16 22:38:45 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46ed3beb
7
8 dev-util/systemtap: drop old version
9
10 Bug: https://bugs.gentoo.org/802315
11 Package-Manager: Portage-3.0.20, Repoman-3.0.3
12 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
13
14 dev-util/systemtap/Manifest | 1 -
15 dev-util/systemtap/files/systemtap-4.0-AR.patch | 11 --
16 ...systemtap-4.0-configure.ac-non-posix-test.patch | 214 ---------------------
17 dev-util/systemtap/systemtap-4.0-r1.ebuild | 117 -----------
18 dev-util/systemtap/systemtap-4.0-r2.ebuild | 119 ------------
19 5 files changed, 462 deletions(-)
20
21 diff --git a/dev-util/systemtap/Manifest b/dev-util/systemtap/Manifest
22 index e7cf61fc39b..1d64fe22ed4 100644
23 --- a/dev-util/systemtap/Manifest
24 +++ b/dev-util/systemtap/Manifest
25 @@ -1,3 +1,2 @@
26 -DIST systemtap-4.0.tar.gz 5282312 BLAKE2B 9eac1cf9c9f13255ac12642c910b5591b0f5380b2a6337dedcb3d20785c0416900b9bee05f239632f7c548812be35ae90b24f524ab6f5c0c6ef474cf5de834a1 SHA512 66b5ba1902ed974101429dce9fee849273d3dc64e862c057177d158c5f284cc93299819ee8ee49d4bd3b7ff47a3512b1c68b74cad374147ce67fa406c7518c79
27 DIST systemtap-4.4.tar.gz 5532282 BLAKE2B bcb2f744ad09821ce63d78b3e86eb489013aed247952c72d3dbc4cc6fc1a2b85f948b71c622487876f43b615c147eb1624b2c146e9b4176e3c91e2b7cbef9ea0 SHA512 8fb1fe5071ec99ce3c6bcf82afdc98a3e1abc0ea937f3019b225c3a1879ada30080740b1918a84c6db06fe1893e6d1e7dc84be26c7e597d7feda1efe11354e76
28 DIST systemtap-4.5.tar.gz 5549909 BLAKE2B 3c180a49c81070cb374ae23f95f1e90cc3cf2550170363793f46584b201c2284b2ee639f395d73ed6c5b44160825b3cf128bd360b81bc243e71c98e71d779f48 SHA512 8136779a9f5cb0fbaae565eab1ab6fa307f1024dfc2c6c3845acfadff0eecc684ba89aa5d442c7b90c2c73edaab41ca07bae2bad8361f80fe8e9928b40466cd3
29
30 diff --git a/dev-util/systemtap/files/systemtap-4.0-AR.patch b/dev-util/systemtap/files/systemtap-4.0-AR.patch
31 deleted file mode 100644
32 index fa5334e6fcf..00000000000
33 --- a/dev-util/systemtap/files/systemtap-4.0-AR.patch
34 +++ /dev/null
35 @@ -1,11 +0,0 @@
36 -https://bugs.gentoo.org/720710
37 ---- a/configure.ac
38 -+++ b/configure.ac
39 -@@ -22,6 +22,7 @@ AC_PROG_LN_S
40 - AC_PROG_CC
41 - AC_PROG_CXX
42 - AC_PROG_CPP
43 -+AM_PROG_AR
44 - AM_PROG_CC_C_O
45 - AC_PROG_RANLIB
46 - AC_OBJEXT
47
48 diff --git a/dev-util/systemtap/files/systemtap-4.0-configure.ac-non-posix-test.patch b/dev-util/systemtap/files/systemtap-4.0-configure.ac-non-posix-test.patch
49 deleted file mode 100644
50 index d429ab197dd..00000000000
51 --- a/dev-util/systemtap/files/systemtap-4.0-configure.ac-non-posix-test.patch
52 +++ /dev/null
53 @@ -1,214 +0,0 @@
54 - configure.ac | 62 ++++++++++++++++++++++++++++++------------------------------
55 - 1 file changed, 31 insertions(+), 31 deletions(-)
56 -
57 -diff --git i/configure.ac w/configure.ac
58 -index caa62ee28..19db3fb21 100644
59 ---- i/configure.ac
60 -+++ w/configure.ac
61 -@@ -225,7 +225,7 @@ dnl fi
62 - # Compiling without fPIE by default (see PR 9922)
63 - AC_ARG_ENABLE([pie],
64 - [AS_HELP_STRING([--enable-pie], [enable position-independent-executable])])
65 --AS_IF([test "x$enable_pie" == xyes],[
66 -+AS_IF([test "x$enable_pie" = xyes],[
67 - PIECFLAGS='-fPIE'
68 - PIECXXFLAGS='-fPIE'
69 - PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
70 -@@ -271,7 +271,7 @@ AC_ARG_ENABLE([translator],
71 - AS_HELP_STRING([--disable-translator], [build only runtime utilities]),
72 - [],
73 - [enable_translator="yes"])
74 --AM_CONDITIONAL([BUILD_TRANSLATOR], [test "$enable_translator" == "yes"])
75 -+AM_CONDITIONAL([BUILD_TRANSLATOR], [test "$enable_translator" = "yes"])
76 -
77 - dnl Handle the option to build the crash extension
78 - AC_ARG_ENABLE([crash],
79 -@@ -312,25 +312,25 @@ AC_CHECK_PROG(have_latex, latex, yes, no)
80 - AC_CHECK_PROG(have_dvips, dvips, yes, no)
81 - AC_CHECK_PROG(have_ps2pdf, ps2pdf, yes, no)
82 - if test "x${have_latex}${have_dvips}${have_ps2pdf}" != "xyesyesyes"; then
83 -- if test "$enable_docs" == "yes"; then
84 -+ if test "$enable_docs" = "yes"; then
85 - AC_MSG_ERROR([cannot find all tools for building documentation])
86 - fi
87 -- if test "$enable_docs" == "check"; then
88 -+ if test "$enable_docs" = "check"; then
89 - AC_MSG_WARN([will not build documentation, cannot find all tools])
90 - fi
91 - fi
92 --if test "$enable_docs" == "prebuilt"; then
93 -+if test "$enable_docs" = "prebuilt"; then
94 - AC_MSG_NOTICE([will only install prebuilt documentation])
95 - fi
96 --if test "x${have_latex}${have_dvips}${have_ps2pdf}" == "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
97 -+if test "x${have_latex}${have_dvips}${have_ps2pdf}" = "xyesyesyes" -a "$enable_docs" != "no" -a "$enable_docs" != "prebuilt"; then
98 - building_docs="yes"
99 - installing_prebuilt_docs="yes"
100 - fi
101 --if test "$enable_docs" == "no"; then
102 -+if test "$enable_docs" = "no"; then
103 - installing_prebuilt_docs="no"
104 - fi
105 --AM_CONDITIONAL([BUILD_DOCS], [test "$building_docs" == "yes"])
106 --AM_CONDITIONAL([INSTALL_PREBUILT_DOCS], [test "$installing_prebuilt_docs" == "yes"])
107 -+AM_CONDITIONAL([BUILD_DOCS], [test "$building_docs" = "yes"])
108 -+AM_CONDITIONAL([INSTALL_PREBUILT_DOCS], [test "$installing_prebuilt_docs" = "yes"])
109 -
110 -
111 - dnl Handle the option to build the reference documentation
112 -@@ -340,17 +340,17 @@ AC_ARG_ENABLE([refdocs],
113 - [enable building reference documentation (default on if other documentation built).]),
114 - [enable_refdocs=$enableval],
115 - [enable_refdocs="check"])
116 --if test "$building_docs" == "no" -a "$enable_refdocs" == "yes" ; then
117 -+if test "$building_docs" = "no" -a "$enable_refdocs" = "yes" ; then
118 - AC_MSG_ERROR([must use --enable-docs with --enable-refdocs])
119 - fi
120 --if test "$enable_refdocs" != "no" -a "${building_docs}" == "yes"; then
121 -+if test "$enable_refdocs" != "no" -a "${building_docs}" = "yes"; then
122 - building_refdocs="yes"
123 - fi
124 --AM_CONDITIONAL([BUILD_REFDOCS], [test "$building_refdocs" == "yes"])
125 -+AM_CONDITIONAL([BUILD_REFDOCS], [test "$building_refdocs" = "yes"])
126 -
127 - AC_CHECK_PROG(have_xmlto, xmlto, yes, no)
128 - AC_CHECK_PROG(have_fop, fop, yes, no)
129 --if test "x${have_fop}" == "xyes"; then
130 -+if test "x${have_fop}" = "xyes"; then
131 - # Due to rhbz505364 / 830266, we must actually test-run fop, not just
132 - # hope that it works.
133 - AC_MSG_CHECKING([to see if xmlto --with-fop actually works])
134 -@@ -362,8 +362,8 @@ if test "x${have_fop}" == "xyes"; then
135 - fi
136 - rm -f dummy-tapsets.pdf
137 - fi
138 --AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" == "yes"])
139 --AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" == "yes"])
140 -+AM_CONDITIONAL([HAVE_FOP], [test "$have_fop" = "yes"])
141 -+AM_CONDITIONAL([HAVE_XMLTO], [test "$have_xmlto" = "yes"])
142 -
143 - dnl Handle the option to build the html documentation
144 - building_htmldocs="no"
145 -@@ -372,11 +372,11 @@ AC_ARG_ENABLE([htmldocs],
146 - [enable building html documentation (default off).]),
147 - [building_htmldocs=$enableval],
148 - [building_htmldocs="no"])
149 --if test "$have_xmlto" == "no" -a "$building_htmldocs" == "yes"; then
150 -+if test "$have_xmlto" = "no" -a "$building_htmldocs" = "yes"; then
151 - AC_MSG_ERROR([xmlto required for building html documentation])
152 - fi
153 -
154 --AM_CONDITIONAL([BUILD_HTMLDOCS], [test "$building_htmldocs" == "yes"])
155 -+AM_CONDITIONAL([BUILD_HTMLDOCS], [test "$building_htmldocs" = "yes"])
156 -
157 - dnl There is a strange bug in older versions of xmlto when generating pdf.
158 - dnl https://bugzilla.redhat.com/show_bug.cgi?id=526273
159 -@@ -396,10 +396,10 @@ cat > conftest.xml << 'EOF'
160 - </book>
161 - EOF
162 -
163 --if test "x${have_xmlto}" == "xyes"; then
164 -+if test "x${have_xmlto}" = "xyes"; then
165 - AC_MSG_CHECKING([for xmlto --stringparam support])
166 - xmlto --stringparam man.authors.section.enabled=0 html-nochunks conftest.xml >/dev/null 2>&1
167 -- if test $? == 0; then
168 -+ if test $? = 0; then
169 - have_xmlto_stringparam="yes"
170 - AC_MSG_RESULT([yes])
171 - else
172 -@@ -407,7 +407,7 @@ AC_MSG_CHECKING([for xmlto --stringparam support])
173 - fi
174 - rm -f conftest.html
175 - fi
176 --AM_CONDITIONAL([XMLTO_STRINGPARAM], [test "$have_xmlto_stringparam" == "yes"])
177 -+AM_CONDITIONAL([XMLTO_STRINGPARAM], [test "$have_xmlto_stringparam" = "yes"])
178 -
179 - rm -f conftest.xml
180 -
181 -@@ -473,7 +473,7 @@ dnl See if we have enough libraries and tools to build the compile server
182 - AC_MSG_WARN([will not build systemtap compile server, cannot find nss headers])
183 - fi
184 - fi
185 --AM_CONDITIONAL([BUILD_SERVER], [test "${have_nss}" == "yes" -a "$enable_server" != "no"])
186 -+AM_CONDITIONAL([BUILD_SERVER], [test "${have_nss}" = "yes" -a "$enable_server" != "no"])
187 -
188 - if test "${have_nss}" != "yes"; then
189 - AC_MSG_WARN([compile-server client functionality will be disabled, cannot find nss development files])
190 -@@ -514,10 +514,10 @@ if test "$with_rpm" != "no"; then
191 - AC_DEFINE([HAVE_LIBRPMIO],[1],[have librpmio])
192 - stap_LIBS="$stap_LIBS -lc -lrpmio"
193 - have_librpmio="yes"], [have_librpmio="no"])
194 -- if test "x$have_librpm" != "xyes" -a "$with_rpm" == "yes"; then
195 -+ if test "x$have_librpm" != "xyes" -a "$with_rpm" = "yes"; then
196 - AC_MSG_ERROR([cannot find librpm])
197 - fi
198 -- if test "x$have_librpmio" != "xyes" -a "$with_rpm" == "yes"; then
199 -+ if test "x$have_librpmio" != "xyes" -a "$with_rpm" = "yes"; then
200 - AC_MSG_WARN([cannot find librpmio])
201 - fi
202 - fi
203 -@@ -554,7 +554,7 @@ else
204 - [Define if you have the readline library (-lreadline).])
205 - fi
206 - AC_SUBST([READLINE_LIBS])
207 --AM_CONDITIONAL([HAVE_LIBREADLINE], [test "$have_libreadline" == "yes"])
208 -+AM_CONDITIONAL([HAVE_LIBREADLINE], [test "$have_libreadline" = "yes"])
209 -
210 - dnl End of readline checks: restore LIBS
211 - LIBS=$LIBS_no_readline
212 -@@ -710,7 +710,7 @@ dnl See if we have enough libraries and tools to build the virt server
213 - AC_MSG_WARN([will not build systemtap virt support, cannot find xml2 headers])
214 - fi
215 - fi
216 --AM_CONDITIONAL([BUILD_VIRT], [test "${have_libvirt}" == "yes" -a "${have_libxml2}" == "yes" -a "$enable_virt" != "no"])
217 -+AM_CONDITIONAL([BUILD_VIRT], [test "${have_libvirt}" = "yes" -a "${have_libxml2}" = "yes" -a "$enable_virt" != "no"])
218 -
219 - dnl Handle the option to build python2 probe support
220 - AC_ARG_WITH([python2-probes],
221 -@@ -750,7 +750,7 @@ have_python3_support=no
222 - AS_IF([test "x$with_python3_probes" != "xno"],
223 - [dnl First, check to make sure we have the 'python3-config' script.
224 - pathless_python3=$(basename "$PYTHON3")
225 -- if test "x${pathless_python3}" == "x"; then
226 -+ if test "x${pathless_python3}" = "x"; then
227 - pathless_python3="python3"
228 - fi
229 - AC_PATH_PROG([PYTHON3_CONFIG], [${pathless_python3}-config], [no])
230 -@@ -785,8 +785,8 @@ AM_CONDITIONAL([HAVE_PYTHON_PROBES],
231 - dnl Check for presence of json-c and ncurses for use in monitor mode
232 - PKG_CHECK_MODULES([jsonc], [json-c >= 0.11], [have_jsonc=yes], [have_jsonc=no])
233 - PKG_CHECK_MODULES([ncurses], [ncurses], [have_ncurses=yes], [have_ncurses=no])
234 --AM_CONDITIONAL([HAVE_MONITOR_LIBS], [test "${have_jsonc}" == "yes" -a "${have_ncurses}" == "yes"])
235 --if test "${have_jsonc}" == "yes" -a "${have_ncurses}" == yes; then
236 -+AM_CONDITIONAL([HAVE_MONITOR_LIBS], [test "${have_jsonc}" = "yes" -a "${have_ncurses}" = "yes"])
237 -+if test "${have_jsonc}" = "yes" -a "${have_ncurses}" = yes; then
238 - AC_DEFINE([HAVE_MONITOR_LIBS],[1],[Define to 1 if json-c and ncurses libraries are installed])
239 - fi
240 -
241 -@@ -823,7 +823,7 @@ AS_IF([test "x$with_bpf" != "xno"], [
242 - [],
243 - [#include <linux/bpf.h>])
244 - ])
245 --AM_CONDITIONAL(HAVE_BPF_DECLS, [test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" == "xyes"])
246 -+AM_CONDITIONAL(HAVE_BPF_DECLS, [test "x$ac_cv_have_decl_BPF_PROG_TYPE_PERF_EVENT" = "xyes"])
247 - AC_CONFIG_FILES([includes/sys/sdt-config.h po/Makefile.in])
248 -
249 - if test $build_elfutils = yes -a $enable_translator = yes; then
250 -@@ -965,7 +965,7 @@ AS_IF([test "x$enable_http" = "xyes"],
251 - dnl If we have all of the libraries, the json-c and nss libraries,
252 - dnl and full C++11 support, we could build the httpd web
253 - dnl compilation service.
254 -- AS_IF([test "x$have_libmicrohttpd" == "xtrue" -a "x$have_libuuid" == "xtrue" -a "x$have_libcurl" == "xtrue" -a "x$have_jsonc" == "xyes" -a "x$have_nss" == "xyes" -a "x$have_openssl" == "xyes" -a "x$have_cxx0x" == "xno"], [have_http_support=yes])])
255 -+ AS_IF([test "x$have_libmicrohttpd" = "xtrue" -a "x$have_libuuid" = "xtrue" -a "x$have_libcurl" = "xtrue" -a "x$have_jsonc" = "xyes" -a "x$have_nss" = "xyes" -a "x$have_openssl" = "xyes" -a "x$have_cxx0x" = "xno"], [have_http_support=yes])])
256 -
257 - AS_IF([test "x$have_http_support" = "xyes"],
258 - [AC_DEFINE([HAVE_HTTP_SUPPORT], [1],
259 -@@ -1010,7 +1010,7 @@ initscript/99stap/module-setup.sh \
260 - initscript/99stap/install \
261 - initscript/99stap/check ])
262 - AC_CONFIG_SUBDIRS(testsuite)
263 --if test $enable_translator == "yes"; then
264 -+if test $enable_translator = "yes"; then
265 - AC_CONFIG_FILES([run-stap], [chmod +x run-stap])
266 - fi
267 - AC_CONFIG_FILES([dtrace], [chmod +x dtrace])
268
269 diff --git a/dev-util/systemtap/systemtap-4.0-r1.ebuild b/dev-util/systemtap/systemtap-4.0-r1.ebuild
270 deleted file mode 100644
271 index b3029b7de5e..00000000000
272 --- a/dev-util/systemtap/systemtap-4.0-r1.ebuild
273 +++ /dev/null
274 @@ -1,117 +0,0 @@
275 -# Copyright 1999-2021 Gentoo Authors
276 -# Distributed under the terms of the GNU General Public License v2
277 -
278 -EAPI=7
279 -
280 -PYTHON_COMPAT=( python3_{7,8} )
281 -
282 -inherit linux-info autotools python-single-r1 user
283 -
284 -DESCRIPTION="A linux trace/probe tool"
285 -HOMEPAGE="https://www.sourceware.org/systemtap/"
286 -SRC_URI="https://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
287 -
288 -LICENSE="GPL-2"
289 -SLOT="0"
290 -KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 ~s390 sparc x86"
291 -IUSE="libvirt selinux sqlite +ssl test zeroconf"
292 -RESTRICT="!test? ( test )"
293 -
294 -RDEPEND=">=dev-libs/elfutils-0.142
295 - dev-libs/json-c:=
296 - sys-libs/ncurses:0=
297 - sys-libs/readline:0=
298 - ${PYTHON_DEPS}
299 - libvirt? ( >=app-emulation/libvirt-1.0.2 )
300 - selinux? ( sys-libs/libselinux )
301 - sqlite? ( dev-db/sqlite:3 )
302 - ssl? (
303 - dev-libs/nspr
304 - dev-libs/nss
305 - )
306 - zeroconf? ( net-dns/avahi )
307 -"
308 -DEPEND="${RDEPEND}
309 - app-arch/cpio
310 - app-text/xmlto
311 - $(python_gen_cond_dep '
312 - dev-python/setuptools[${PYTHON_USEDEP}]
313 - ')
314 - >=sys-devel/gettext-0.18.2
315 - libvirt? ( dev-libs/libxml2 )
316 -"
317 -BDEPEND="test? ( dev-util/dejagnu )"
318 -
319 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
320 -
321 -CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
322 -ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
323 -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)'."
324 -ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
325 -
326 -DOCS="AUTHORS HACKING NEWS README"
327 -
328 -PATCHES=(
329 - "${FILESDIR}"/${PN}-3.1-ia64.patch
330 - "${FILESDIR}"/${PN}-4.0-AR.patch
331 -)
332 -
333 -pkg_setup() {
334 - enewgroup stapusr 156
335 - enewgroup stapsys 157
336 - enewgroup stapdev 158
337 -
338 - linux-info_pkg_setup
339 - python-single-r1_pkg_setup
340 -}
341 -
342 -src_prepare() {
343 - python_fix_shebang .
344 -
345 - sed -i \
346 - -e 's:-Werror::g' \
347 - configure.ac \
348 - Makefile.am \
349 - stapbpf/Makefile.am \
350 - stapdyn/Makefile.am \
351 - staprun/Makefile.am \
352 - testsuite/systemtap.unprivileged/unprivileged_probes.exp \
353 - testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
354 - testsuite/systemtap.base/stmt_rel_user.exp \
355 - testsuite/systemtap.base/sdt_va_args.exp \
356 - testsuite/systemtap.base/sdt_misc.exp \
357 - testsuite/systemtap.base/sdt.exp \
358 - scripts/kprobes_test/gen_code.py \
359 - || die "Failed to clean up sources"
360 -
361 - default
362 -
363 - eautoreconf
364 -}
365 -
366 -src_configure() {
367 - local myeconfargs=(
368 - --disable-docs
369 - --disable-grapher
370 - --disable-refdocs
371 - --disable-server
372 - --enable-pie
373 - --with-python3
374 - --without-java
375 - --without-openssl
376 - --without-python2-probes
377 - --without-rpm
378 - $(use_enable libvirt virt)
379 - $(use_enable sqlite)
380 - $(use_with zeroconf avahi)
381 - $(use_with ssl nss)
382 - $(use_with selinux)
383 - )
384 - PYTHON3="${PYTHON}" \
385 - econf "${myeconfargs[@]}"
386 -}
387 -
388 -src_install() {
389 - default
390 - python_optimize
391 -}
392
393 diff --git a/dev-util/systemtap/systemtap-4.0-r2.ebuild b/dev-util/systemtap/systemtap-4.0-r2.ebuild
394 deleted file mode 100644
395 index cb49b3599c9..00000000000
396 --- a/dev-util/systemtap/systemtap-4.0-r2.ebuild
397 +++ /dev/null
398 @@ -1,119 +0,0 @@
399 -# Copyright 1999-2021 Gentoo Authors
400 -# Distributed under the terms of the GNU General Public License v2
401 -
402 -EAPI=7
403 -
404 -PYTHON_COMPAT=( python3_{7..9} )
405 -
406 -inherit linux-info autotools python-single-r1
407 -
408 -DESCRIPTION="A linux trace/probe tool"
409 -HOMEPAGE="https://www.sourceware.org/systemtap/"
410 -SRC_URI="https://www.sourceware.org/${PN}/ftp/releases/${P}.tar.gz"
411 -
412 -LICENSE="GPL-2"
413 -SLOT="0"
414 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86"
415 -IUSE="libvirt selinux sqlite +ssl test zeroconf"
416 -RESTRICT="!test? ( test )"
417 -
418 -RDEPEND=">=dev-libs/elfutils-0.142
419 - dev-libs/json-c:=
420 - sys-libs/ncurses:0=
421 - sys-libs/readline:0=
422 - ${PYTHON_DEPS}
423 - libvirt? ( >=app-emulation/libvirt-1.0.2 )
424 - selinux? ( sys-libs/libselinux )
425 - sqlite? ( dev-db/sqlite:3 )
426 - ssl? (
427 - dev-libs/nspr
428 - dev-libs/nss
429 - )
430 - zeroconf? ( net-dns/avahi )
431 -"
432 -DEPEND="${RDEPEND}
433 - app-arch/cpio
434 - app-text/xmlto
435 - $(python_gen_cond_dep '
436 - dev-python/setuptools[${PYTHON_USEDEP}]
437 - ')
438 - >=sys-devel/gettext-0.18.2
439 - libvirt? ( dev-libs/libxml2 )
440 -"
441 -RDEPEND="${RDEPEND}
442 - acct-group/stapdev
443 - acct-group/stapsys
444 - acct-group/stapusr
445 -"
446 -BDEPEND="test? ( dev-util/dejagnu )"
447 -
448 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
449 -
450 -CONFIG_CHECK="~KPROBES ~RELAY ~DEBUG_FS"
451 -ERROR_KPROBES="${PN} requires support for KProbes Instrumentation (KPROBES) - this can be enabled in 'Instrumentation Support -> Kprobes'."
452 -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)'."
453 -ERROR_DEBUG_FS="${PN} works best with support for Debug Filesystem (DEBUG_FS) - this can be enabled in 'Kernel hacking -> Debug Filesystem'."
454 -
455 -DOCS="AUTHORS HACKING NEWS README"
456 -
457 -PATCHES=(
458 - "${FILESDIR}"/${PN}-3.1-ia64.patch
459 - "${FILESDIR}"/${PN}-4.0-AR.patch
460 - "${FILESDIR}"/${P}-configure.ac-non-posix-test.patch
461 -)
462 -
463 -pkg_setup() {
464 - linux-info_pkg_setup
465 - python-single-r1_pkg_setup
466 -}
467 -
468 -src_prepare() {
469 - python_fix_shebang .
470 -
471 - sed -i \
472 - -e 's:-Werror::g' \
473 - configure.ac \
474 - Makefile.am \
475 - stapbpf/Makefile.am \
476 - stapdyn/Makefile.am \
477 - staprun/Makefile.am \
478 - testsuite/systemtap.unprivileged/unprivileged_probes.exp \
479 - testsuite/systemtap.unprivileged/unprivileged_myproc.exp \
480 - testsuite/systemtap.base/stmt_rel_user.exp \
481 - testsuite/systemtap.base/sdt_va_args.exp \
482 - testsuite/systemtap.base/sdt_misc.exp \
483 - testsuite/systemtap.base/sdt.exp \
484 - scripts/kprobes_test/gen_code.py \
485 - || die "Failed to clean up sources"
486 -
487 - default
488 -
489 - eautoreconf
490 -}
491 -
492 -src_configure() {
493 - local myeconfargs=(
494 - --disable-docs
495 - --disable-grapher
496 - --disable-refdocs
497 - --disable-server
498 - --enable-pie
499 - --with-python3
500 - --without-java
501 - --without-openssl
502 - --without-python2-probes
503 - --without-rpm
504 - $(use_enable libvirt virt)
505 - $(use_enable sqlite)
506 - $(use_with zeroconf avahi)
507 - $(use_with ssl nss)
508 - $(use_with selinux)
509 - )
510 - PYTHON3="${PYTHON}" \
511 - econf "${myeconfargs[@]}"
512 -}
513 -
514 -src_install() {
515 - default
516 - python_optimize
517 -}