From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D677F158083 for ; Tue, 24 Sep 2024 10:23:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 090262BC03C; Tue, 24 Sep 2024 10:23:50 +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 E16322BC03C for ; Tue, 24 Sep 2024 10:23:49 +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 2BC06343106 for ; Tue, 24 Sep 2024 10:23:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 85F2C1F2E for ; Tue, 24 Sep 2024 10:23:47 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1727173350.2733ec05fac90169287bcbec2e6e669a57629e7d.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/0xtools/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/0xtools/0xtools-2.0.3-r1.ebuild dev-util/0xtools/0xtools-2.0.3.ebuild X-VCS-Directories: dev-util/0xtools/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 2733ec05fac90169287bcbec2e6e669a57629e7d X-VCS-Branch: master Date: Tue, 24 Sep 2024 10:23:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5aa03dd3-cec4-4715-a763-8446e9452368 X-Archives-Hash: ca05ac32414cb9c63b7727f3ceeeb4fc commit: 2733ec05fac90169287bcbec2e6e669a57629e7d Author: Maciej Barć gentoo org> AuthorDate: Tue Sep 24 10:17:00 2024 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Sep 24 10:22:30 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2733ec05 dev-util/0xtools: fix dependencies Closes: https://bugs.gentoo.org/939913 Closes: https://bugs.gentoo.org/939914 Signed-off-by: Maciej Barć gentoo.org> ...xtools-2.0.3.ebuild => 0xtools-2.0.3-r1.ebuild} | 24 +++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/dev-util/0xtools/0xtools-2.0.3.ebuild b/dev-util/0xtools/0xtools-2.0.3-r1.ebuild similarity index 72% rename from dev-util/0xtools/0xtools-2.0.3.ebuild rename to dev-util/0xtools/0xtools-2.0.3-r1.ebuild index 8f4e383cb9f6..395a7ccf798a 100644 --- a/dev-util/0xtools/0xtools-2.0.3.ebuild +++ b/dev-util/0xtools/0xtools-2.0.3-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{11..12} ) -inherit python-single-r1 systemd toolchain-funcs +inherit python-single-r1 systemd toolchain-funcs wrapper DESCRIPTION="Always-on profiling for production systems" HOMEPAGE="https://0x.tools/ @@ -26,11 +26,15 @@ LICENSE="GPL-2+" SLOT="0" REQUIRED_USE="${PYTHON_REQUIRED_USE}" -RDEPEND=" +BDEPEND=" ${PYTHON_DEPS} " -BDEPEND=" - ${RDEPEND} +RDEPEND=" + ${BDEPEND} + sys-power/cpupower + $(python_gen_cond_dep ' + dev-util/bcc[${PYTHON_USEDEP}] + ') " DOCS=( CHANGELOG.md README.md ) @@ -43,9 +47,12 @@ src_compile() { } src_install() { + # "cpumhzturbo" requires "turbostat", which is not packaged, + # see bug: https://bugs.gentoo.org/939913 + # C executables and scripts exeinto /usr/bin - doexe bin/{cpumhz,cpumhzturbo,vmtop,xcapture,xtop} + doexe bin/{cpumhz,vmtop,xcapture,xtop} doexe bin/{run_xcapture.sh,run_xcpu.sh} # Python executables @@ -59,6 +66,13 @@ src_install() { systemd_dounit xcapture-restart.service systemd_dounit xcapture-restart.timer + # Setup for "xcapture-bpf". + exeinto "/lib/${PN}/xcapture" + doexe bin/xcapture-bpf + insinto "/lib/${PN}/xcapture" + doins bin/xcapture-bpf.c + make_wrapper xcapture-bpf "/lib/${PN}/xcapture/xcapture-bpf" + # Service config insinto /etc/default newins xcapture.default xcapture