summaryrefslogtreecommitdiff
path: root/dev-util/trace-cmd
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-04-24 23:59:27 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-04-24 23:59:27 +0100
commitb987a550f067c3da93b0664cf1fdc8a624c0aa38 (patch)
tree9ad1767fad656d26471a81af6bac8400a1c75218 /dev-util/trace-cmd
parente3f21c8aff8a76afe3423721c437a088e9232840 (diff)
gentoo auto-resync : 24:04:2024 - 23:59:27
Diffstat (limited to 'dev-util/trace-cmd')
-rw-r--r--dev-util/trace-cmd/Manifest1
-rw-r--r--dev-util/trace-cmd/trace-cmd-3.2-r3.ebuild99
2 files changed, 100 insertions, 0 deletions
diff --git a/dev-util/trace-cmd/Manifest b/dev-util/trace-cmd/Manifest
index 8855398bf25d..bfa98f905320 100644
--- a/dev-util/trace-cmd/Manifest
+++ b/dev-util/trace-cmd/Manifest
@@ -9,4 +9,5 @@ EBUILD trace-cmd-3.1.5-r2.ebuild 3353 BLAKE2B b686d73cacf84e8d569fe2085146ce99e2
EBUILD trace-cmd-3.1.6-r1.ebuild 3316 BLAKE2B 57fa192e7f9961e3e5119cbc32b4f9cecbb14c8113889212eeab136d307a689bbb21a6580c5e4eda2ea926cda6cbefce539fa69674af3f5b231d28c593bc3f8d SHA512 59b81bbb1d634c3311747cef83687da0aa20e54bd1f2e312f84e1ad3ce64d4e482fe5b93c9ac2a4ff9de857295cc05f7c110e49c79bc1ff72319fd70cb7f3227
EBUILD trace-cmd-3.1.7.ebuild 3316 BLAKE2B 57fa192e7f9961e3e5119cbc32b4f9cecbb14c8113889212eeab136d307a689bbb21a6580c5e4eda2ea926cda6cbefce539fa69674af3f5b231d28c593bc3f8d SHA512 59b81bbb1d634c3311747cef83687da0aa20e54bd1f2e312f84e1ad3ce64d4e482fe5b93c9ac2a4ff9de857295cc05f7c110e49c79bc1ff72319fd70cb7f3227
EBUILD trace-cmd-3.2-r2.ebuild 2434 BLAKE2B 498d4b4224cc24e183c8e756a5d739fbefa8435058ca3f5c08f247cf6c5edfa5809ad669e61e833349a2803edda3c0449e01fea717aeccb8eeb8525ac3611694 SHA512 80d9d0abe66ca01470a952882204248c6409d5d883b915037478244d52f08f53ef3c63872eb9dbe474b42eac58678407b6ec9ab8792b6402f336427b7c70d696
+EBUILD trace-cmd-3.2-r3.ebuild 2434 BLAKE2B 90b87f4562169b37b566b072012cc31d421c39797454934c301bac3f955aecf9a65ba22afece24b06e3bfbc48ffc2e6a4ada71f216c55633ff0711b95341df5b SHA512 7ab2ea2d768e992868e8ea2893378c92d88860e7907fdd555d8565775152522f58a2e810a70972116dc8479e39298306a26eedcabd803dcaaa24f16dfd66b88d
MISC metadata.xml 462 BLAKE2B 60ccc0b91ad64f83db4df7cafd5af9355192c5f60139cc523f2c0d1bd287a75501822773443995b0e6f51986aa504a473a74e87c4db78ed9780e24816128f91e SHA512 9a8f02d6b9b23aa4350d7ce48a6aca9541ec5fcde82437c6c9ff1cfc950c8843994eb31133b67d678a9babaa8a15230c00cfba65c45f5db4d4859db0198cb554
diff --git a/dev-util/trace-cmd/trace-cmd-3.2-r3.ebuild b/dev-util/trace-cmd/trace-cmd-3.2-r3.ebuild
new file mode 100644
index 000000000000..08fbf2890aac
--- /dev/null
+++ b/dev-util/trace-cmd/trace-cmd-3.2-r3.ebuild
@@ -0,0 +1,99 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_OPTIONAL=1
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit linux-info meson python-single-r1
+
+DESCRIPTION="User-space front-end for Ftrace"
+HOMEPAGE="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git"
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://git.kernel.org/pub/scm/utils/trace-cmd/trace-cmd.git/snapshot/${PN}-v${PV}.tar.gz"
+ KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+ S="${WORKDIR}/${PN}-v${PV}"
+fi
+
+LICENSE="GPL-2+ LGPL-2.1+"
+SLOT="0/${PV}"
+IUSE="python test"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+# Tests segfault for now?
+RESTRICT="!test? ( test ) test"
+
+RDEPEND="
+ >=app-arch/zstd-1.4
+ !<dev-libs/libtracefs-1.6.1
+ >=dev-libs/libtracefs-1.6.1-r1
+ >=dev-libs/libtraceevent-1.6.3
+ sys-libs/zlib
+ sys-process/audit
+ python? ( ${PYTHON_DEPS} )
+"
+DEPEND="
+ ${RDEPEND}
+ sys-kernel/linux-headers
+ test? ( dev-util/cunit )
+"
+BDEPEND="
+ app-text/asciidoc
+ virtual/pkgconfig
+ python? ( dev-lang/swig )
+"
+
+pkg_setup() {
+ local CONFIG_CHECK="
+ ~TRACING
+ ~FTRACE
+ ~BLK_DEV_IO_TRACE"
+
+ linux-info_pkg_setup
+
+ # TODO: Once we have options for doc+tests, we can revisit Python being
+ # single-impl.
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ default
+
+ # Due to the in-progress meson build transaction, we decide to separate
+ # the libtracecmd as an independent package, see bug #909439
+ # Note: dev-util/trace-cmd still use in-source static libtracecmd duo to
+ # it still use internal private API.
+ sed -i -e "/^libtracecmd_standalone_build/s/true/false/" \
+ "${S}"/lib/meson.build || die
+}
+
+src_configure() {
+ local emesonargs=(
+ -Dasciidoctor=false
+ $(meson_use python)
+ )
+
+ # TODO: udis86 isn't wired up to meson at all
+ # TODO: get docs & tests optional upstream
+ # TODO: audit/zstd/zlib lack meson options for now. Previously, the situation
+ # was somewhat automagic, so this isn't a huge loss for now, but we should
+ # upstream some build options for these.
+ meson_src_configure
+}
+
+src_install() {
+ meson_src_install
+ use python && python_install
+
+ # TODO: fix bash completion name
+ mv "${D}"/usr/share/bash-completion/completions/${PN}.bash \
+ "${D}"/usr/share/bash-completion/completions/${PN} || die
+}
+
+python_install() {
+ python_optimize "${D}$(python_get_sitedir)"
+}