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:
parent
c4bfa7623a
commit
9ac4b07d90
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue