From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1722644-garchives=archives.gentoo.org@lists.gentoo.org> 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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8A0441582EF for <garchives@archives.gentoo.org>; Fri, 28 Feb 2025 14:43:51 +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 6AFA83431B0 for <garchives@archives.gentoo.org>; Fri, 28 Feb 2025 14:43:51 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 6998F1102C9; Fri, 28 Feb 2025 14:43:50 +0000 (UTC) Received: from smtp.gentoo.org (mail.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)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 5DFA01102C9 for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 14:43:50 +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 E46E73431B0 for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 14:43:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4996316DF for <gentoo-commits@lists.gentoo.org>; Fri, 28 Feb 2025 14:43:48 +0000 (UTC) From: "Justin Kidd" <me@justinkidd.ca> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Justin Kidd" <me@justinkidd.ca> Message-ID: <1740753790.2521fb54585b40db423acdf78a35dcc1ee396f4e.me@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-apps/bpftune/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-apps/bpftune/bpftune-9999.ebuild X-VCS-Directories: sys-apps/bpftune/ X-VCS-Committer: me X-VCS-Committer-Name: Justin Kidd X-VCS-Revision: 2521fb54585b40db423acdf78a35dcc1ee396f4e X-VCS-Branch: dev Date: Fri, 28 Feb 2025 14:43:48 +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: 104361ea-542b-4d2d-a85e-3b17a303dbbc X-Archives-Hash: daaac224a2e2afcb4cf44416e0d1852a commit: 2521fb54585b40db423acdf78a35dcc1ee396f4e Author: Justin Matthew Kidd <me <AT> justinkidd <DOT> ca> AuthorDate: Fri Feb 28 14:36:31 2025 +0000 Commit: Justin Kidd <me <AT> justinkidd <DOT> ca> CommitDate: Fri Feb 28 14:43:10 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2521fb54 sys-apps/bpftune: simplify & fix dependencies * Simplify ebuild with autotools eclass. * Add pahole dependency. * Add check for Kernel BTF feature. * Move clang and bpftool to BDEPEND. Signed-off-by: Justin Matthew Kidd <me <AT> justinkidd.ca> sys-apps/bpftune/bpftune-9999.ebuild | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/sys-apps/bpftune/bpftune-9999.ebuild b/sys-apps/bpftune/bpftune-9999.ebuild index 29c725315..759b87e74 100644 --- a/sys-apps/bpftune/bpftune-9999.ebuild +++ b/sys-apps/bpftune/bpftune-9999.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit git-r3 systemd +inherit git-r3 systemd linux-info autotools DESCRIPTION="bpftune uses BPF to auto-tune Linux systems" HOMEPAGE="https://github.com/oracle/bpftune" @@ -11,35 +11,23 @@ EGIT_REPO_URI="https://github.com/oracle/bpftune.git" LICENSE="GPL-2" SLOT="0" - -RDEPEND=" +BDEPEND=" + dev-util/bpftool + dev-util/pahole + llvm-core/clang +" +DEPEND=" dev-libs/libbpf sys-libs/libcap dev-libs/libnl " -DEPEND=" - ${RDEPEND} - dev-util/bpftool - llvm-core/clang -" -src_compile() { - emake libdir="$(get_libdir)" srcdir +pkg_setup() { + CONFIG_CHECK="DEBUG_INFO_BTF" + check_extra_config } src_install() { - dobin src/bpftune - dolib.so src/libbpftune.so* - - exeinto "/usr/$(get_libdir)/bpftune" - doexe src/tcp_buffer_tuner.so - doexe src/route_table_tuner.so - doexe src/neigh_table_tuner.so - doexe src/sysctl_tuner.so - doexe src/tcp_conn_tuner.so - doexe src/netns_tuner.so - doexe src/net_buffer_tuner.so - doexe src/ip_frag_tuner.so - + default systemd_dounit src/bpftune.service }