Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 842246 - rust-toolchain.eclass: needs major overhaul
Summary: rust-toolchain.eclass: needs major overhaul
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Rust Project
URL:
Whiteboard:
Keywords:
Depends on: 671736
Blocks: 769452 769467
  Show dependency tree
 
Reported: 2022-05-02 21:49 UTC by Georgy Yakovlev
Modified: 2022-06-25 05:40 UTC (History)
3 users (show)

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 Georgy Yakovlev archtester gentoo-dev 2022-05-02 21:49:22 UTC
currently there are multiple problems with the eclass that need addressing:

* CHOST matcher assumes only upstream-provided triplets
* SRC_URI assumes only upstream dist tarballs
* the whole matching is hacky and hardcoded, it needs to be improved.
* mixes sh and bash syntax, should consistently use the latter
Comment 1 Larry the Git Cow gentoo-dev 2022-06-25 05:36:28 UTC
The bug has been referenced in the following commit(s):

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

commit c0a82c42c13340743296461c0b594c5ad2f8a116
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-25 05:34:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-25 05:35:20 +0000

    profiles/arch/sparc: force dev-lang/rust[system-bootstrap]
    
    Needed for now until dev-lang/rust learns how to use our
    bootstrap tarball which we inject into dev-lang/rust-bin
    for sparc.
    
    Bug: https://bugs.gentoo.org/842246
    Bug: https://bugs.gentoo.org/769467
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/package.use.force | 6 ++++++
 1 file changed, 6 insertions(+)
Comment 2 Larry the Git Cow gentoo-dev 2022-06-25 05:40:11 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0e791aea82a45010c220f1101ce0485f4a5d6ca1

commit 0e791aea82a45010c220f1101ce0485f4a5d6ca1
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-06-25 05:39:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-25 05:39:37 +0000

    profiles/arch/sparc: mask dev-lang/rust-bin[clippy,doc,rls,rustfmt]
    
    Bug: https://bugs.gentoo.org/769467
    Bug: https://bugs.gentoo.org/842246
    See: c0a82c42c13340743296461c0b594c5ad2f8a116
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/sparc/package.use.mask | 5 +++++
 1 file changed, 5 insertions(+)