From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1345150-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 (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 0DB7C158086
	for <garchives@archives.gentoo.org>; Thu,  2 Dec 2021 07:20:54 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 23B16E088F;
	Thu,  2 Dec 2021 07:20:53 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 7189BE088F
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 07:20:52 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(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 29C0F343091
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 07:20:51 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A87E9132
	for <gentoo-commits@lists.gentoo.org>; Thu,  2 Dec 2021 07:20:49 +0000 (UTC)
From: "Patrick McLean" <chutzpah@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, "Patrick McLean" <chutzpah@gentoo.org>
Message-ID: <1638429645.4befc9afad985df29fcce013b05cd0e1748539b1.chutzpah@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bcc/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-util/bcc/bcc-0.23.0-r1.ebuild dev-util/bcc/bcc-0.23.0.ebuild
X-VCS-Directories: dev-util/bcc/
X-VCS-Committer: chutzpah
X-VCS-Committer-Name: Patrick McLean
X-VCS-Revision: 4befc9afad985df29fcce013b05cd0e1748539b1
X-VCS-Branch: master
Date: Thu,  2 Dec 2021 07:20: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: ee4a8fdc-f7ee-479d-bc03-f975233f6ed2
X-Archives-Hash: 79958e171f9384c1468c7368c44847dc

commit:     4befc9afad985df29fcce013b05cd0e1748539b1
Author:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
AuthorDate: Thu Dec  2 07:20:34 2021 +0000
Commit:     Patrick McLean <chutzpah <AT> gentoo <DOT> org>
CommitDate: Thu Dec  2 07:20:45 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4befc9af

dev-util/bcc: revbump, symlink tools to system path (bug #741466)

This is much easier with eapi-dosym.eclass, so let's finally get around
to adding this to the ebuild.

Closes: https://bugs.gentoo.org/741466
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>

 dev-util/bcc/{bcc-0.23.0.ebuild => bcc-0.23.0-r1.ebuild} | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/dev-util/bcc/bcc-0.23.0.ebuild b/dev-util/bcc/bcc-0.23.0-r1.ebuild
similarity index 90%
rename from dev-util/bcc/bcc-0.23.0.ebuild
rename to dev-util/bcc/bcc-0.23.0-r1.ebuild
index ed3e78d5e3c5..c9b8d16482cd 100644
--- a/dev-util/bcc/bcc-0.23.0.ebuild
+++ b/dev-util/bcc/bcc-0.23.0-r1.ebuild
@@ -7,7 +7,7 @@ LUA_COMPAT=( luajit )
 PYTHON_COMPAT=( python3_{7..10} )
 LLVM_MAX_SLOT=13
 
-inherit cmake linux-info llvm lua-single python-r1
+inherit cmake eapi8-dosym linux-info llvm lua-single python-r1
 
 DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
 HOMEPAGE="https://iovisor.github.io/bcc/"
@@ -111,4 +111,11 @@ src_install() {
 	python_foreach_impl python_optimize
 
 	newenvd "${FILESDIR}"/60bcc.env 60bcc.env
+
+	local tool name
+	for tool in "${ED}"/usr/share/bcc/tools/*; do
+		[[ ! -x ${tool} && ! -L ${tool} || -d ${tool} ]] && continue
+		name=${tool##*/}
+		dosym8 -r "${tool#${ED}}" /usr/sbin/${name}
+	done
 }