commit:     be6b9650261d4c4599dc1c878f0cf8860a0a7bc0
Author:     Jason A. Donenfeld <zx2c4 <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 28 16:57:49 2018 +0000
Commit:     Jason Donenfeld <zx2c4 <AT> gentoo <DOT> org>
CommitDate: Thu Jun 28 16:59:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be6b9650

linux-mod: depend on libelf

Recent linux kernels rely on libelf at build time, which includes at the
time of building out of tree modules. So if a module is relying on the
existence of linux sources, it also needs to rely on libelf being
installed.

Signed-off-by: Jason A. Donenfeld <zx2c4 <AT> gentoo.org>

 eclass/linux-mod.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
index bf580cf4cfa..e5b5ec782f0 100644
--- a/eclass/linux-mod.eclass
+++ b/eclass/linux-mod.eclass
@@ -150,7 +150,7 @@ RDEPEND="${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? 
(} kernel_linux? ( vir
 DEPEND="${RDEPEND}
     ${MODULES_OPTIONAL_USE}${MODULES_OPTIONAL_USE:+? (}
        sys-apps/sed
-       kernel_linux? ( virtual/linux-sources )
+       kernel_linux? ( virtual/linux-sources virtual/libelf )
        ${MODULES_OPTIONAL_USE:+)}"
 
 # eclass utilities

Reply via email to