Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 702280

Summary: kernel-2.eclass: add EAPI=7 support
Product: Gentoo Linux Reporter: Sergei Trofimovich (RETIRED) <slyfox>
Component: EclassesAssignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers <kernel>
Status: RESOLVED FIXED    
Severity: normal CC: fedora.dm0
Priority: Normal Keywords: PATCH, PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://archives.gentoo.org/gentoo-dev/message/a032ddd8d54fb0d0797f855a69a4e612
See Also: https://github.com/gentoo/gentoo/pull/20639
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 629106    
Bug Blocks: 770247, 739942, 770979    
Attachments: Clean-up patch on top of PR referenced

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:
 *                  ebuild.sh, 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'
 *                  ebuild.sh, line 317:  Called __qa_source '/gentoo-ebuilds/gentoo/eclass/kernel-2.eclass'
 *                  ebuild.sh, 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
ping
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):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=48876101539b1cb8aff5da5a4566fd03ddea114a

commit 48876101539b1cb8aff5da5a4566fd03ddea114a
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2021-02-05 17:14:21 +0000
Commit:     David Seifert <soap@gentoo.org>
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.
    
    Closes: https://bugs.gentoo.org/702280
    Signed-off-by: David Michael <fedora.dm0@gmail.com>
    Signed-off-by: David Seifert <soap@gentoo.org>

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