aboutsummaryrefslogtreecommitdiffstats
path: root/community/bcc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/bcc/APKBUILD')
-rw-r--r--community/bcc/APKBUILD22
1 files changed, 13 insertions, 9 deletions
diff --git a/community/bcc/APKBUILD b/community/bcc/APKBUILD
index 5bb6d8d857..93b0d13b6e 100644
--- a/community/bcc/APKBUILD
+++ b/community/bcc/APKBUILD
@@ -1,7 +1,8 @@
-# Maintainer: Adam Jensen <acjensen@gmail.com>
+# Contributor: Adam Jensen <adam@acj.sh>
+# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=bcc
-pkgver=0.18.0
-pkgrel=0
+pkgver=0.20.0
+pkgrel=1
pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs"
url="https://github.com/iovisor/bcc/"
arch="all !s390x !mips !mips64" # build fails
@@ -9,11 +10,12 @@ license="Apache-2.0"
# bcc's test suite requires privileged access to run BPF programs
options="!check"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc:_doc $pkgname-tools:_tools py3-$pkgname:_py:noarch"
-_llvmver=10
-makedepends="tar git llvm$_llvmver-dev llvm$_llvmver-static clang-dev clang-static cmake
- python3 flex-dev bison build-base iperf linux-headers elfutils-dev zlib-dev"
-source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/bcc/releases/download/v$pkgver/bcc-src-with-submodule.tar.gz"
-builddir="$srcdir/$pkgname"
+_llvmver=11
+makedepends="tar git llvm$_llvmver-dev llvm$_llvmver-static clang-dev
+ clang-static cmake python3 flex-dev bison build-base iperf
+ linux-headers elfutils-dev zlib-dev libbpf-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/bcc/archive/v$pkgver.tar.gz
+fix-newer-kernel-header-missing-enum.patch"
case "$CARCH" in
ppc64le) ;;
@@ -35,6 +37,7 @@ build() {
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DPYTHON_CMD=python3 \
-DREVISION=$pkgver \
+ -DCMAKE_USE_LIBBPF_PACKAGE=ON \
..
make
}
@@ -79,4 +82,5 @@ _lua() {
mv "$pkgdir"/usr/bin/bcc-lua "$subpkgdir"/usr/bin
}
-sha512sums="2f3d571f44054f872fd314fd9de72aafb8d10779e736d71c2b48558950cdda3546900df0a52a9d882eb898467bd33a0888458ff4af0ca408b33d8c56a49dbffa bcc-0.18.0.tar.gz"
+sha512sums="fa7c50a4fc64846ad798b6652101aa414cda53d08779cf48bd505191189cb23da2838f7511e700d59e086d35216f4e3bc9867b614738061630984dff3c4576dc bcc-0.20.0.tar.gz
+c1c6a7e63e90f076124568f7dd7e84be8db802bee9696ecefe9be3db753e03df8851dd25c5349db3a0b6f7eefec2d5f93190f8cd9b1c5da388affaf65ec3e03f fix-newer-kernel-header-missing-enum.patch"