summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-09-05 12:48:02 +0100
committerSam James <sam@gentoo.org>2024-09-05 13:09:45 +0100
commit82f9bef4ed76f656a3d79b607eecff526b78b7ee (patch)
tree1673d50c96555ad87b3e3da1bd0a4a56d32a22af /eclass/linux-mod-r1.eclass
parentmedia-sound/qjackctl: dropped obsolete 1.0.0 (diff)
downloadgentoo-82f9bef4ed76f656a3d79b607eecff526b78b7ee.tar.gz
gentoo-82f9bef4ed76f656a3d79b607eecff526b78b7ee.tar.bz2
gentoo-82f9bef4ed76f656a3d79b607eecff526b78b7ee.zip
linux-mod-r1.eclass: BDEPEND on dev-util/pahole
If the kernel is built with CONFIG_DEBUG_INFO_BTF_MODULES, external kernel module builds will try to call `pahole` to generate BTF and fail if it's not present. pahole is a small dependency and we're likely to enable BTF by default in more configurations going forward, so do it unconditionally. The alternatives aren't great anyway, we would have to instead: * RDEPEND in g-k-bin * BDEPEND in g-k-bin and break the binpkg case * Use an ewarn in the eclass if pahole isn't installed + config option is set so this is the best option available to us. Thanks-to: Ionen Wolkens <ionen@gentoo.org> Reported-by: Sebastian Engel <sighunter@gmx.de> Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass/linux-mod-r1.eclass')
-rw-r--r--eclass/linux-mod-r1.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/linux-mod-r1.eclass b/eclass/linux-mod-r1.eclass
index 9911a6ddee12..120fb019d74a 100644
--- a/eclass/linux-mod-r1.eclass
+++ b/eclass/linux-mod-r1.eclass
@@ -121,6 +121,7 @@ DEPEND="
virtual/linux-sources
"
BDEPEND="
+ dev-util/pahole
sys-apps/kmod[tools]
modules-sign? (
dev-libs/openssl