bcc: enable build for archs without linux-header.

Similar check to the one used in base-system, but to avoid making
linux-header an orphan on aarch64 systems, we depend on linux-header for
the aarch64 package as well.
This commit is contained in:
Érico Nogueira 2021-06-12 01:27:28 -03:00
parent c4bfa7623a
commit 9ac4b07d90

View file

@ -26,7 +26,11 @@ post_extract() {
} }
bcc-tools_package() { bcc-tools_package() {
short_desc+=" - tools" short_desc+=" - tools"
depends="python3-bcc>=${version}_${revision} linux-headers" depends="python3-bcc>=${version}_${revision}"
case "$XBPS_TARGET_MACHINE" in
# only add linux-headers for archs it's currently built for
i686*|x86_64*|ppc*|aarch64*) depends+=" linux-headers";;
esac
pkg_install() { pkg_install() {
vmove usr/share/bcc/man/man8 vmove usr/share/bcc/man/man8
mv ${PKGDESTDIR}/usr/share/bcc/man ${PKGDESTDIR}/usr/share/man mv ${PKGDESTDIR}/usr/share/bcc/man ${PKGDESTDIR}/usr/share/man