From: Richard Purdie Date: Mon, 23 Aug 2021 12:30:48 +0000 (+0100) Subject: rust: Skip target recipe since it doesn't work X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~6923 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16c77c82ff6635b0180690ea117e2eff8fd63afb;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git rust: Skip target recipe since it doesn't work The target rust recipe is known not to work. Add a SkipRecipe entry for that so world builds don't include something known to be broken and hence give users a sensible message if they do try and build it rather than a build failure. Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/rust/rust_1.54.0.bb b/meta/recipes-devtools/rust/rust_1.54.0.bb index ee60c3e6f1e..e7d8d70c261 100644 --- a/meta/recipes-devtools/rust/rust_1.54.0.bb +++ b/meta/recipes-devtools/rust/rust_1.54.0.bb @@ -11,3 +11,10 @@ do_compile () { rust_do_install() { rust_runx install } + +python () { + pn = d.getVar('PN') + + if not pn.endswith("-native"): + raise bb.parse.SkipRecipe("Rust recipe doesn't work for target builds at this time. Fixes welcome.") +}