As part of the merging builds, installation of target.json was lost
causing `rustc` to fail on startup with:
error: Error loading target specification: Could not find specification for
target "aarch64-poky-linux-gnu". Run `rustc --print target-list` for a list of
built-in targets
We know the full target specification, so just install it directly
rather than using the glob approach from previously.
Fixes: b9b0cd99cdc7 ("rust: Enable nativesdk and target builds + replace
rust-tools-cross-canadian")
Signed-off-by: Alex Kiernan <[email protected]>
---
meta/recipes-devtools/rust/rust_1.65.0.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/recipes-devtools/rust/rust_1.65.0.bb
b/meta/recipes-devtools/rust/rust_1.65.0.bb
index dbf74cec8feb..b39f772c5fe1 100644
--- a/meta/recipes-devtools/rust/rust_1.65.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.65.0.bb
@@ -68,6 +68,9 @@ rust_do_install:class-target() {
chrpath -r "\$ORIGIN/../lib" ${D}${bindir}/$i
done
+ install -d ${D}${libdir}/rustlib/${RUST_HOST_SYS}
+ install -m 0644 ${WORKDIR}/rust-targets/${RUST_HOST_SYS}.json
${D}${libdir}/rustlib/${RUST_HOST_SYS}/target.json
+
chown root:root ${D}/ -R
rm ${D}${libdir}/rustlib/uninstall.sh
rm ${D}${libdir}/rustlib/install.log
--
2.39.0
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#174741):
https://lists.openembedded.org/g/openembedded-core/message/174741
Mute This Topic: https://lists.openembedded.org/mt/95708169/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-