]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
rust: build the default set of tools
authorAlexander Kanavin <alex@linutronix.de>
Tue, 21 May 2024 12:50:40 +0000 (14:50 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 28 May 2024 14:08:59 +0000 (15:08 +0100)
Setting it explicitly replaces rust's default choice which is rustdoc
(needed for example in selftests and otherwise expected to be present
in typical rust installations):

https://github.com/rust-lang/rust/blob/master/config.example.toml#L320

This addresses some of the rust selftest failures but not all. Help
is appreciate to restore the selftest.

Unfortunately, this also breaks rust reproducibility (or rather exposes
that it was never properly fixed, as explained here:
https://lists.openembedded.org/g/openembedded-core/message/199288
)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/reproducible.py
meta/recipes-devtools/rust/rust_1.75.0.bb

index 80e830136f76ea069c68d4de20cad2db08f7b9f6..97a9c3da908ed9314699c92463f3ac6348115edc 100644 (file)
@@ -16,6 +16,8 @@ import os
 import datetime
 
 exclude_packages = [
+       'rust-rustdoc',
+       'rust-dbg'
        ]
 
 def is_excluded(package):
index d5bc057a4501f7b8cb8ca9d93cdb0c1fbb9611d9..c66c14cc5a58fa45e5c699f7414918d5e6945769 100644 (file)
@@ -149,7 +149,6 @@ python do_configure() {
     config.add_section("build")
     config.set("build", "submodules", e(False))
     config.set("build", "docs", e(False))
-    config.set("build", "tools", ["rust-demangler",])
 
     rustc = d.getVar('RUSTC_BOOTSTRAP')
     config.set("build", "rustc", e(rustc))