summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/rust/rust-source.inc
Commit message (Collapse)AuthorAgeFilesLines
* rust: update 1.67.1 -> 1.68.1Alexander Kanavin2023-04-041-1/+1
| | | | | | | | | | | | | Rebase patches; one of the vendored crossbeam versions has been removed upstream, and so crossbeam_atomic.patch is adjusted accordingly. Replace getrandom-open64.patch with a backport. (From OE-Core rev: f5accb4fae49342cbec21718ae7a427615bfcedd) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.67.0 -> 1.67.1Alexander Kanavin2023-02-201-1/+1
| | | | | | | | (From OE-Core rev: d80c1e0270cdb35a29863eefaa5a8be2a2841631) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Upgrade 1.66.1 -> 1.67.0Alex Kiernan2023-01-311-1/+1
| | | | | | | | | | | | | | | | | Disable ZStd to avoid needing libzstd in llvm (mirrors zlib disable). Generate complete list of rust-snapshot artefacts from src/stage0.json. Drop clippy-driver reproducibility change as the code is gone from upstream. Release notes: https://releases.rs/docs/1.67.0/ License-Update: Unicode-TOU text added (already in our license string) (From OE-Core rev: 4900e0c5cb8a092a1d77d4f26249afa59b241da6) 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>
* rust: Upgrade 1.66.0 -> 1.66.1Alex Kiernan2023-01-151-1/+1
| | | | | | | | | | | Changes: Added validation of SSH host keys for git URLs in Cargo (CVE-2022-46176) (From OE-Core rev: 3d31afc5666eda95032d0be47ff815859550a65f) 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>
* rust: Merge all rustc-source patches into rust-source.incAlex Kiernan2023-01-121-12/+10
| | | | | | | | | | | | 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>
* rust: Fix build with 64bit time_tKhem Raj2023-01-061-0/+1
| | | | | | | | | | | | | The vendored copy of zlib undefines _FILE_OFFSET_BITS when _LARGEFILE64_SOURCE is defined and enabling 64bit time_t requires 64bit off_t ( _FILE_OFFSET_BITS=64 ), therefore remove this from the zlib module (From OE-Core rev: 73e56624e815c52308a81852430a8bb050a0fc58) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust,libstd-rs: Fix build with latest muslKhem Raj2022-12-311-0/+5
| | | | | | | | | | newer musl do not provide lfs64 functions anymore since off_t is always 64bit on musl using normal functions would suffice (From OE-Core rev: f01b2ab83068e4d7f263c31dca2a3fa9ef77a98e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Do not use open64 on musl in getrandom crateKhem Raj2022-12-311-0/+1
| | | | | | | | | LFS64 functions are deprecated in latest musl (From OE-Core rev: 3b63303c62f9d50d835096602f9e09669779fa3e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Move musl-x86 fix for `__stack_chk_fail_local` to rust-sourceAlex Kiernan2022-12-281-0/+5
| | | | | | | | | | Any consumer of rust-source (potentially) needs this, so move to rust-source.inc (From OE-Core rev: 3c88cf98361a8f1c6f5183cc8887cccfad9d08ba) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Enable building rust from stable, beta and nightly channelsAlejandro Hernandez Samaniego2022-12-211-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rust follows the train release model via the stable, beta and nightly channels, by default we build rust from the stable channel, however there are certain features which are only available in the beta or nightly channels. Make these channels available by setting a RUST_CHANNEL variable which defaults to stable making this change transparent to the user. The snapshot version used by rust during its compilation wont necessarily match the version being built, specially if were building from an unstable channel, to avoid confusion rename this to SNAPSHOT_VERSION and use RUST_VERSION for the version to be built, which is automatically defined to PV. Append -beta or -nightly to rusts PV for signature awareness. It is important to note that this does not build rust from the beta/nightly published tarball (which today build rust v1.67.0 and v1.68.0 respectively), instead this builds rust from the current selected version (1.66.0) and enables the beta/nightly features for that version. Setting the variable RUST_CHANNEL=nightly results in the following: $ rustc -Vv rustc 1.66.0-nightly (From OE-Core rev: 807a52686682d0d0a151ea3dadd99880feb67cc0) Signed-off-by: Alejandro Hernandez Samaniego <alejandro@enedino.org> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.65.0 -> 1.66.0Alex Kiernan2022-12-171-3/+2
| | | | | | | | | | | | | | Drop backported patch ENOTSUP constant for riscv32/musl. Release notes: https://blog.rust-lang.org/2022/12/15/Rust-1.66.0.html License-Update: Upstream has added Unicode Terms of Use license (Unicode-TOU). (From OE-Core rev: e6a9e1ea7be842dcde109e952fbc7dc08d1577a2) Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.64.0 -> 1.65.0Alex Kiernan2022-11-071-1/+1
| | | | | | | | | | | Release notes: https://blog.rust-lang.org/2022/11/03/Rust-1.65.0.html (From OE-Core rev: fa8890188e8971a5707bae1504cb010b54ed3cae) 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>
* rust: update 1.63.0 -> 1.64.0Alex Kiernan2022-10-261-1/+1
| | | | | | | | | | | Release notes: https://blog.rust-lang.org/2022/09/22/Rust-1.64.0.html (From OE-Core rev: 1d81fb264580b96c405075fcfd2a82a6f74b9630) Signed-off-by: Alex Kiernan <alexk@zuma.ai> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Fix crossbeam-utils for arches without atomicsRichard Purdie2022-08-311-0/+1
| | | | | | | | | | | crossbeam-utils tries to use the triplet to look up whether the target supports various forms of atomics. We use TARGET_VENDOR and not "-unknown" in the target case which means this fails and breaks platforms like mips and powerpc 32 bit. Add a patch to handle TARGET_VENDOR in this case. (From OE-Core rev: 5d8c01dfed4c82fcc5d504c728a51fb98a262300) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Fix build failure on riscv32Khem Raj2022-08-311-1/+3
| | | | | | | | | | | | | Latest rust has started using ENOTSUP define, which is not available in the older libc that current release of compiler is using therefore backport the needed patch. Eventually when vendored version of libc bumps to 1.33+ we should not need this patch. (From OE-Core rev: 097e38f28990229c3f54f4e6cb74ca8be0b806e6) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update from 1.62.1 to 1.63.0Randy MacLeod2022-08-311-1/+1
| | | | | | | | | | | | | | | Release notes: https://blog.rust-lang.org/2022/08/11/Rust-1.63.0.html This is a standard upgrade aside from the path for the stage2 tools binaries (clippy, et.al.) changing. (From OE-Core rev: 9f390accf5fd174c430928cf841728d0456fc1b7) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.62.0 -> 1.62.1Alexander Kanavin2022-08-141-1/+1
| | | | | | | | (From OE-Core rev: 6baa224158f40b9754c3f10e11966d02e1337ae7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Work around reproducibility issuesRichard Purdie2022-08-081-0/+3
| | | | | | | | | | | | Add a patch which removes the sections of code which encode buildpaths. Whilst not ideal, the patches at least show where the problematic data is coming from and should allow more focused work to resovle it by someone who has a better understanding of rust and what this code is doing. It does look unlikely we actually need this code in our usecases anyway. (From OE-Core rev: c08c522fc29445aef0c64f0dd8df8a3531c04afa) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.60.0 -> 1.62.0Alexander Kanavin2022-07-081-1/+1
| | | | | | | | | | | | | Drop the two libstdc patches as they've finally appeared upstream. Disable the use of libstdc++.a from the host distributions, as it results in cross-distro contamination in rust-native. (From OE-Core rev: 94760bc118952160865352c10ca7693680b5ce7e) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.59.0 -> 1.60.0Pgowda2022-04-271-1/+1
| | | | | | | | | | | | | | Rust has been upgraded to rust-1.60.0 that uses LLVM 14. Please refer the following link for more detailed features. https://blog.rust-lang.org/2022/04/07/Rust-1.60.0.html https://github.com/rust-lang/rust/blob/master/RELEASES.md (From OE-Core rev: 786a9a66486cf179ee4c9e295569fcd8c37fef78) Signed-off-by: pgowda <pgowda.cve@gmail.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.58.1 -> 1.59.0Alexander Kanavin2022-03-091-1/+1
| | | | | | | | | Drop libstd-rs patches as they're merged upstream. (From OE-Core rev: 05f4a09899aa8dbb22ef1adb494abac41d5b96b7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.58.0 -> 1.58.1Alexander Kanavin2022-02-011-1/+1
| | | | | | | (From OE-Core rev: 855ec0af1b3c7c2664e68ac89cad839d480c43db) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.57.0 -> 1.58.0Alexander Kanavin2022-01-201-1/+1
| | | | | | | (From OE-Core rev: 43895e2967b2c80f4ee353b33ffe422ea7590ff1) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.56.1 -> 1.57.0Alexander Kanavin2021-12-081-1/+1
| | | | | | | (From OE-Core rev: 295b9d51bad0b0da3ba9acec875972bf5e5ca4d7) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.56.0 -> 1.56.1Alexander Kanavin2021-11-111-1/+1
| | | | | | | | | | | | This update includes fixes for the 'trojan source' vulnerability: https://blog.rust-lang.org/2021/11/01/Rust-1.56.1.html Drop two unused patches. (From OE-Core rev: 5ff0b0d8c6c37ebf916062f03a378fe0e34b1c53) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: Upgrade to 1.56.0Khem Raj2021-10-231-1/+1
| | | | | | | | | | | | | | | This is latest major release, changes are here [1] Forward port libstd-rs patches and refresh musl/rv64 port [1] https://github.com/rust-lang/rust/releases/tag/1.56.0 (From OE-Core rev: 183204cbc70a4ef418b16df48bc7eb6e3a75a114) Signed-off-by: Khem Raj <raj.khem@gmail.com> Cc: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: update 1.54.0 -> 1.55.0Alexander Kanavin2021-10-141-1/+1
| | | | | | | | (From OE-Core rev: a21705c33a6a69e9a625b8a75d76b76bd078aba2) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: drop PV from include file namesAlexander Kanavin2021-10-141-0/+1
| | | | | | | | | | | This complicates (semi) automated upgrades, and isn't necessary as we carry only a single version of the toolchain. (From OE-Core rev: f7a6b23d99fba5855cfb34788199877a14206293) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: fix upstream version checksAlexander Kanavin2021-09-011-0/+3
| | | | | | | (From OE-Core rev: e2e87d82ad1ec071077f29613e2e568196912daa) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
* rust: initial merge of most of meta-rustRandy MacLeod2021-08-261-0/+3
In the meta-rust repo at commit: 448047c Upgrade to 1.54.0 (#359) Make the required directories: mkdir ../oe-core/meta/recipes-devtools/rust mkdir ../oe-core/meta/recipes-devtools/cargo mkdir ../oe-core/meta/recipes-example and then: cp recipes-devtools/rust/* ../oe-core/meta/recipes-devtools/rust cp recipes-devtools/cargo/* ../oe-core/meta/recipes-devtools/cargo cp lib/crate.py ../oe-core/meta/lib cp recipes-example/* ../oe-core/meta/recipes-example cp conf/distro/include/rust_* ../oe-core/meta/conf/distro/include/ cp classes/* ../oe-core/meta/classes/ cp recipes-core/packagegroups/packagegroup-rust-cross-canadian.bb ../oe-core/meta/recipes-core/packagegroups (From OE-Core rev: 3ed57578cca93ff1ba4e0bf3f25566e10659a2f9) Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>