From 796eceae9d97711f9608c07a5aa5e1434cb999ad Mon Sep 17 00:00:00 2001 From: Matej Dian Date: Tue, 23 Feb 2021 20:59:26 +0100 Subject: [PATCH] add pahole dependency to headers on 5.11+ (#184) --- PKGBUILD | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/PKGBUILD b/PKGBUILD index e001d02..b9b0883 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -498,6 +498,13 @@ hackbase() { hackheaders() { pkgdesc="Headers and scripts for building modules for the $pkgdesc kernel" provides=("linux-headers=${pkgver}" "${pkgbase}-headers=${pkgver}") + case $_basever in + 54|57|58|59|510) + ;; + *) + depends=('pahole') + ;; + esac cd "${srcdir}/${_srcpath}" local builddir="${pkgdir}/usr/lib/modules/$(