1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-12 18:59:50 +03:00

community/bpftrace: use default strip again

The stripping issue was resolved upstream

Ref https://github.com/bpftrace/bpftrace/issues/954#issuecomment-2711213276
This commit is contained in:
Sertonix 2025-07-07 13:44:38 +00:00 committed by achill (fossdd)
parent e9df161d6f
commit 30f4bacc37

View file

@ -2,7 +2,7 @@
# Maintainer: Adam Jensen <adam@acj.sh>
pkgname=bpftrace
pkgver=0.23.5
pkgrel=1
pkgrel=2
pkgdesc="High-level tracing language for Linux eBPF"
url="https://github.com/iovisor/bpftrace"
arch="all !x86" # x86 unsupported
@ -30,9 +30,7 @@ makedepends="
"
source="$pkgname-$pkgver.tar.gz::https://github.com/iovisor/bpftrace/archive/v$pkgver.tar.gz"
# Tests require root, network to download gmock and a few tests fail.
# Stripping is done ourselves to keep the BEGIN_trigger symbol required
# for BEGIN probe (see https://github.com/iovisor/bpftrace/issues/954 )
options="!check !strip"
options="!check"
subpackages="$pkgname-doc:doc $pkgname-tools:tools:noarch $pkgname-tools-doc:tools_doc"
check_bcc_clang() {
@ -62,10 +60,6 @@ build() {
# Main package contains only bpftrace binary.
package() {
DESTDIR="$pkgdir" cmake --install build
strip --keep-symbol BEGIN_trigger \
--keep-symbol END_trigger \
"$pkgdir"/usr/bin/bpftrace \
"$pkgdir"/usr/bin/bpftrace-aotrt
mv "$pkgdir/usr/share/bpftrace/tools/doc" "$pkgdir/usr/share/bpftrace/tools_doc"
}