Gentoo Archives: gentoo-commits

From: "Jakov Smolić" <jsmolic@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bcc/
Date: Sun, 07 Nov 2021 20:59:46
Message-Id: 1636318715.a5474661a2d448e8ae23309679fcd752d43519d8.jsmolic@gentoo
1 commit: a5474661a2d448e8ae23309679fcd752d43519d8
2 Author: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 7 20:58:07 2021 +0000
4 Commit: Jakov Smolić <jsmolic <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 7 20:58:35 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5474661
7
8 dev-util/bcc: Cleanup deps, bump max llvm version
9
10 Havent't encountered any issues with llvm-13 so let's enable it in the
11 package. Also cleanup libbpf deps, any version above 0.5.0 should be
12 good (although currently there is no newer version than 0.5.0 released)
13
14 Signed-off-by: Jakov Smolić <jsmolic <AT> gentoo.org>
15
16 dev-util/bcc/bcc-0.22.0-r1.ebuild | 23 ++++++++---------------
17 1 file changed, 8 insertions(+), 15 deletions(-)
18
19 diff --git a/dev-util/bcc/bcc-0.22.0-r1.ebuild b/dev-util/bcc/bcc-0.22.0-r1.ebuild
20 index 36f7b33c57d..bca83ca19de 100644
21 --- a/dev-util/bcc/bcc-0.22.0-r1.ebuild
22 +++ b/dev-util/bcc/bcc-0.22.0-r1.ebuild
23 @@ -10,7 +10,6 @@ inherit cmake linux-info llvm lua-single python-r1
24
25 DESCRIPTION="Tools for BPF-based Linux IO analysis, networking, monitoring, and more"
26 HOMEPAGE="https://iovisor.github.io/bcc/"
27 -
28 SRC_URI="https://github.com/iovisor/bcc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
29
30 LICENSE="Apache-2.0"
31 @@ -19,19 +18,17 @@ KEYWORDS="~amd64 ~arm64 ~x86"
32 IUSE="+lua test"
33 REQUIRED_USE="${PYTHON_REQUIRED_USE}
34 lua? ( ${LUA_REQUIRED_USE} )"
35 +# tests need root access
36 +RESTRICT="test"
37
38 RDEPEND="
39 - || (
40 - ~dev-libs/libbpf-0.5.0
41 - ~dev-libs/libbpf-9999
42 - )
43 - dev-libs/libbpf:=[static-libs(-)]
44 - >=sys-kernel/linux-headers-5.13
45 >=dev-libs/elfutils-0.166:=
46 - <=sys-devel/clang-13:=
47 - <=sys-devel/llvm-13:=[llvm_targets_BPF(+)]
48 - lua? ( ${LUA_DEPS} )
49 + >=dev-libs/libbpf-0.5.0:=[static-libs(-)]
50 + >=sys-kernel/linux-headers-5.13
51 + <=sys-devel/clang-14:=
52 + <=sys-devel/llvm-14:=[llvm_targets_BPF(+)]
53 ${PYTHON_DEPS}
54 + lua? ( ${LUA_DEPS} )
55 "
56 DEPEND="${RDEPEND}
57 test? (
58 @@ -44,7 +41,6 @@ DEPEND="${RDEPEND}
59 )
60 "
61 BDEPEND="
62 - dev-util/cmake
63 virtual/pkgconfig
64 "
65
66 @@ -53,9 +49,6 @@ PATCHES=(
67 "${FILESDIR}/bcc-0.14.0-cmakelists.patch"
68 )
69
70 -# tests need root access
71 -RESTRICT="test"
72 -
73 pkg_pretend() {
74 local CONFIG_CHECK="~BPF ~BPF_SYSCALL ~NET_CLS_BPF ~NET_ACT_BPF
75 ~HAVE_EBPF_JIT ~BPF_EVENTS ~DEBUG_INFO ~FUNCTION_TRACER ~KALLSYMS_ALL
76 @@ -65,7 +58,7 @@ pkg_pretend() {
77 }
78
79 pkg_setup() {
80 - LLVM_MAX_SLOT=12 llvm_pkg_setup
81 + LLVM_MAX_SLOT=13 llvm_pkg_setup
82 python_setup
83 }