summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust
diff options
context:
space:
mode:
authorAlex Kiernan <alex.kiernan@gmail.com>2023-01-07 09:48:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-12 23:08:58 +0000
commitcc9244ca70957cf1ed11ee987fc6496e3ea92567 (patch)
tree51b3b2d65a40431cf37d63cd9a63b367a38baa2a /meta/recipes-devtools/rust
parentd2410b591f3feb5264747b25ef0793516161d087 (diff)
downloadpoky-cc9244ca70957cf1ed11ee987fc6496e3ea92567.tar.gz
rust: Merge all rustc-source patches into rust-source.inc
With the dim-sum approach to patching we had the same patch applied in many places, but not all, so that there were no guarantees that we were actually building agaginst the same thing in all recipes. (From OE-Core rev: 550c273f38d8e6d2d431908023e213c6b018d7ed) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/rust')
-rw-r--r--meta/recipes-devtools/rust/cargo_1.66.0.bb8
-rw-r--r--meta/recipes-devtools/rust/files/hardcodepaths.patch (renamed from meta/recipes-devtools/rust/rust/hardcodepaths.patch)0
-rw-r--r--meta/recipes-devtools/rust/files/zlib-off64_t.patch (renamed from meta/recipes-devtools/rust/rust/zlib-off64_t.patch)0
-rw-r--r--meta/recipes-devtools/rust/rust-source.inc22
-rw-r--r--meta/recipes-devtools/rust/rust_1.66.0.bb3
5 files changed, 10 insertions, 23 deletions
diff --git a/meta/recipes-devtools/rust/cargo_1.66.0.bb b/meta/recipes-devtools/rust/cargo_1.66.0.bb
index f45f8f1e12..2b2394e898 100644
--- a/meta/recipes-devtools/rust/cargo_1.66.0.bb
+++ b/meta/recipes-devtools/rust/cargo_1.66.0.bb
@@ -14,14 +14,6 @@ LIC_FILES_CHKSUM = " \
14require rust-source.inc 14require rust-source.inc
15require rust-snapshot.inc 15require rust-snapshot.inc
16 16
17SRC_URI:append:class-target = "\
18 file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \
19 file://getrandom-open64.patch;patchdir=${RUSTSRC} \
20"
21
22# Used by crossbeam_atomic.patch
23export TARGET_VENDOR
24
25S = "${RUSTSRC}/src/tools/cargo" 17S = "${RUSTSRC}/src/tools/cargo"
26CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor" 18CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor"
27 19
diff --git a/meta/recipes-devtools/rust/rust/hardcodepaths.patch b/meta/recipes-devtools/rust/files/hardcodepaths.patch
index 178f354cf8..178f354cf8 100644
--- a/meta/recipes-devtools/rust/rust/hardcodepaths.patch
+++ b/meta/recipes-devtools/rust/files/hardcodepaths.patch
diff --git a/meta/recipes-devtools/rust/rust/zlib-off64_t.patch b/meta/recipes-devtools/rust/files/zlib-off64_t.patch
index 78c8a2a1fb..78c8a2a1fb 100644
--- a/meta/recipes-devtools/rust/rust/zlib-off64_t.patch
+++ b/meta/recipes-devtools/rust/files/zlib-off64_t.patch
diff --git a/meta/recipes-devtools/rust/rust-source.inc b/meta/recipes-devtools/rust/rust-source.inc
index bfb625fb36..6f1df4561b 100644
--- a/meta/recipes-devtools/rust/rust-source.inc
+++ b/meta/recipes-devtools/rust/rust-source.inc
@@ -1,21 +1,19 @@
1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" 1RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}"
2SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust"
3SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
4 2
5SRC_URI:append:class-target:pn-libstd-rs = "\ 3SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust \
6 file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=../.. \ 4 file://crossbeam_atomic.patch;patchdir=${RUSTSRC} \
5 file://hardcodepaths.patch;patchdir=${RUSTSRC} \
6 file://getrandom-open64.patch;patchdir=${RUSTSRC} \
7 file://0001-Do-not-use-LFS64-on-linux-with-musl.patch;patchdir=${RUSTSRC} \
8 file://zlib-off64_t.patch;patchdir=${RUSTSRC} \
7" 9"
8 10SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c"
9SRC_URI:append:class-target:pn-rust = " \
10 file://getrandom-open64.patch \
11 file://0001-Do-not-use-LFS64-on-linux-with-musl.patch \
12 file://zlib-off64_t.patch \
13 file://hardcodepaths.patch \
14 file://crossbeam_atomic.patch"
15SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch"
16 11
17RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" 12RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src"
18 13
14# Used by crossbeam_atomic.patch
15export TARGET_VENDOR
16
19UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" 17UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html"
20UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" 18UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src"
21 19
diff --git a/meta/recipes-devtools/rust/rust_1.66.0.bb b/meta/recipes-devtools/rust/rust_1.66.0.bb
index f1ec769aef..eba933dded 100644
--- a/meta/recipes-devtools/rust/rust_1.66.0.bb
+++ b/meta/recipes-devtools/rust/rust_1.66.0.bb
@@ -218,9 +218,6 @@ FILES:${PN} += "${libdir}/rustlib"
218FILES:${PN} += "${libdir}/*.so" 218FILES:${PN} += "${libdir}/*.so"
219FILES:${PN}-dev = "" 219FILES:${PN}-dev = ""
220 220
221# Used by crossbeam_atomic.patch
222export TARGET_VENDOR
223
224do_compile () { 221do_compile () {
225 rust_runx build --stage 2 222 rust_runx build --stage 2
226} 223}