Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914725 - sys-devel/crossdev: arch for riscv targets are *
Summary: sys-devel/crossdev: arch for riscv targets are *
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Crossdev team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-09-26 02:37 UTC by mcendu
Modified: 2023-09-26 18:30 UTC (History)
3 users (show)

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


Attachments
[PATCH] make riscv targets use riscv portage arch (0001-make-riscv-targets-use-riscv-portage-arch.patch,647 bytes, patch)
2023-09-26 08:32 UTC, mcendu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mcendu 2023-09-26 02:37:35 UTC
The arch for RISC-V targets are displayed as * in --show-target-cfg.

    $ crossdev --show-target-cfg riscv64
    arch=*
    target=riscv64-unknown-linux-gnu
    category=cross-riscv64-unknown-linux-gnu
    binutils_category=sys-devel
    binutils_pn=binutils
    gcc_category=sys-devel
    gcc_pn=gcc
    kernel_category=sys-kernel
    kernel_pn=linux-headers
    libc_category=sys-libs
    libc_pn=glibc
    crosspkgs='binutils gcc kernel libc'

Since RISC-V is a supported target for installing Gentoo, I expect arch here to be riscv instead:

    $ crossdev --show-target-cfg riscv64
    arch=riscv
    target=riscv64-unknown-linux-gnu
    category=cross-riscv64-unknown-linux-gnu
    binutils_category=sys-devel
    binutils_pn=binutils
    gcc_category=sys-devel
    gcc_pn=gcc
    kernel_category=sys-kernel
    kernel_pn=linux-headers
    libc_category=sys-libs
    libc_pn=glibc
    crosspkgs='binutils gcc kernel libc'

Might give this a try.
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 02:40:11 UTC
(In reply to mcendu from comment #0)
> The arch for RISC-V targets are displayed as * in --show-target-cfg.
> [...]
> 
> Since RISC-V is a supported target for installing Gentoo, I expect arch here
> to be riscv instead:
> [...]
> 
> Might give this a try.

If you're willing, please do! It should be a nice first patch.
Comment 2 mcendu 2023-09-26 08:32:03 UTC
Created attachment 871473 [details, diff]
[PATCH] make riscv targets use riscv portage arch
Comment 3 Larry the Git Cow gentoo-dev 2023-09-26 18:30:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=90995af1950ac42dbb8795450dabd93de6d15dc3

commit 90995af1950ac42dbb8795450dabd93de6d15dc3
Author:     Nathan Du <nathandu@outlook.com>
AuthorDate: 2023-09-26 07:39:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-09-26 18:30:18 +0000

    make riscv targets use riscv portage arch
    
    Closes: https://bugs.gentoo.org/914725
    Signed-off-by: Nathan Du <nathandu@outlook.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 crossdev | 1 +
 1 file changed, 1 insertion(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-09-26 18:30:52 UTC
Thanks for your contribution!