From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1685331-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E6D18158042 for <garchives@archives.gentoo.org>; Fri, 1 Nov 2024 03:12:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21A5EE08F0; Fri, 1 Nov 2024 03:12:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 07F0EE08F0 for <gentoo-commits@lists.gentoo.org>; Fri, 1 Nov 2024 03:12:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 32FFD3430DA for <gentoo-commits@lists.gentoo.org>; Fri, 1 Nov 2024 03:12:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 985B811DF for <gentoo-commits@lists.gentoo.org>; Fri, 1 Nov 2024 03:12:49 +0000 (UTC) From: "Yixun Lan" <dlan@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" <dlan@gentoo.org> Message-ID: <1730430693.7ac22b1b7e4fc148c73376b5fc91a001721e8db4.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/trace-cmd/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/trace-cmd/Manifest dev-util/trace-cmd/trace-cmd-3.3.1.ebuild X-VCS-Directories: dev-util/trace-cmd/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: 7ac22b1b7e4fc148c73376b5fc91a001721e8db4 X-VCS-Branch: master Date: Fri, 1 Nov 2024 03:12:49 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 79edb953-2c71-4e64-9b19-7af4806b3554 X-Archives-Hash: 21ae9779f4210303caaee028861ff3f1 commit: 7ac22b1b7e4fc148c73376b5fc91a001721e8db4 Author: Yixun Lan <dlan <AT> gentoo <DOT> org> AuthorDate: Fri Nov 1 01:11:14 2024 +0000 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org> CommitDate: Fri Nov 1 03:11:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ac22b1b dev-util/trace-cmd: add 3.3.1 Signed-off-by: Yixun Lan <dlan <AT> gentoo.org> dev-util/trace-cmd/Manifest | 1 + dev-util/trace-cmd/trace-cmd-3.3.1.ebuild | 98 +++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/dev-util/trace-cmd/Manifest b/dev-util/trace-cmd/Manifest index ad678171e716..87587821119e 100644 --- a/dev-util/trace-cmd/Manifest +++ b/dev-util/trace-cmd/Manifest @@ -1,2 +1,3 @@ DIST trace-cmd-v3.2.tar.gz 342848 BLAKE2B d82309b72d00ae1b757039c7a358e7703c9e74527112baa05eb44f971067b1189b7833621766fdf8affc812b84b7bcfd071b2946495197d81a8ed8ff7240779e SHA512 6a8474e619b32ccf60217eba1ce472bdf6e77f6aff118b579f329b49eaf1b20c9a7802b539876be7c782f33dc78587cc510c7b4bf12af5707bfa2813e59ae442 +DIST trace-cmd-v3.3.1.tar.gz 363474 BLAKE2B 08855a672df92248a350e0f67c6da41b40602bcb4e886e993515bba174bfa482c93e1b5a157c72b4f30d91db47565ea9f65311731aeec2fbccc433daa8232a8b SHA512 a643efc2868d08871a7359dd0a17389685fb229f26328ee96f27a3dd94b5f3eb62009b945c14725eda1f09fa15367ffe2e2c3611d89860dcc031bbd6403cdee0 DIST trace-cmd-v3.3.tar.gz 363405 BLAKE2B bc77ced96d47fe8284ad2252b7f6e51ae73b248a41908f255db68277ffccb35b34ede9a5e85f5f284b701c40b009f2d0ca091fb7db554793ae1470d6585e07ed SHA512 0857bea0bceb196bdb44164eefb8a05384c640f5a4d569dcbf26d80302b21bf17880eaba07c3da81c8812abe0f451219c26ba02b7bf9103eb1d0e88f1da84703 diff --git a/dev-util/trace-cmd/trace-cmd-3.3.1.ebuild b/dev-util/trace-cmd/trace-cmd-3.3.1.ebuild new file mode 100644 index 000000000000..707678e7fb7a --- /dev/null +++ b/dev-util/trace-cmd/trace-cmd-3.3.1.ebuild @@ -0,0 +1,98 @@ +# 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.8 + >=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)" +}