summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* dev-lang/rust: add 1.83.0Arthur Zamarin2024-12-013-0/+751
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: -r100: add postinst workaround for --keep-goingMatt Jolly2024-11-258-0/+296
| | | | | | | | | | | | A bug in Portage's --keep-going option can cause it to fail to uninstall non-slotted Rust files when resuming an interrupted upgrade. This results in a broken Rust installation, preventing compilation and requiring manual intervention. We can work around this by deleting duplicate Rust libraries in postinst. Bug: https://bugs.gentoo.org/943308 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: Drop patch that stops setting CMAKE_ASM_COMPILER for bundled LLVMJames Le Cuirot2024-11-221-1/+0
| | | | | | | | | | | It is necessary to set CMAKE_ASM_COMPILER when cross-compiling, otherwise the ASM compiler gets detected with the wrong tuple. The patch was added because the build previously complained that CMAKE_ASM_COMPILER was unused, but that no longer seems to be the case, at least since 1.82. This was tested with a cross and a native build. Bug: https://bugs.gentoo.org/933382 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* dev-lang/rust: Set PKG_CONFIG and OPENSSL variables with ESYSROOT and not ROOTJames Le Cuirot2024-11-227-35/+49
| | | | | | | This requires moving this code from pkg_setup to src_configure because ESYSROOT is not valid in the former. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* dev-lang/rust: libexec-${PV} symlink requires USE=rust-analyzerMatt Jolly2024-11-187-20/+14
| | | | | | | | | | | | | | | | Until 1.72.0 `cargo-credential-1password` was installed in `/usr/lib/rust/${PV}/libexec`, and we were able to unconditionally symlink that for eselect-rust to use. This is no longer the case and most of the time users end up with a broken symlink for each rust slot in /usr/lib/rust. Gate the symlink creation with the appropriate USE and conditionally add `/usr/lib/rust/libexec` to the eselect-rust provider config. Closes: https://bugs.gentoo.org/915403 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: drop demangler for 1.80.1Matt Jolly2024-11-171-2/+0
| | | | | | | | | | | While this was supposed to be dropped from 1.81.0, however it appears to have snuck into 1.80.1. Since the `profiler` USE was dropped this has actually been noticed. Closes: https://bugs.gentoo.org/943543 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: comment out i686 sed in 1.82.0-r100 tooSam James2024-11-121-1/+1
| | | | | | | This got lost when slotting Rust when rebasing the PR, i.e. let's reapply 9d39168d8ec3776067bd68226243abe050ad666a. Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: cleanup leftover USE=system-bootstrapSam James2024-11-126-6/+6
| | | | | | | Followup to 349e9c05f6e7b9ee98f700c72f8023d1d3f61223. Bug: https://bugs.gentoo.org/943144 Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust{,-bin}: update GDB/LLDB postinst messageMatt Jolly2024-11-128-16/+16
| | | | | | | | | | dev-lang/rust was never properly updated and refers to scripts as a singular script. dev-lang/rust-bin was inconsistent with dev-lang/rust; never mentioning LLDB (or doing checks for either). Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: drop USE=system-bootstrapMatt Jolly2024-11-128-445/+26
| | | | | | | | | | | | | | | | | | | | | To be consistent with other ecosystems (e.g. Ada, Go), we can take advantage of the new Rust eclass (and some earlier prep work on USE=system-bootstrap) to completely remove that build path. This isn't a big change; dev-lang/rust without system-bootstrap would previously download its own bootstrap binary (same as rust-bin) instead of depending on dev-lang/rust-bin as appropriate. dev-lang/rust will now always receive an `||` dependency which ensures that an appropriate dev-lang/rust{,-bin} is available on the system to do any required bootstrapping. This will reduce Rust maintenance overhead, and make it more transparent to users that a Rust binary is required to bootstrap rust. Closes: https://bugs.gentoo.org/943144 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: use rust.eclass for USE=system-bootstrapMatt Jolly2024-11-128-357/+75
| | | | | | | | | | | | | | | | | | | | Take advantage of rust.eclass for dependency generation and appropriate bootstrap slot selection. Between the PATH manipulation that the eclass performs and the exported `RUSTC` we should see significantly more consistent bootstraps. Without this change `eselect-rust` would determine which `rustc` to run, resulting in build failures if an incorrect Rust was selected (which is nearly always in the age of slotted Rust). This is also one step towards removing USE=system-bootstrap entirely; now that we can reliably (and trivially) select appropriate slots for both dev-lang/rust and dev-lang/rust-bin we'll shortly be able to avoid downloading bootstrap bins at all. Bug: https://bugs.gentoo.org/943144 Closes: https://bugs.gentoo.org/943145 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: update DEPENDMatt Jolly2024-11-098-8/+8
| | | | | | | | `LLVM_DEPEND` is actually an array so we need to expand it else we only get the first element. Closes: https://bugs.gentoo.org/943131 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: *-r100 fix build with USE=system-llvmMatt Jolly2024-11-098-8/+8
| | | | | | | This path still used legacy llvm eclass get_llvm_prefix calls that included a slot. This is not supported by llvm-r1. Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: tweak blockersSam James2024-11-098-64/+16
| | | | | | | | | | * Use just :0 to simplify and shorten the blockers. By doing this, we also cover upgrading from older versions than those listed too. * Include dev-lang/rust-bin too. Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust{,-bin}: port to llvm-r1 and slot (-r100)Matt Jolly2024-11-098-0/+6150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Port to llvm-r1 to gain the fancy new `llvm_slot_{x}` USE flags which we use in the rust eclass to force a closer dependency on specific LLVM slots. Since Rust in Gentoo is only ever built against the one LLVM slot we are able to simplify the LLVM logic in the Rust ebuilds and use our knowledge of the LLVM -> Rust version mapping to enable slots for dev-lang/rust in a usable manner. Since Rust is now slotted and not managed entirely by eselect-rust each slot needs to be added to LDPATH. We also drop the `profiler` USE as it's inconsistent with what upstream ship by default and casues issues where other package's build systems assume that it exists. This commit also introduces dev-lang/rust-common which handles bash completions for slotted Rust. dev-lang/rust-bin: `LLVM_OPTIONAL` is used as we don't need to consume LLVM, we really just want the free IUSE. Closes: https://bugs.gentoo.org/941146 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* dev-lang/rust: Remove i586 sedIan Jordan2024-11-061-1/+2
| | | | | | | | This was left in by mistake and requires a second patch which is not ready for primetime at this moment. Signed-off-by: Ian Jordan <immoloism@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39192 Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Lower x86 baseline for no sse2 supportIan Jordan2024-11-032-1/+52
| | | | | | | | | | 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>
* dev-lang/rust: Stabilize 1.81.0 sparc, #941636Arthur Zamarin2024-10-251-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 ppc64, #941636Arthur Zamarin2024-10-241-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 ppc, #941636Arthur Zamarin2024-10-241-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: add 1.82.0, compress man pagesArthur Zamarin2024-10-182-0/+814
| | | | | Closes: https://bugs.gentoo.org/922740 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 arm, #941636Arthur Zamarin2024-10-171-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 arm64, #941636Arthur Zamarin2024-10-171-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 x86, #941636Arthur Zamarin2024-10-171-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.81.0 amd64, #941636Arthur Zamarin2024-10-171-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: backport llvm patches for gcc-15Matoro Mahri2024-10-124-0/+77
| | | | | | | | | | 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>
* dev-lang/rust: drop obsolete rust-demangler bits from 1.81.0Sam James2024-09-181-5/+0
| | | | | | | | | | | | | This was dropped in upstream commit fd4fe7d129cac2b7a0668847117775ee23031771. See https://github.com/rust-lang/rust/pull/125880. rust-demangler is no more. Note that we keep USE=profiler as it still seems to be used for other bits like the profiling runtime. Bug: https://bugs.gentoo.org/939669 Closes: https://bugs.gentoo.org/939701 Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: remove unused patchesMichael Mair-Keimberger2024-09-152-62/+0
| | | | | | 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>
* dev-lang/rust: add 1.81.0Arthur Zamarin2024-09-142-0/+817
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 amd64, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 ppc64, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 ppc, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 x86, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 sparc, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 arm, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Stabilize 1.80.1 arm64, #939600Arthur Zamarin2024-09-141-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: drop 1.73.0, 1.76.0-r1, 1.78.0Arthur Zamarin2024-09-104-2424/+0
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Drop 1.71.0Randy Barlow2024-09-022-750/+0
| | | | | | Bug: https://bugs.gentoo.org/911685 Signed-off-by: Randy Barlow <randy@electronsweatshop.com> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: dekeyword mips for older versionArthur Zamarin2024-08-266-6/+6
| | | | | | To match the supported keywords of rust-bin Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: Add 1.80.1Randy Barlow2024-08-142-0/+817
| | | | | Signed-off-by: Randy Barlow <randy@electronsweatshop.com> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 ppc64, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 ppc, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 sparc, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 arm64, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 arm, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 x86, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: Stabilize 1.79.0 amd64, #936071Sam James2024-07-231-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dev-lang/rust: add patch to disable setting CMAKE_ASM_COMPILERMatoro Mahri2024-07-042-0/+19
| | | | | | | | | | | 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>
* dev-lang/rust: fix cross compilation for muslArthur Zamarin2024-06-271-0/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* dev-lang/rust: add 1.79.0Anna (navi) Figueiredo Gomes2024-06-252-0/+817
| | | | | Signed-off-by: Anna (navi) Figueiredo Gomes <navi@vlhl.dev> Signed-off-by: Sam James <sam@gentoo.org>