Bruce Leidl
e20e601129
Updated Recipes: gcr4 3.92 -> 4.0.0 geoclue 2.5.7 -> 2.7.0 gjs 1.73.2 -> 1.77.90 gnome-backgrounds 42.0 -> 45.0 gnome-control-center 43.0 -> 45.0 gnome-desktop 43.rc -> 44.0 gsettings-desktop-schema 43.0 -> 45.0 libblockdev 2.26 -> 2.28 libgweather4 4.0.0 -> 4.2.0 libnma 1.8.38 -> 1.10.6 mozjs 102 -> 115 nss 3.64 -> 3.74 ovmf 202205 -> 202211 New recipes: appstream 0.16.3 libei 1.1.0 libxmlb 0.3.14 tecla 45.0 webm/libvpx 1.13 Recipes updated to replace poky recipes with insufficient version: glib-2.0 2.78.0 gtk+/gtk+3 3.24.38 gtk+/gtk4 4.12.1 icu 73_2 wayland/wayland 1.22.0 wayland/wayland-protocols 1.32 wayland/libinput 1.24.0 libadwaita 1.4.0
67 lines
2.4 KiB
Diff
67 lines
2.4 KiB
Diff
From fc2afb92f7be4eba7b65bb35859979e02b8f4ada Mon Sep 17 00:00:00 2001
|
|
From: Alexander Kanavin <alex@linutronix.de>
|
|
Date: Fri, 1 Oct 2021 13:02:17 +0200
|
|
Subject: [PATCH] rust.configure: do not try to find a suitable upstream target
|
|
|
|
OE is using custom targets and so this is bound to fail.
|
|
|
|
Upstream-Status: Inappropriate [oe-core specific]
|
|
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
|
|
|
|
---
|
|
build/moz.configure/rust.configure | 34 ++----------------------------
|
|
1 file changed, 2 insertions(+), 32 deletions(-)
|
|
|
|
diff --git a/build/moz.configure/rust.configure b/build/moz.configure/rust.configure
|
|
index 7a2fd1ae70..e11f13b253 100644
|
|
--- a/build/moz.configure/rust.configure
|
|
+++ b/build/moz.configure/rust.configure
|
|
@@ -486,33 +486,7 @@ def assert_rust_compile(host_or_target, rustc_target, rustc):
|
|
def rust_host_triple(
|
|
rustc, host, compiler_info, rustc_host, rust_supported_targets, arm_target
|
|
):
|
|
- rustc_target = detect_rustc_target(
|
|
- host, compiler_info, arm_target, rust_supported_targets
|
|
- )
|
|
- if rustc_target != rustc_host:
|
|
- if host.alias == rustc_target:
|
|
- configure_host = host.alias
|
|
- else:
|
|
- configure_host = "{}/{}".format(host.alias, rustc_target)
|
|
- die(
|
|
- dedent(
|
|
- """\
|
|
- The rust compiler host ({rustc}) is not suitable for the configure host ({configure}).
|
|
-
|
|
- You can solve this by:
|
|
- * Set your configure host to match the rust compiler host by editing your
|
|
- mozconfig and adding "ac_add_options --host={rustc}".
|
|
- * Or, install the rust toolchain for {configure}, if supported, by running
|
|
- "rustup default stable-{rustc_target}"
|
|
- """.format(
|
|
- rustc=rustc_host,
|
|
- configure=configure_host,
|
|
- rustc_target=rustc_target,
|
|
- )
|
|
- )
|
|
- )
|
|
- assert_rust_compile(host, rustc_target, rustc)
|
|
- return rustc_target
|
|
+ return rustc_host
|
|
|
|
|
|
@depends(
|
|
@@ -522,11 +496,7 @@ def rust_host_triple(
|
|
def rust_target_triple(
|
|
rustc, target, compiler_info, rust_supported_targets, arm_target
|
|
):
|
|
- rustc_target = detect_rustc_target(
|
|
- target, compiler_info, arm_target, rust_supported_targets
|
|
- )
|
|
- assert_rust_compile(target, rustc_target, rustc)
|
|
- return rustc_target
|
|
+ return target.alias
|
|
|
|
|
|
set_config("RUST_TARGET", rust_target_triple)
|