mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
7ca0a3cd37f0312897cd7ab3d9523738917b1bc5
USE=modules was declared in IUSE directly instead of via MODULES_OPTIONAL_IUSE. The linux-mod-r1 eclass only gates its exported phases (pkg_setup, src_compile, src_install, pkg_postinst) through _modules_check_function when MODULES_OPTIONAL_IUSE is set; without it all kernel-related code runs unconditionally regardless of USE=-modules. This causes fatal failures in environments without a configured kernel source tree (e.g. catalyst livecd-stage1, prefix installs, chroots). The eclass documentation notes: "The typical recommended value is +modules" and "modules being optional can be useful even if user space tools require them (e.g. installing in a chroot or prefix when the modules are loaded on the host)." Also fix the MODDULES_KERNEL_MIN typo (double O) introduced in the same commit that added USE=modules; the eclass reads MODULES_KERNEL_MIN so the minimum kernel version check of 6.16 was silently ignored. Signed-off-by: Nic Boet <nic@boet.cc> Part-of: https://github.com/gentoo/gentoo/pull/46389 Closes: https://github.com/gentoo/gentoo/pull/46389 Signed-off-by: Sam James <sam@gentoo.org>
…
…
…
…
…
…
Description
No description provided
9.8 GiB
Languages
Shell
97.9%
Roff
1.4%
Emacs Lisp
0.2%
C
0.1%