From cd2f97536c23abcd0078e1ea0aba89c74ff7c4f4 Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Fri, 24 Jul 2026 17:44:59 -0400 Subject: [PATCH] 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 --- eclass/kernel-2.eclass | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass index 625813afd3921..637396381ca4e 100644 --- a/eclass/kernel-2.eclass +++ b/eclass/kernel-2.eclass @@ -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