bcc: build with llvm19

This commit is contained in:
Daniel Martinez 2024-11-23 17:07:29 -05:00 committed by classabbyamp
parent aaecd33022
commit c8c4a54527

View File

@ -1,11 +1,12 @@
# Template file for 'bcc'
pkgname=bcc
version=0.31.0
revision=1
revision=2
_llvmver=19
build_style=cmake
configure_args="-DREVISION=${version} -DENABLE_LLVM_SHARED=1"
configure_args="-DREVISION=${version} -DENABLE_LLVM_SHARED=1
-DCMAKE_PREFIX_PATH=${XBPS_CROSS_BASE}/usr/lib/llvm/${_llvmver}"
hostmakedepends="flex python3-setuptools"
_llvmver=17
makedepends="clang${_llvmver} clang-tools-extra${_llvmver} elfutils-devel flex lld${_llvmver}-devel llvm${_llvmver}-devel
ncurses-devel python3-devel zlib-devel"
short_desc="BPF-based Linux IO analysis, networking, monitoring, and more"
@ -16,12 +17,6 @@ distfiles="https://github.com/iovisor/bcc/releases/download/v${version}/bcc-src-
checksum=539a9e937b42f79ec525a05daa1b2a4ce0bf444fc692e2ac21e618f91605e089
python_version="3"
# bug in llvm17-devel dependencies
case "$XBPS_TARGET_MACHINE" in
x86_64*|aarch64*)
makedepends+=" libomp-devel"
esac
post_extract() {
sed -i '/tests/d' CMakeLists.txt # break on musl
sed -i 's/<error.h>/<errno.h>/' examples/cpp/KModRetExample.cc