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

Bug 859157

Summary: eclass/tests/toolchain.sh uses EAPI 5
Product: Gentoo Linux Reporter: Ulrich Müller <ulm>
Component: EclassesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 698100    

Description Ulrich Müller gentoo-dev 2022-07-18 19:08:21 UTC
The test script has EAPI=5 which is no longer supported by toolchain.eclass:

~/git/gentoo/eclass/tests $ ./toolchain.sh
die: : EAPI 5 not supported

After updating toolchain.sh to EAPI=7 (and adding an inherit for eapi7-ver), several other problems are reported:
- TOOLCHAIN_GCC_PV=7.3.0 appears to be too old
- multiple test failures related to downgrade_arch_flags
Comment 1 Larry the Git Cow gentoo-dev 2023-04-20 23:14:06 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55074a1c37442d3dedf5e65dcb93c8e6d20c6af8

commit 55074a1c37442d3dedf5e65dcb93c8e6d20c6af8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-04-20 23:12:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-04-20 23:12:51 +0000

    eclass/tests: partially fix toolchain.eclass tests
    
    - Use the same hack as in crossdev for now wrt EAPI.
    - Fix up the version tests.
    
    We still need to investigate the issues with -march downgrading though.
    
    Bug: https://bugs.gentoo.org/859157
    Signed-off-by: Sam James <sam@gentoo.org>

 eclass/tests/toolchain.sh | 41 +++++++++++++++++++++--------------------
 1 file changed, 21 insertions(+), 20 deletions(-)