linux-mod: depend on libelf
authorJason A. Donenfeld <zx2c4@gentoo.org>
Thu, 28 Jun 2018 16:57:49 +0000 (18:57 +0200)
committerJason A. Donenfeld <zx2c4@gentoo.org>
Thu, 28 Jun 2018 16:59:10 +0000 (18:59 +0200)
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@gentoo.org>
eclass/linux-mod.eclass

index bf580cf4cfa9461b80b08be43d973fdf0cfdf38d..e5b5ec782f0c257e569339fff4005865fcba6c04 100644 (file)
@@ -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