From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 finch.gentoo.org (Postfix) with ESMTPS id 53236158B20 for ; Sun, 02 Feb 2025 10:21:52 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 3D57C343025 for ; Sun, 02 Feb 2025 10:21:52 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 28C901103B6; Sun, 02 Feb 2025 10:21:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 bobolink.gentoo.org (Postfix) with ESMTPS id 1D75A1103B6 for ; Sun, 02 Feb 2025 10:21:51 +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 C8176342FF9 for ; Sun, 02 Feb 2025 10:21:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2DD031845 for ; Sun, 02 Feb 2025 10:21:49 +0000 (UTC) From: "Guilherme Amadio" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Guilherme Amadio" Message-ID: <1738491693.42612d48a9a466bd92cb8a062d8c134868aa940f.amadio@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/uftrace/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-util/uftrace/Manifest dev-util/uftrace/uftrace-0.17.ebuild X-VCS-Directories: dev-util/uftrace/ X-VCS-Committer: amadio X-VCS-Committer-Name: Guilherme Amadio X-VCS-Revision: 42612d48a9a466bd92cb8a062d8c134868aa940f X-VCS-Branch: master Date: Sun, 02 Feb 2025 10:21:49 +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: b171aa23-08e4-434a-8ce8-1122de51571f X-Archives-Hash: 00e7b44449630db7387ca7790ae2acc4 commit: 42612d48a9a466bd92cb8a062d8c134868aa940f Author: Guilherme Amadio gentoo org> AuthorDate: Sun Feb 2 10:08:34 2025 +0000 Commit: Guilherme Amadio gentoo org> CommitDate: Sun Feb 2 10:21:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42612d48 dev-util/uftrace: add 0.17 Signed-off-by: Guilherme Amadio gentoo.org> dev-util/uftrace/Manifest | 1 + dev-util/uftrace/uftrace-0.17.ebuild | 73 ++++++++++++++++++++++++++++++++++++ 2 files changed, 74 insertions(+) diff --git a/dev-util/uftrace/Manifest b/dev-util/uftrace/Manifest index ad26f5c87b50..1d64e770b816 100644 --- a/dev-util/uftrace/Manifest +++ b/dev-util/uftrace/Manifest @@ -1 +1,2 @@ DIST uftrace-0.16.tar.gz 1157903 BLAKE2B d79471cc1780f52983adfd40fa726190a70a0ecff900a9059d6963cd893f93c679f3626dd388b5dc17b7cc94a276a086b29b1398fd1270f593d49e5919eae650 SHA512 509fc42369cd495fb12e492b6c7726b0f26fa22bcb87452efc36b232a4bf999ff08c69829ad413ecf2c194e3564cf89f7634cfa03d0427926ee62aa957bacd5b +DIST uftrace-0.17.tar.gz 1164457 BLAKE2B 7e9ed9af07d9f2ca8b78d7b7651408f5065917207c57855e6486c6d0d8acdaf3f87096a789f74e4458705c2fd59393fb6973f8e43750bc0bb4e3ab56268e6177 SHA512 b76ac32e68b474522f7d9c470940093bc37cf5d3d2d119d10ffad2954262e83c4092f593f307a41c765a6975416bfc62b844436a4d1888639741eb328e16e1d8 diff --git a/dev-util/uftrace/uftrace-0.17.ebuild b/dev-util/uftrace/uftrace-0.17.ebuild new file mode 100644 index 000000000000..e41ed3fc8197 --- /dev/null +++ b/dev-util/uftrace/uftrace-0.17.ebuild @@ -0,0 +1,73 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( luajit ) +PYTHON_COMPAT=( python3_{9..13} ) # fails to compile with python3.13t + +inherit bash-completion-r1 flag-o-matic lua-single python-single-r1 toolchain-funcs + +DESCRIPTION="Function (graph) tracer for user-space" +HOMEPAGE="https://github.com/namhyung/uftrace" +SRC_URI="https://github.com/namhyung/uftrace/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="capstone lua python unwind" + +REQUIRED_USE=" + lua? ( ${LUA_REQUIRED_USE} ) + python? ( ${PYTHON_REQUIRED_USE} ) +" + +RESTRICT="test" + +RDEPEND=" + sys-libs/ncurses:= + virtual/libelf:= + capstone? ( dev-libs/capstone:0= ) + lua? ( ${LUA_DEPS} ) + python? ( ${PYTHON_DEPS} ) + unwind? ( sys-libs/libunwind:= ) +" +DEPEND="${RDEPEND}" + +src_prepare() { + default + sed -i -e "s/ARCH/MYARCH/g" -e "/ldconfig/d" -e "/bash.completion/d" Makefile || die +} + +src_configure() { + # bug #858503 (https://github.com/namhyung/uftrace/issues/1343) + filter-lto + + local myconf=( + --libdir="${EPREFIX}/usr/$(get_libdir)/uftrace" + $(use_with capstone) + $(use_with unwind libunwind) + $(use_with python libpython) + ) + if use lua && use lua_single_target_luajit; then + myconf+=( + --with-libluajit + ) + else + myconf+=( + --without-libluajit + ) + fi + CC="$(tc-getCC)" LD="$(tc-getLD)" econf "${myconf[@]}" +} + +src_compile() { + emake V=1 +} + +src_install() { + default + + dodoc doc/*.{md,gif,png} + newbashcomp misc/bash-completion.sh uftrace +}