summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* multibuild.eclass: Fix passing return value from variantsMichał Górny2023-11-231-1/+1
| | | | | | | | Move the misplaced return value saving into the variant loop, so that any non-successful return code is saved (as intended) rather than just the last one. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-autoconf.eclass: Add TC_AUTOCONF_ENVPREFIXArsen Arsenović2023-11-221-1/+8
| | | | | | | | This variable allows packages like autoconf-vanilla to adjust their priority in env.d concatenation. Signed-off-by: Arsen Arsenović <arsen@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-autoconf.eclass: accept arguments for src_configureSam James2023-11-221-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-autoconf.eclass: handle different PNSam James2023-11-221-2/+5
| | | | | | Prepare for autoconf-vanilla. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow further MIPS errata flagsSam James2023-11-211-3/+9
| | | | | | | | | | | | | | | | * We were missing 24k, r5900, vr4120, vr4130, sb1 [0]. * Chuck in -Wa,-mfix-loongson2f-nop while at it. The topic of -Wa,* is an interesting one, as we currently allow -Wl,*, so we should probably do the same for the assembler, but punt that to another time. Note that we use r5900 and -Wa,-mfix-loongson2f-nop for building stages... Prompted by discussion with immolo (see also fad75a344cbaada57ae490c3e8f88cdd5b35dadc). [0] https://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html#index-mfix-24k (and below) Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow -mfix-r5900 errata flag for MIPSSam James2023-11-211-1/+2
| | | | | | Reported by immolo. Signed-off-by: Sam James <sam@gentoo.org>
* eclass/golang-vcs.eclass: set up compile envThilo Fromm2023-11-201-1/+4
| | | | | | | | | | | This change calls go-env_set_compile_environment in golang-vcs's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit golang-vcs. Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33539 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* eclass/golang-vcs-snapshot.eclass: set up compile envThilo Fromm2023-11-201-1/+4
| | | | | | | | | | This change calls go-env_set_compile_environment in golang-vcs-snapshot's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit golang-vcs-snapshot. Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* eclass/go-module.eclass: export compile env in src_unpackThilo Fromm2023-11-201-1/+4
| | | | | | | | | | This change calls go-env_set_compile_environment in go-module's src_unpack to set up a sane compile environment early in the go build process. This un-breaks cross compiling of all golang ebuilds that inherit go-module. Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* eclass/go-env.eclass: add helper to set compile envThilo Fromm2023-11-201-0/+48
| | | | | | | | | | | | | | | | | | | | | | This change adds a helper function to explicitly set CC, CXX, and GOARCH, and carrying over CFLAGS, LDFLAGS and friends to CGO equivalents, to provide a minimal sane compile environment for Go. It enables Go builds to play nice with crossdev's wrappers for emerge/ebuild etc. Previously, Go ebuilds emitted binaries for the host architecture. For example, when running on an x86_64 host: emerge-aarch64-cross-linux-gnu foo will now correctly emerge Go package "foo" for aarch64 instead of x86_64. The eclass provides a single helper function go-env_set_compile_environment() intended to be called by other Go eclasses in an early build stage. Ebuilds may also explicitly call this function. Signed-off-by: Thilo Fromm <thilo.alexander@gmail.com> Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* haskell-cabal.eclass: Fix default_exposed_pkgshololeap2023-11-191-0/+1
| | | | | | | | | The array package has been available via dev-lang/ghc for years but was not included as a default for GHC_BOOTSTRAP_PKGS. This adds 'array' to default_exposed_pkgs. Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Silence pydevd warningsMichał Górny2023-11-191-0/+3
| | | | | | | | | Set `PYDEVD_DISABLE_FILE_VALIDATION` to silence warnings about frozen modules from dev-python/pydevd. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/33888 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Do not pass `-p no:*` w/ no autoloadingMichał Górny2023-11-191-23/+28
| | | | | | | | Modify `epytest` not to pass our plethora of `-p no:*` arguments when `PYTEST_DISABLE_PLUGIN_AUTOLOAD` is set. This is NFC since the plugins wouldn't be loaded anyway. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Do not pass `-p xdist` w/ PYTEST_PLUGINSMichał Górny2023-11-191-3/+7
| | | | | | | | Fix `epytest` with `EPYTEST_XDIST` not to pass a duplicate `-p xdist` when `xdist.plugin` is already present in `PYTEST_PLUGINS`. Otherwise, pytest will fail due to the plugin being loaded twice. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231119 snapshotMichał Górny2023-11-191-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dist-kernel-utils.eclass: set arch to kernel for installationAndrew Ammerlaan2023-11-181-1/+3
| | | | | | | | | | | Some kernel-install plugins may require locating files in the installed kernel source tree, on e.g. amd64 they will fail to do so if we do not use tc-arch-kernel. sys-kernel/dkms' kernel-install plugin is an example of a plugin that requires this fix. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-install.eclass: also cleanup uki.efi in postrmAndrew Ammerlaan2023-11-181-1/+1
| | | | | | | Nowadays the name of the unified kernel image is always uki.efi, not initrd.uefi. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* java-utils-2.eclass: record LIBDIR in package.envFlorian Schmaus2023-11-141-0/+3
| | | | | | Bug: https://bugs.gentoo.org/917326 Closes: https://github.com/gentoo/gentoo/pull/33821 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* toolchain-funcs.eclass: Add functions to get pointer size in bytesJames Le Cuirot2023-11-131-0/+14
| | | | | | | tc-get-ptr-size for CHOST and tc-get-build-ptr-size for CBUILD. Closes: https://bugs.gentoo.org/328401 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* ecm.eclass: Raise baseline Frameworks version (KFMIN) to 5.106.0Andreas Sturmlechner2023-11-131-3/+2
| | | | | | | | | | In ecm.eclass, this only affects BDEPENDs, and in practise every ebuild making use of KFMIN in RDEPEND will set their own minimum pre-inherit. Many KDE packages already require 5.101 at a minimum for new API and porting away from deprecated. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/dotnet-pkg-base.eclass: remove DOTNET_DATA and NUGET_DATAMaciej Barć2023-11-131-4/+0
| | | | | | they do not influence .NET build Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: mark OUTPUT_VARIABLEsMaciej Barć2023-11-131-0/+6
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: remove DOTNET_PKG_EXECUTABLE_PATHMaciej Barć2023-11-131-6/+4
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231111 snapshotMichał Górny2023-11-111-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove support for old snapshotsMichał Górny2023-11-111-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cuda.eclass: fix typoPacho Ramos2023-11-101-1/+1
| | | | Signed-off-by: Pacho Ramos <pacho@gentoo.org>
* dist-kernel-utils.eclass: drop workaround skipping dracut kernel-installAndrew Ammerlaan2023-11-101-14/+0
| | | | | | | | We have bumped the minimal version of dracut to 059-r4, this version contains the fixes to the kernel-install plugin we need to prevent the plugin from running again if the system is using uki's. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-install.eclass: bump minimal dracut versionAndrew Ammerlaan2023-11-101-1/+1
| | | | | | | 059-r4 contains the fixes to the kernel-install plugin that we need to be able to drop a workaround in dist-kernel-utils.eclass Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* git-r3.eclass: Inroducing EVCS_STORE_DIRS varSiddhanth Rathod2023-11-101-0/+10
| | | | | | | | | | | | ebuilds which calls git-r3_fetch multiple times for diffrent repos. While EGIT_DIR stores a single repo path, mapping all repos to such packages is currently unfeasible. Introducing EVCS_STORE_DIRS to address this limitation. See-Also: https://github.com/gentoo/gentoolkit/pull/33 Signed-off-by: Siddhanth Rathod <xsiddhanthrathod@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/33133 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* */*: move sys-kernel/installkernel-systemd-boot to ↵Andrew Ammerlaan2023-11-091-1/+1
| | | | | | | | | sys-kernel/installkernel-systemd This reflects better that we don't necessarily need the systemd bootloader to use the systemd kernel-install system. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* toolchain.eclass: restore graphite for USE=jit minimal buildSam James2023-11-091-1/+4
| | | | | | | | | | | | | | graphite (isl) might be used for the just-built GCC. It's easier to just respect USE=graphite for the USE=jit minimal build in case the user passes some graphite flags rather than try strip them out. (The build would fail otherwise as the just-built GCC, even with --disable-bootstrap for the JIT build, would be invoked as ./xgcc ... -fgraphite-identity ... and error out in configure.) Reported by ano on IRC. Signed-off-by: Sam James <sam@gentoo.org>
* acct-user.eclass: Warn when the user is removed from a groupUlrich Müller2023-11-081-0/+16
| | | | | Acked-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* toolchain.eclass: filter -Walloc-size for < GCC 14Sam James2023-11-081-0/+3
| | | | | | New in GCC 14. Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Add pytest-xdist dep if EPYTEST_XDIST is setMichał Górny2023-11-072-1/+6
| | | | | | | Make `distutils_enable_tests pytest` automatically add the `dev-python/pytest-xdist` dependency if `EPYTEST_XDIST` is set. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add EPYTEST_XDIST for epytestMichał Górny2023-11-071-0/+29
| | | | | | | | | Add an `EPYTEST_XDIST` variable that can be used to enable running the test suite in parallel via the dev-python/pytest-xdist plugin. This also includes user-facing `EPYTEST_JOBS` to control the job count independently of `MAKEOPTS`. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Refactor d_e_t to permit multiple test packagesMichał Górny2023-11-071-6/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Refactor `d_e_t unittest` (NFC)Michał Górny2023-11-071-9/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* add gcc:13 support for ada packagesAlfredo Tupone2023-11-061-11/+8
| | | | Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231104 snapshotMichał Górny2023-11-041-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-funcs.eclass: tc-ld-force-bfd: unset LD before calling tc-getLDMike Gilbert2023-11-041-4/+3
| | | | | | | | | | | | | | | | The previous logic would fail with common values of LD set by the user: LD="ld.lld" -> LD="ld.lld.bfd" LD="ld.gold" -> LD="ld.gold.bfd" LD="mold" -> LD="mold.bfd" It makes more sense to ignore the user's LD setting and use the default value given by tc-getLD. If the user doesn't have binutils installed, the "type -P" check will still fail and LD will be unaltered. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/tests: Remove obsolete/broken distutils-r1 testsMichał Górny2023-11-032-264/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod-r1.eclass: fix DEPMOD override for kernel 6.6Ionen Wolkens2023-11-011-2/+2
| | | | | | | Not necessary, but also change STRIP while at it for parity. Closes: https://bugs.gentoo.org/916587 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* Remove BROOT from VERIFY_SIG_OPENPGP_KEY_PATHMike Gilbert2023-10-312-2/+2
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* verify-sig.eclass: prepend BROOT to VERIFY_SIG_OPENPGP_KEY_PATHMike Gilbert2023-10-311-10/+27
| | | | | | | PMS does not allow use of BROOT in global scope, so move the BROOT logic into the relevant functions. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: depend on >=dev-util/meson-1.2.1Mike Gilbert2023-10-301-1/+1
| | | | | Bug: https://bugs.gentoo.org/916536 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain-funcs.eclass: add detection for arcMatoro Mahri2023-10-291-0/+3
| | | | | | | | | ARC is bi-endian. Assumes ARCH=arc. No plans to add profiles or keywords to official tree. Signed-off-by: Matoro Mahri <matoro_gentoo@matoro.tk> Closes: https://github.com/gentoo/gentoo/pull/33554 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: only pass -fno-harden-control-flow-redundancy for new ↵Sam James2023-10-271-3/+3
| | | | | | | | enough GCC too Even if it's OK for the stage1 compiler, it may not be later. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add -fno-harden-control-flow-redundancy to old-compiler ↵Sam James2023-10-271-3/+3
| | | | | | filter too Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow -fno-harden-control-flow-redundancy tooSam James2023-10-261-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: pass -fno-control-flow-redundancy, filter flags for older ↵Sam James2023-10-261-0/+12
| | | | | | | | | | | | | compilers too If we're *building* an older GCC, then these flags won't be supported later on during the boostrap process, so filter them out. Also, pass -fno-control-flow-redundancy given it makes the compiler unbearably slow (on a 3950x, it went from 2.5hours for pgo+lto+checking to 6+ hours) and it doesn't really benefit us there anyway. Signed-off-by: Sam James <sam@gentoo.org>