aboutsummaryrefslogtreecommitdiffstats
path: root/community/bcc
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-09-09 21:18:27 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-09-11 14:45:01 -0300
commit95ea046667fba789c30d2d50710fadc0361abf59 (patch)
tree754408fcd36933d37329f8e6a3f7836e121cd741 /community/bcc
parent389b7971de86052f690442634e61bb5a71c835cb (diff)
downloadaports-95ea046667fba789c30d2d50710fadc0361abf59.tar.bz2
aports-95ea046667fba789c30d2d50710fadc0361abf59.tar.xz
community/bcc: switch to python3
Diffstat (limited to 'community/bcc')
-rw-r--r--community/bcc/APKBUILD16
1 files changed, 8 insertions, 8 deletions
diff --git a/community/bcc/APKBUILD b/community/bcc/APKBUILD
index 52e1507d61..40b16e9d3c 100644
--- a/community/bcc/APKBUILD
+++ b/community/bcc/APKBUILD
@@ -1,17 +1,17 @@
# Maintainer: Adam Jensen <acjensen@gmail.com>
pkgname=bcc
pkgver=0.10.0
-pkgrel=2
+pkgrel=3
pkgdesc="A toolkit for creating efficient kernel tracing and manipulation programs"
url="https://github.com/iovisor/bcc/"
arch="aarch64 x86 x86_64"
license="Apache-2.0"
# bcc's test suite requires privileged access to run BPF programs
options="!check"
-subpackages="$pkgname-dev $pkgname-doc:_doc $pkgname-tools:_tools $pkgname-lua:_lua py-$pkgname:_py"
+subpackages="$pkgname-dev $pkgname-doc:_doc $pkgname-tools:_tools $pkgname-lua:_lua py3-$pkgname:_py"
_llvmver=8
-makedepends="tar git llvm$_llvmver-dev llvm$_llvmver-static clang-dev clang-static cmake python
- flex-dev bison luajit-dev build-base iperf linux-headers elfutils-dev zlib-dev
+makedepends="tar git llvm$_llvmver-dev llvm$_llvmver-static clang-dev clang-static cmake
+ python3 flex-dev bison luajit-dev 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
10-use-system-libbpf.patch"
@@ -26,7 +26,7 @@ prepare() {
build() {
mkdir -p "$builddir/build"
cd "$builddir/build"
- cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
+ cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DPYTHON_CMD=python3 ..
make
}
@@ -53,11 +53,11 @@ _tools() {
}
_py() {
- depends="$pkgname python"
- pkgdesc="$pkgdesc (python bindings)"
+ depends="$pkgname python3"
+ pkgdesc="$pkgdesc (python3 bindings)"
mkdir -p "$subpkgdir"/usr/lib
- mv "$pkgdir"/usr/lib/python2.7 "$subpkgdir"/usr/lib/python2.7
+ mv "$pkgdir"/usr/lib/python3* "$subpkgdir"/usr/lib
}
_lua() {