Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 702280 - kernel-2.eclass: add EAPI=7 support
Summary: kernel-2.eclass: add EAPI=7 support
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Keywords: PATCH, PullRequest
Depends on: 629106
Blocks: EAPI6Removal 739942 770979
  Show dependency tree
Reported: 2019-12-08 11:08 UTC by Sergei Trofimovich (RETIRED)
Modified: 2021-05-27 21:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

Clean-up patch on top of PR referenced (0001-Remove-deprecated-code-around-2.4-2.6-and-fbcondecor.patch,3.96 KB, patch)
2021-05-12 17:43 UTC, Mike Pagano
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sergei Trofimovich (RETIRED) gentoo-dev 2019-12-08 11:08:41 UTC
Every time I bump linux-headers I try to move it to EAPI=7 without success:

 * ERROR: sys-kernel/linux-headers-5.4::gentoo failed (depend phase):
 *   kernel-2: EAPI 7 not supported
 * Call stack:
 *        , line 616:  Called source '/gentoo-ebuilds/gentoo/sys-kernel/linux-headers/linux-headers-5.4.ebuild'
 *   linux-headers-5.4.ebuild, line   8:  Called inherit 'kernel-2'
 *        , line 317:  Called __qa_source '/gentoo-ebuilds/gentoo/eclass/kernel-2.eclass'
 *        , line 112:  Called source '/gentoo-ebuilds/gentoo/eclass/kernel-2.eclass'
 *            kernel-2.eclass, line 201:  Called die
 * The specific snippet of code:
 *   	*) die "${ECLASS}: EAPI ${EAPI} not supported" ;;
Comment 1 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2021-03-29 08:05:16 UTC
Comment 2 Mike Pagano gentoo-dev 2021-05-12 17:43:03 UTC
Created attachment 707682 [details, diff]
Clean-up patch on top of PR referenced
Comment 3 Larry the Git Cow gentoo-dev 2021-05-27 21:19:43 UTC
The bug has been closed via the following commit(s):

commit 48876101539b1cb8aff5da5a4566fd03ddea114a
Author:     David Michael <>
AuthorDate: 2021-02-05 17:14:21 +0000
Commit:     David Seifert <>
CommitDate: 2021-05-27 21:15:13 +0000

    kernel-2.eclass: EAPI 7 support
    This converts installation paths prefixed with EROOT or ED to have
    a leading slash, switches DEPEND to BDEPEND for EAPI 7 so tools are
    installed in BROOT and natively executable, and makes eapply_user
    the default src_prepare behavior for EAPIs since 6.
    It also drops the binutils build-time dependency since it was added
    in the original kernel.eclass implementation ~20 years ago to
    enforce a minimum version to avoid old assembly bugs.  All affected
    versions are long gone, and it isn't required to install sources
    anyway, so skip building the unused binutils dependency.
    Signed-off-by: David Michael <>
    Signed-off-by: David Seifert <>

 eclass/kernel-2.eclass | 47 +++++++++++++++++++++++------------------------
 1 file changed, 23 insertions(+), 24 deletions(-)