Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 859157 - eclass/tests/toolchain.sh uses EAPI 5
Summary: eclass/tests/toolchain.sh uses EAPI 5
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EAPI5Removal
  Show dependency tree
 
Reported: 2022-07-18 19:08 UTC by Ulrich Müller
Modified: 2023-04-20 23:14 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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(-)