Rust upstream support s390x (but not s390).
according to sam: rust-bin works to build some applications like ripgrep so at this point I can say it's ok to add ~s390 keyword to rust-bin and virtual/rust last time bootstrapping rust with rust-bin failed, but that does not really stop us from using only -bin for now. unfortunately, due to same keyword, all the s390 keyworded packages that depend on virtual/rust will have to be masked on s390 profiles / unmasked on s390x ones, like on arm.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3315ee9492e63426fe60ad30b23aa824f45f625 commit d3315ee9492e63426fe60ad30b23aa824f45f625 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-25 18:32:27 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-25 18:32:38 +0000 profiles/arch/s390: mask Rust on s390, and unmask on s390x Bug: https://bugs.gentoo.org/769446 Signed-off-by: Sam James <sam@gentoo.org> profiles/arch/s390/package.mask | 7 +++++++ profiles/arch/s390/s390x/package.mask | 7 +++++++ 2 files changed, 14 insertions(+) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aedee582dc5a1f4cdf9f89797d5b088461e74646 commit aedee582dc5a1f4cdf9f89797d5b088461e74646 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-25 18:31:13 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-25 18:32:37 +0000 dev-lang/rust-bin: keyword 1.60.0 for ~s390 Bug: https://bugs.gentoo.org/769446 Signed-off-by: Sam James <sam@gentoo.org> dev-lang/rust-bin/rust-bin-1.60.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d37197fb626bbcd35fd5fa09cb8c0e5ee3b893e5 commit d37197fb626bbcd35fd5fa09cb8c0e5ee3b893e5 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-25 18:30:59 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-25 18:32:36 +0000 virtual/rust: keyword 1.60.0 for ~s390 Bug: https://bugs.gentoo.org/769446 Signed-off-by: Sam James <sam@gentoo.org> virtual/rust/rust-1.60.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=457fb9e970e1109c3be391258d68111a67371240 commit 457fb9e970e1109c3be391258d68111a67371240 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-04-25 19:39:14 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-04-25 19:40:14 +0000 app-eselect/eselect-rust: keyword 20210703 for ~s390 Bug: https://bugs.gentoo.org/769446 Signed-off-by: Sam James <sam@gentoo.org> app-eselect/eselect-rust/eselect-rust-20210703.ebuild | 4 ++-- profiles/arch/s390/package.mask | 1 + profiles/arch/s390/s390x/package.mask | 1 + 3 files changed, 4 insertions(+), 2 deletions(-)