summaryrefslogtreecommitdiff
path: root/dev-lang/rust/files
AgeCommit message (Collapse)Author
2025-07-29dev-lang/rust: move patches from files/ to git repoMatt Jolly
Add reminder to ebuild to update the git repo and make a new tag as required instead of using filesdir: that's how we end up exceeding the limit; things are very rarely cleaned up here! Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-06-16dev-lang/rust: fix building '+wasm' on clang/lld system on 1.87.0Joonas Niilola
- sync changes from 1.86.0. Bug: https://bugs.gentoo.org/953956 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2025-06-10dev-lang/rust: fix building '+wasm' on clang/lld system on 1.86.0Joonas Niilola
Closes: https://bugs.gentoo.org/953956 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2025-06-04dev-lang/rust: stop using FILESDIRMatt Jolly
files/ has been too big for a while now. Instead use the rust-patches repository that was created to manage these patches. No revbumps required - they were either done beforehand when we dropped a bad patch _or_ are not required as the only additions are backported build-time fixes (done in previous commits). Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-06-04dev-lang/rust: add GCC 15 patches to older RustsMatt Jolly
Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-06-04dev-lang/rust: drop i586 baseline patchMatt Jolly
Rust upstream have identified issues with this patch relating to broken x87 handling in LLVM. Drop the patch and revbump all impacted revisions to ensure that this is cleaned up. Closes: https://www.github.com/gentoo/gentoo/pulls/40616 Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-05-17dev-lang/rust: ignore must_use noise in core_simdSam James
There's a bunch of must_use inside of portable_simd's core_simd crate which breaks the build. Just mark the relevant files with `allow(unused_attributes)` as there's loads of others, and I don't understand what a trait implementation actually is (as my understanding would mean there's really many others). This fixes building with RUSTFLAGS containing -C target-cpu=native where native is znver4 at least. Closes: https://bugs.gentoo.org/956018 Signed-off-by: Sam James <sam@gentoo.org>
2025-05-16dev-lang/rust: fix 1.86 build w/ RUSTFLAGS for znver*Sam James
Closes: https://bugs.gentoo.org/953109 Signed-off-by: Sam James <sam@gentoo.org>
2025-05-15dev-lang/rust*; sys-devel/rust-std: drop 1.71.1Matt Jolly
Rust 1.71.1 was retained due to games-strategy/ja2-stracciatella being unable to build with any later version of Rust. This package has been updated and as 1.71.1 is not in our bootstrap path it is safe to remove (and remove that slot from consideration in the eclass). Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-04-23dev-lang/rust: Drop unused patchMatt Jolly
We've been saying that we'll update this for years now. Clearly not happening; it can live in Git history. Signed-off-by: Matt Jolly <kangie@gentoo.org>
2025-02-25dev-lang/rust: Enable dynamic linking by default for musl targetsMichal Rostecki
We already have a similar patch for versions before 1.85.0. Change rust-lang/rust@9c37c14aa245, which got released in 1.85.0, made us think that such a patch is not needed anymore, but that's not true. Upstream didn't fix the existing individual targets yet. Bug: https://bugs.gentoo.org/950275 Signed-off-by: Michal Rostecki <vadorovsky@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/40752 Signed-off-by: Sam James <sam@gentoo.org>
2025-02-21dev-lang/rust: add `beta` and `nightly` channelsMatt Jolly
While currently unkeyworded, the intent is that eventually `beta` will only ever be keyworded `testing` (i.e. not stabilised) and will enable us to catch regressions on esoteric systems and report them upstream before a stable release is cut (and we have to do the same thing anyway, but with revbumps). All `beta` channel releases will share a single `SLOT`, i.e. 1.85.0_beta20250208 has `SLOT` 1.85.0, the same as the eventual `stable` release. Installing different `beta` releases side-by-side is not supported via Portage (and it's unlikely that they will stay in-tree for long once superseded). This enables straightforward `ver_test` comparisons to reflect a particular 'version'. `nightly` is a VCS sources ebuild template which will soon be the only way to get `nightly` Rust via Portage (from source, anyway, a followup commit will add a 'dev-lang/rust-bin' nightly binary release, using upstream infrastructure). Nightly can only be built by the `beta` channel release. Signed-off-by: Matt Jolly <kangie@gentoo.org> unkeyword betas Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-02-05dev-lang/rust: add bug reference to cross patchSam James
Bug: https://github.com/rust-lang/rust/issues/133629 Signed-off-by: Sam James <sam@gentoo.org>
2025-02-05dev-lang/rust: add 1.84.1Arthur Zamarin
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2025-01-19dev-lang/rust{,-bin}: drop 1.54.0Matt Jolly
This was re-added to the tree to support bootstrap from source, but has been superseded by 1.74.1 for this. Signed-off-by: Matt Jolly <kangie@gentoo.org>
2024-12-10dev-lang/rust: fix LLVM assertion with debug info in 1.83.0Joonas Niilola
- the patch is rebased for 1.83, but merged upstream to 1.84. Closes: https://bugs.gentoo.org/946158 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
2024-12-08dev-lang/rust: fix LLVM assertion with debug info in 1.82.0Sam James
Closes: https://bugs.gentoo.org/942013 Closes: https://bugs.gentoo.org/942884 Closes: https://bugs.gentoo.org/945486 Signed-off-by: Sam James <sam@gentoo.org>
2024-12-02dev-lang/rust{,-bin}: Add 1.54.0Matt Jolly
These are the the old ebuilds, updated to be slotted. Other changes: - `USE=rls` was dropped at some point, this is now hard-enabled. - As the LLVM is far too old for Gentoo we are using the bundled LLVM exclusively. In particular, dev-lang/rust:1.54.0 forms an important part of the upcoming 'bootstrap Rust without Rust binaries' path. Bug: https://bugs.gentoo.org/943706 Closes: https://github.com/gentoo/gentoo/pull/39464 Signed-off-by: Matt Jolly <kangie@gentoo.org>
2024-12-01dev-lang/rust: add 1.83.0Arthur Zamarin
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-11-03dev-lang/rust: Lower x86 baseline for no sse2 supportIan Jordan
This is a conditional patch which will lower Rust's baseline from Pentium4 to PentiumPro when cpu_flags_x86_sse2 isn't set. We can still use sse2 enabled bootstraps to build this so no further changes are required. Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/38792 Signed-off-by: Matt Jolly <kangie@gentoo.org>
2024-10-12dev-lang/rust: backport llvm patches for gcc-15Matoro Mahri
No revbump since this is build-only. Bug: https://bugs.gentoo.org/937164 Closes: https://bugs.gentoo.org/937525 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/38947 Signed-off-by: Sam James <sam@gentoo.org>
2024-09-15dev-lang/rust: remove unused patchesMichael Mair-Keimberger
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/38570 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2024-07-04dev-lang/rust: add patch to disable setting CMAKE_ASM_COMPILERMatoro Mahri
This is apparently not (or no longer) consumed by the bundled LLVM, which makes our QA complain. See: https://github.com/rust-lang/rust/commit/8c40426051a667673cdac9975f84cb6acd4e245f Closes: https://bugs.gentoo.org/933382 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/37405 Signed-off-by: Sam James <sam@gentoo.org>
2024-05-31dev-lang/rust: add 1.78.0Anna (navi) Figueiredo Gomes
Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev> Signed-off-by: Sam James <sam@gentoo.org>
2024-03-09dev-lang/rust: backport the loong code model change to 1.76.0WANG Xuerui
This is going to help building large apps such as www-client/chromium. Otherwise users will have to set RUSTFLAGS="-Ccode-model=medium" themselves, which is clumsy. Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
2024-02-17dev-lang/rust: remove unused patchMichael Mair-Keimberger
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Signed-off-by: David Seifert <soap@gentoo.org>
2024-02-11dev-lang/rust: rebase and re-apply musl dynamic linking patch for 1.75Violet Purcell
This somehow got lost in the 1.75 bump, but it is required for e.g. Firefox to compile on musl. Bug: https://bugs.gentoo.org/922880 Signed-off-by: Violet Purcell <vimproved@inventati.org> Closes: https://github.com/gentoo/gentoo/pull/35267 Signed-off-by: Sam James <sam@gentoo.org>
2024-02-10dev-lang/rust: crossdev supportMatoro Mahri
This allows Rust to be cross-compiled with crossdev. This is the last item for bug 680652, closing it. Note that this is for a foreign CHOST, i.e., CBUILD != CHOST == CTARGET. It does not cover the scenario for CBUILD == CHOST != CTARGET(s), which is tracked separately in bug 679878. A number of changes were required in order to make this work: * Force USE=system-bootstrap, since we cannot specify the appropriate boostrap URL based on CBUILD in SRC_URI * LLVm is compiled twice as part of the build, once for host and once for target. However, the rust build uses the same settings from config.toml for both builds. Therefore we cannot override flags nor default-linker and must let rust choose them for us. * Set the appropriate build/host variables which correspond to CBUILD/CHOST. This works as expected. * Set PKG_CONFIG and OPENSSL_*_DIR variables; cargo needs these for some reason. * Enforce that LLVM_TARGETS is set correctly for both host and target arches. This uses the new llvm_tuple_to_target function, introduced in https://github.com/gentoo/gentoo/pull/33996 * Lastly a small patch to rust source is needed, to tell it to link with system libz. It's unclear why this scenario was excluded under cross-compile conditions in upstream rust. See: https://paste.sr.ht/~kchibisov/682321e0fd4a3ece4a4b7b71591896f5cd3cdb22 Bug: https://bugs.gentoo.org/679878 Closes: https://bugs.gentoo.org/680652 Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/35246 Signed-off-by: Sam James <sam@gentoo.org>
2024-02-10dev-lang/rust: Add 1.75Randy Barlow
Bug: https://bugs.gentoo.org/922880 Signed-off-by: Randy Barlow <randy@electronsweatshop.com> Signed-off-by: Sam James <sam@gentoo.org>
2024-01-31dev-lang/rust: Drop old versionsMatt Turner
Signed-off-by: Matt Turner <mattst88@gentoo.org>
2023-10-02dev-lang/rust: Fix build with musl 1.2.4Violet Purcell
Rust 1.72.0 bumped the version of the libc crate required by the std to 0.2.146, which finally means that the stdlib no longer references LFS64 symbols. This commit make rust 1.72.0 bootstrap from 1.72.0, and adds a patch that bumps all remaining dependencies on libc <0.2.146 in vendored crates. Closes: https://github.com/gentoo/gentoo/pull/32488 Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
2023-08-04dev-lang/rust: add 1.71.1WANG Xuerui
Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
2023-07-20dev-lang/rust: backport lint-docs ld path revert for USE=docIonen Wolkens
Seems trivial enough, there may be follow ups needed for "download-rustc" but we don't use this as far as I can tell. Closes: https://bugs.gentoo.org/910595 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-07-20dev-lang/rust: add 1.71.0WANG Xuerui
Integrating an upstream revert for fixing broken bash completion file installation while at it. Bug: https://bugs.gentoo.org/910496 See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
2023-06-20dev-lang/rust: add 1.67.1 patch for sparc build failuresGeorgy Yakovlev
Bug: https://bugs.gentoo.org/893996 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2023-06-01dev-lang/rust: add 1.70.0, add USE=ltoGeorgy Yakovlev
Use fat lto, instead of thin-local, as it provides more benefit at expense of build time. No bundled llvm lto for now, as it requires full clang/lld toolchain. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2023-03-20dev-lang/rust: add 1.68.0Georgy Yakovlev
Bug: https://bugs.gentoo.org/901737 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2023-02-09dev-lang/rust: drop 1.67.0Georgy Yakovlev
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2023-02-08dev-lang/rust: fix 1.67.0 with both doc and wasm enabledGeorgy Yakovlev
Closes: https://bugs.gentoo.org/892513 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2023-01-28dev-lang/rust: fix 1.67.0 selfbootstrapGeorgy Yakovlev
Closes: https://bugs.gentoo.org/892369 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-12-19dev-lang/rust: drop 1.64.0-r1Georgy Yakovlev
Bug: https://bugs.gentoo.org/884513 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-11-13dev-lang/rust: drop 1.63.0-r1Georgy Yakovlev
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-11-04dev-lang/rust: add 1.65.0Georgy Yakovlev
pull slotted lld don't set doc-stage = 2 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-10-20dev-lang/rust: re-add 1.63.0-r1 for riscv onlyGeorgy Yakovlev
This partially reverts commit 53f2e771432ee61187a0154f96250372f92d7712. Issue: https://github.com/rust-lang/rust/issues/102155 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-10-13dev-lang/rust: drop 1.62.1, 1.63.0-r1Georgy Yakovlev
Bug: https://bugs.gentoo.org/870166 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-09-24dev-lang/rust: fix 1.64.0 build on sparcGeorgy Yakovlev
Issue: https://github.com/bytecodealliance/rustix/issues/408 Bug: https://bugs.gentoo.org/872725 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-09-23dev-lang/rust: drop 1.59.0, 1.60.0, 1.61.0-r2, 1.62.0Georgy Yakovlev
Bug: https://bugs.gentoo.org/870166 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-09-15dev-lang/rust: fix minor qa issuesGeorgy Yakovlev
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-09-14dev-lang/rust: revbump 1.63.0, add cargo security fixesGeorgy Yakovlev
Bug: https://bugs.gentoo.org/870166 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
2022-09-13dev-lang/rust: add 1.63.0Georgy Yakovlev
Bug: https://bugs.gentoo.org/868330 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>