From 9ac4b07d9066620159814284c6bfe5ba5df94f52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89rico=20Nogueira?= Date: Sat, 12 Jun 2021 01:27:28 -0300 Subject: [PATCH] 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. --- srcpkgs/bcc/template | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/srcpkgs/bcc/template b/srcpkgs/bcc/template index 985568af0e5..cbdb9de0abc 100644 --- a/srcpkgs/bcc/template +++ b/srcpkgs/bcc/template @@ -26,7 +26,11 @@ post_extract() { } bcc-tools_package() { 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() { vmove usr/share/bcc/man/man8 mv ${PKGDESTDIR}/usr/share/bcc/man ${PKGDESTDIR}/usr/share/man