diff options
author | Alex Kiernan <alex.kiernan@gmail.com> | 2023-01-07 09:48:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-01-12 23:08:58 +0000 |
commit | cc9244ca70957cf1ed11ee987fc6496e3ea92567 (patch) | |
tree | 51b3b2d65a40431cf37d63cd9a63b367a38baa2a /meta/recipes-devtools/rust | |
parent | d2410b591f3feb5264747b25ef0793516161d087 (diff) | |
download | poky-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.bb | 8 | ||||
-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.inc | 22 | ||||
-rw-r--r-- | meta/recipes-devtools/rust/rust_1.66.0.bb | 3 |
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 = " \ | |||
14 | require rust-source.inc | 14 | require rust-source.inc |
15 | require rust-snapshot.inc | 15 | require rust-snapshot.inc |
16 | 16 | ||
17 | SRC_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 | ||
23 | export TARGET_VENDOR | ||
24 | |||
25 | S = "${RUSTSRC}/src/tools/cargo" | 17 | S = "${RUSTSRC}/src/tools/cargo" |
26 | CARGO_VENDORING_DIRECTORY = "${RUSTSRC}/vendor" | 18 | CARGO_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 @@ | |||
1 | RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" | 1 | RUST_VERSION ?= "${@d.getVar('PV').split('-')[0]}" |
2 | SRC_URI += "https://static.rust-lang.org/dist/rustc-${RUST_VERSION}-src.tar.xz;name=rust" | ||
3 | SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c" | ||
4 | 2 | ||
5 | SRC_URI:append:class-target:pn-libstd-rs = "\ | 3 | SRC_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 | 10 | SRC_URI[rust.sha256sum] = "0dc176e34fae9871f855a6ba4cb30fa19d69c5b4428d29281a07419c4950715c" | |
9 | SRC_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" | ||
15 | SRC_URI:append:class-nativesdk:pn-nativesdk-rust = " file://hardcodepaths.patch" | ||
16 | 11 | ||
17 | RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" | 12 | RUSTSRC = "${WORKDIR}/rustc-${RUST_VERSION}-src" |
18 | 13 | ||
14 | # Used by crossbeam_atomic.patch | ||
15 | export TARGET_VENDOR | ||
16 | |||
19 | UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" | 17 | UPSTREAM_CHECK_URI = "https://forge.rust-lang.org/infra/other-installation-methods.html" |
20 | UPSTREAM_CHECK_REGEX = "rustc-(?P<pver>\d+(\.\d+)+)-src" | 18 | UPSTREAM_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" | |||
218 | FILES:${PN} += "${libdir}/*.so" | 218 | FILES:${PN} += "${libdir}/*.so" |
219 | FILES:${PN}-dev = "" | 219 | FILES:${PN}-dev = "" |
220 | 220 | ||
221 | # Used by crossbeam_atomic.patch | ||
222 | export TARGET_VENDOR | ||
223 | |||
224 | do_compile () { | 221 | do_compile () { |
225 | rust_runx build --stage 2 | 222 | rust_runx build --stage 2 |
226 | } | 223 | } |