bcc: update to 0.11.0.

Move to Python 3.
This commit is contained in:
Leah Neukirchen 2019-10-04 10:31:37 +02:00
parent 4293326d4d
commit 64d703effa
3 changed files with 11 additions and 22 deletions

View File

@ -48,15 +48,3 @@
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
--- src/cc/libbpf/src/hashmap.h.orig 2019-05-29 19:27:27.000000000 +0200
+++ src/cc/libbpf/src/hashmap.h 2019-06-01 23:57:31.458324372 +0200
@@ -10,6 +10,9 @@
#include <stdbool.h>
#include <stddef.h>
+#if !defined(__GLIBC__)
+#include <bits/reg.h> /* for __WORDSIZE */
+#endif
#include "libbpf_internal.h"
static inline size_t hash_bits(size_t h, int bits)

View File

@ -1,20 +1,21 @@
# Template file for 'bcc'
pkgname=bcc
version=0.10.0
revision=2
version=0.11.0
revision=1
build_style=cmake
configure_args="-DREVISION=${version}"
hostmakedepends="flex"
makedepends="clang elfutils-devel lld-devel llvm ncurses-devel
python-devel zlib-devel"
python3-devel zlib-devel"
python_version="3"
short_desc="BPF-based Linux IO analysis, networking, monitoring, and more"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="Apache-2.0"
homepage="https://github.com/iovisor/bcc"
distfiles="https://github.com/iovisor/${pkgname}/archive/v${version}.tar.gz
https://github.com/libbpf/libbpf/archive/75db50f4a09d9dbac49b1ace9e4b6a722bdf0519.tar.gz"
checksum="b02a75bc469a33e6781c915361a49a97d4ec7b45d74cfeffb22693247438d4b0
22a7ba2343df699a0332015aa54d4a8aeba1756f58308fed120b60a8900e9d55"
https://github.com/libbpf/libbpf/archive/1a26b51b1ca0c33ded075e7563ab40fba686ea0f.tar.gz"
checksum="18ba73ab285d96b806e59764abba5e6a5fa0c39f5571150b31cf651df3a71b48
3c2e5dc538b338353b05f1ed5d5f2aceee394bbd9b69fec2a7b586a4f9c0274d"
nocross=yes # https://github.com/voidlinux/void-packages/issues/4738
post_extract() {
@ -25,7 +26,7 @@ post_extract() {
}
bcc-tools_package() {
short_desc+=" - tools"
depends="python-bcc>=${version}_${revision} linux-headers"
depends="python3-bcc>=${version}_${revision} linux-headers"
pkg_install() {
vmove usr/share/bcc/man/man8
mv ${PKGDESTDIR}/usr/share/bcc/man ${PKGDESTDIR}/usr/share/man
@ -55,10 +56,10 @@ bcc-devel_package() {
vmove usr/share/bcc/examples
}
}
python-bcc_package() {
python3-bcc_package() {
lib32disabled=yes
depends="python"
short_desc+=" - Python 2.7 module"
depends="python3"
short_desc+=" - Python 3 module"
depends="${sourcepkg}>=${version}_${revision}"
pycompile_module="bcc"
pkg_install() {