Skip to content

Commit c654f5c

Browse files
authored
Merge pull request meta-rust#376 from ColinFinck/rust-1.58.1
Import Rust 1.58.1 from openembedded-core, remove Rust 1.51.0
2 parents 4bde33e + 297dbb9 commit c654f5c

37 files changed

+260
-536
lines changed

recipes-devtools/cargo/cargo-1.51.0/0001-Disable-http2.patch

Lines changed: 0 additions & 28 deletions
This file was deleted.

recipes-devtools/cargo/cargo-1.51.0/riscv-march.patch

Lines changed: 0 additions & 73 deletions
This file was deleted.

recipes-devtools/cargo/cargo-1.51.0/rv64gc.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

recipes-devtools/cargo/cargo-cross-canadian_1.51.0.bb

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
require recipes-devtools/rust/rust-source.inc
2+
require recipes-devtools/rust/rust-snapshot.inc
3+
4+
FILESEXTRAPATHS:prepend := "${THISDIR}/cargo-${PV}:"
5+
6+
require cargo-cross-canadian.inc

recipes-devtools/cargo/cargo.inc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,23 @@ LIC_FILES_CHKSUM = " \
1414

1515
S = "${RUSTSRC}/src/tools/cargo"
1616
CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor"
17+
EXCLUDE_FROM_WORLD = "1"
1718

18-
inherit cargo
19+
inherit cargo pkgconfig
1920

2021
do_cargo_setup_snapshot () {
2122
${WORKDIR}/rust-snapshot-components/${CARGO_SNAPSHOT}/install.sh --prefix="${WORKDIR}/${CARGO_SNAPSHOT}" --disable-ldconfig
23+
# Need to use uninative's loader if enabled/present since the library paths
24+
# are used internally by rust and result in symbol mismatches if we don't
25+
if [ ! -z "${UNINATIVE_LOADER}" -a -e "${UNINATIVE_LOADER}" ]; then
26+
patchelf-uninative ${WORKDIR}/${CARGO_SNAPSHOT}/bin/cargo --set-interpreter ${UNINATIVE_LOADER}
27+
fi
2228
}
2329

2430
addtask cargo_setup_snapshot after do_unpack before do_configure
2531
do_cargo_setup_snapshot[dirs] += "${WORKDIR}/${CARGO_SNAPSHOT}"
32+
do_cargo_setup_snapshot[vardepsexclude] += "UNINATIVE_LOADER"
33+
2634

2735
do_compile:prepend () {
2836
export RUSTC_BOOTSTRAP="1"
@@ -42,8 +50,6 @@ do_install () {
4250
# Needed for pkg-config to be used
4351
export LIBSSH2_SYS_USE_PKG_CONFIG = "1"
4452

45-
BBCLASSEXTEND = "native nativesdk"
46-
4753
# When building cargo-native we don't have cargo-native to use and depend on,
4854
# so we must use the locally set up snapshot to bootstrap the build.
4955
BASEDEPENDS:remove:class-native = "cargo-native"

recipes-devtools/cargo/cargo_1.51.0.bb

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
require recipes-devtools/rust/rust-source-${PV}.inc
22
require recipes-devtools/rust/rust-snapshot-${PV}.inc
33
require cargo.inc
4-
4+
BBCLASSEXTEND = "native nativesdk"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
require recipes-devtools/rust/rust-source.inc
2+
require recipes-devtools/rust/rust-snapshot.inc
3+
require cargo.inc
4+
BBCLASSEXTEND = "native nativesdk"

recipes-devtools/rust/files/riscv-march.patch

Lines changed: 0 additions & 73 deletions
This file was deleted.

recipes-devtools/rust/files/rv64gc.patch

Lines changed: 0 additions & 37 deletions
This file was deleted.

recipes-devtools/rust/libstd-rs-1.51.0/0004-Update-1.51.0-checksums-for-modified-files.patch

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)