Summary: | dev-lang/rust-1.48.0: can't read src/librustc_target/spec/wasm32_base.rs | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Leonardo Neumann <leonardo> |
Component: | Current packages | Assignee: | Gentoo Linux bug wranglers <bug-wranglers> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gyakovlev, herrtimson, matej, rust |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Leonardo Neumann
2020-11-24 05:30:05 UTC
I can confirm this happens on my box, too. It is triggered by wasm USE-flag. The fix is to change one forgotten path in the ebuild: diff --git a/dev-lang/rust/rust-1.48.0.ebuild b/dev-lang/rust/rust-1.48.0.ebuild index 16a3d1da232..d89b0fa8404 100644 --- a/dev-lang/rust/rust-1.48.0.ebuild +++ b/dev-lang/rust/rust-1.48.0.ebuild @@ -213,7 +213,7 @@ src_configure() { if use system-llvm; then # un-hardcode rust-lld linker for this target # https://bugs.gentoo.org/715348 - sed -i '/linker:/ s/rust-lld/wasm-ld/' src/librustc_target/spec/wasm32_base.rs || die + sed -i '/linker:/ s/rust-lld/wasm-ld/' compiler/rustc_target/src/spec/wasm32_base.rs || die fi fi rust_targets="${rust_targets#,}" With this, src_configure passes for me. (but there is unrelated build error https://bugs.gentoo.org/756340) The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a6488f54984ce1068acba95416ae40f43d7e2b7 commit 4a6488f54984ce1068acba95416ae40f43d7e2b7 Author: Georgy Yakovlev <gyakovlev@gentoo.org> AuthorDate: 2020-11-24 17:31:50 +0000 Commit: Georgy Yakovlev <gyakovlev@gentoo.org> CommitDate: 2020-11-24 17:34:12 +0000 dev-lang/rust: fix wasm linker in 1.48.0 Closes: https://bugs.gentoo.org/756286 Package-Manager: Portage-3.0.10, Repoman-3.0.2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> dev-lang/rust/rust-1.48.0.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) thanks for catching, I will replace this sed with a patch bit later. |