summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* rust.eclass: Fix conditional for ensuring that RUST_MIN_VER is setMatt Jolly2024-11-091-1/+1
| | | | | | | The check was negated meaning that RUST_MIN_VER would only be set when it was not required. Signed-off-by: Matt Jolly <kangie@gentoo.org>
* rust.eclass: dependency strings: dev-lang/rust-bin firstMatt Jolly2024-11-091-2/+2
| | | | | | | | | | | | | | | | To better match the behaviour of the legacy virtual/rust package, update generated dependency strings so that dev-lang/rust-bin is output before dev-lang/rust. In the longer term it is expected that this will be reverted to the original order (prefer dev-lang/rust) as users that particularly care about this also have the option of selecting an appropriate binpkg. When selecting an installed Rust to use the non-bin package is still preferred over the -bin if both are installed. Signed-off-by: Matt Jolly <kangie@gentoo.org>
* rust.eclass: add missing `/` in `get_rust_path` for `binary` builds.Matt Jolly2024-11-091-1/+1
| | | | Signed-off-by: Matt Jolly <kangie@gentoo.org>
* toolchain.eclass: call rust_pkg_setup for USE=rustSam James2024-11-091-0/+2
| | | | | | Followup to 583a1a9ac556d01e1b0df6fe64e67cb646fa4118. Noticed by inspection. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain: inherit rust eclass for `RUST_DEPEND`Matt Jolly2024-11-091-2/+4
| | | | | | | `RUST_OPTIONAL` is set so that ebuilds must explicitly consume Rust features. Signed-off-by: Matt Jolly <kangie@gentoo.org>
* cargo: update for rust eclassMatt Jolly2024-11-091-18/+41
| | | | | | | | | | | | | | | | Inherit the rust eclass and take advantage of eclass features like `RUST_MIN_VER`. `RUST_DEPEND` was moved into the rust eclass in the previous commit and is now prowided via this mechanism `CARGO_OPTIONAL` now sets `RUST_OPTIONAL`, requiring ebuilds to set `RUST_DEPEND` manually and manage both cargo and rust eclass functions. Replace calls to `cargo` with the rust eclass exported ${CARGO}. Signed-off-by: Matt Jolly <kangie@gentoo.org>
* rust.eclass: Introduce new eclass for slotted RustMatt Jolly2024-11-091-0/+464
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The rust eclass acts similarly to the llvm eclass. It works with optional `RUST_{MAX,MIN}_SLOT` variables to enable ebuilds to trivially dependencies on appropriate Rust SLOTs. A `RUST_NEEDS_LLVM` variable can be set to have the eclass read `LLVM_COMPAT` and generate an llvm-r1-USE-gated dependency string. `RUST_USEDEP`, if set will be included in the dependency string and checks against installed packages. In either case these are stored in `RUST_DEPEND` for consumpion in the ebuild, and added to BDEPEND unless unless `RUST_OPTIONAL` is set. `RUST_DEPEND` will only ever include in-tree slots; there is no need to set `RUST_MIN_VER` if all in-tree versions are suitable. If `RUST_MIN_VER` is set to a value older than the oldest in-tree slot it is treated as if it is set to the lowest available. The default `rust_pkg_setup` will prefix the selected slot to `PATH` and export `RUSTC` and `CARGO` variables pointing to that slot for ease-of-use. This should prevent issues like: Bug: https://bugs.gentoo.org/907492 Bug: https://bugs.gentoo.org/942444 Signed-off-by: Matt Jolly <kangie@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20241106 snapshotMichał Górny2024-11-071-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshotsMichał Górny2024-11-071-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: further death hook fixesSam James2024-11-061-3/+3
| | | | | Fixes: d82f81cd65b9a668bd7940151e3fa876d4b0ce92 Signed-off-by: Sam James <sam@gentoo.org>
* java-ant-2.eclass: Remove dead eclassVolkmar W. Pogatzki2024-11-051-440/+0
| | | | | | | | | Bug: https://bugs.gentoo.org/268313 Bug: https://bugs.gentoo.org/318625 Bug: https://bugs.gentoo.org/539958 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/39180 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: remove reference to java-ant-2.eclassVolkmar W. Pogatzki2024-11-051-19/+0
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Florian Schmaus <flow@gentoo.org>
* toolchain.eclass: fix death hooks for JIT buildSam James2024-11-031-12/+15
| | | | | | | | We want to recover logs from that too. Bug: https://bugs.gentoo.org/942769 Fixes: 5bed0c77a1c54ac9297db4bb54af2e45c0558ec7 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: Add USE=time64 to 14.2.1_p20241026 and newerMichał Górny2024-11-011-0/+4
| | | | | Acked-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: filter -fdiagnostics-details tooSam James2024-10-301-1/+1
| | | | | | Same as 72d5ea56d41b7d5aac351854b7479f5c2c430c83, the flag got renamed. Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: remove undocumented unused functionVolkmar W. Pogatzki2024-10-301-4/+0
| | | | | | | | Removes java-pkg_set-current-vm Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38836 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* toolchain.eclass: filter -Warray-bounds if building DSam James2024-10-301-0/+5
| | | | | | Bug: https://gcc.gnu.org/PR116975 Closes: https://bugs.gentoo.org/940750 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/dotnet-pkg-base: add efsi function for running FSIMaciej Barć2024-10-301-0/+12
| | | | | | This will replace "edotnet fsi" as used in "app-shells/pwsh" package. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base: turn off DOTNET_NUGET_SIGNATURE_VERIFICATIONMaciej Barć2024-10-301-0/+3
| | | | | | | | | | Speeds up "dotnet restore". Especially can be noticed when running without network sandbox. Suggested by vimproved on IRC - thanks! See also: https://github.com/NuGet/Home/issues/13062 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20241029 snapshotMichał Górny2024-10-291-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20241023 snapshotMichał Górny2024-10-231-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: filter -fdiagnostics-explain-harderSam James2024-10-211-0/+4
| | | | | | | | This is an experimental flag not yet merged upstream but filtering it makes it easier to test with so it doesn't confuse older unpatched (locally) GCCs. Signed-off-by: Sam James <sam@gentoo.org>
* qt6-build.eclass: extend -m* flags sanitizingIonen Wolkens2024-10-191-10/+24
| | | | | | | | | | | | | | | | | | | | | | | | A user on the forums reported a build failure with: `-march=znver4 -mavx512vp2intersect` On its own, there is no issue there (expanded from -march=native) but when Qt passes `-march=haswell` to build certain parts (e.g. avx2 bits for runtime detection regardless of what CHOST supports), it overrides znver4 and keeps -mavx512vp2intersect resulting in an incomplete set and then qsimd_p.h complains Do not plan to pursue this myself, but this specific issue could be improved upstream by passing -mavx2 and others rather than -march=haswell (this would also allow overriding a -mno-avx2 that we currently need to change), and/or ideally by making qsimd_p.h be able to deal with these configurations without #error. If problems keep piling up, could consider always filtering *all* -m{,no-}<instr> flags and doing x86-64-v* unconditionally. Albeit that'd still require maintaining a list of these not to filter unrelated -m* flags which could be important. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* cvs.eclass: New eclass variable ECVS_SSH_EXTRA_OPTSUlrich Müller2024-10-181-0/+12
| | | | | | This allows passing additional options to ssh. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Rewrite the ssh wrapper script in bashUlrich Müller2024-10-181-45/+17
| | | | | | | | | OpenSSH version 8.4 and later supports the SSH_ASKPASS_REQUIRE environment variable which allows to force the use of the SSH_ASKPASS program. This makes detaching the process from its controlling terminal (TIOCNOTTY ioctl) and setting the DISPLAY variable unnecessary. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cvs.eclass: Add local declarations and die statements throughoutUlrich Müller2024-10-181-68/+52
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ecm-common.eclass: Add missing dev-qt/qt{core,base}:[56] BDEPENDAndreas Sturmlechner2024-10-161-1/+9
| | | | | Closes: https://bugs.gentoo.org/941617 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* verify-sig.eclass: Add support for verifying sigstore signaturesMichał Górny2024-10-161-5/+49
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Error out on invalid method+function combosMichał Górny2024-10-161-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Refactor code to use extra_args for all typesMichał Górny2024-10-161-3/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ecm-common.eclass: Allow ebuilds to set/override cmake argsAndreas Sturmlechner2024-10-151-1/+5
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20241015 snapshotMichał Górny2024-10-151-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove code for old snapshotsMichał Górny2024-10-151-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Do not use stable ABI wheels in freethreadingMichał Górny2024-10-141-3/+10
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Support python3_13t (freethreading) targetMichał Górny2024-10-142-10/+11
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: get rid of python.eclass mentionAlexander Kurakin2024-10-141-4/+0
| | | | | | Signed-off-by: Alexander Kurakin <kuraga333@mail.ru> Closes: https://github.com/gentoo/gentoo/pull/38929 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: fix objcopy overwriting ukiAndrew Ammerlaan2024-10-101-1/+4
| | | | | | | | | | | From the manual: If you do not specify outfile, objcopy creates a temporary file and destructively renames the result with the name of infile. We don't want that. Unfortunately we cannot use /dev/null as dump, objcopy complains, so we dump it in T instead. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20241009 snapshotMichał Górny2024-10-091-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: canonicalize debug-print-function callsDavid Seifert2024-10-0858-402/+402
| | | | | Closes: https://github.com/gentoo/gentoo/pull/37652 Signed-off-by: David Seifert <soap@gentoo.org>
* eclass: standardize inherit guardDavid Seifert2024-10-0828-39/+39
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* xdg.eclass: drop support for EAPI 6David Seifert2024-10-081-6/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* xdg-utils.eclass: drop support for EAPI 5 and 6David Seifert2024-10-081-8/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* wrapper.eclass: drop support for EAPI 5 and 6David Seifert2024-10-081-6/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* webapp.eclass: drop support for EAPI 6David Seifert2024-10-081-12/+8
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* virtualx.eclass: drop support for EAPI 6David Seifert2024-10-081-10/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vim-spell.eclass: drop support for EAPI 6David Seifert2024-10-081-5/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vim-plugin.eclass: drop support for EAPI 6David Seifert2024-10-081-8/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vim-doc.eclass: drop support for EAPI 6David Seifert2024-10-081-8/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vdr-plugin-2.eclass: drop support for EAPI 6David Seifert2024-10-081-12/+10
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vcs-clean.eclass: drop support for EAPI 5 and 6David Seifert2024-10-081-5/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>