eclass/kernel-2.eclass: Apply patches defined in ebuilds

eclass will now also apply patches defined in ebuilds
that inherit this eclass. PATCHES=

Thanks to Hank Leininger for reporting

Closes: https://bugs.gentoo.org/979768

Signed-off-by: Mike Pagano <mpagano@gentoo.org>
This commit is contained in:
Mike Pagano
2026-07-24 17:44:59 -04:00
parent 1470648db4
commit cd2f97536c
+5 -2
View File
@@ -1501,11 +1501,14 @@ kernel-2_src_unpack() {
# @FUNCTION: kernel-2_src_prepare
# @USAGE:
# @DESCRIPTION:
# Apply any user patches
# Apply any user patches from /etc/portage/patches
# and patches defined in any ebuild inheriting this eclass
kernel-2_src_prepare() {
debug-print "Applying any user patches"
debug-print "$FUNCNAME: Applying any user patches from /etc/portage/patches/*"
eapply_user
debug-print "$FUNCNAME: Applying patches defined in ebuild PATCHES=<*>"
[[ -n ${PATCHES[@]} ]] && eapply "${PATCHES[@]}"
}
# @FUNCTION: kernel-2_src_compile