summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* toolchain.eclass: disable automagic CET for x86Sam James2024-09-191-1/+3
| | | | | | | | | | | | It's not supported on 32-bit kernels anyway. This got lost in b6bf005b843e3d6ee10aa1f088d93c4f89055cc6 when wiring up arm64. Bug: https://bugs.gentoo.org/916381 Closes: https://bugs.gentoo.org/939874 Fixes: b6bf005b843e3d6ee10aa1f088d93c4f89055cc6 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/tests: fix toolchain.sh tests by dropping old GCC supportSam James2024-09-191-17/+0
| | | | | | | | | eb49d171430cc2baffbf9d37493a78cc02b33fe2 dropped old GCC support but the tests weren't updated. Closes: https://bugs.gentoo.org/939817 Fixes: eb49d171430cc2baffbf9d37493a78cc02b33fe2 Signed-off-by: Sam James <sam@gentoo.org>
* Revert "eclass/tests/toolchain.sh: declare PYTHON_COMPAT"Sam James2024-09-181-2/+0
| | | | | | | | | | This reverts commit 992fc2954c2281285bc50156ba12d310a1b434e1. This should no longer be necessary now that tests are opt-in with TOOLCHAIN_HAS_TESTS. Bug: https://bugs.gentoo.org/859157 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: make tests opt-in per-ebuildSam James2024-09-181-6/+16
| | | | | | | | | | | | | | In 1d93a491096f1cc0234fcf44458bfec142c213bb, we kind of introduced a timebomb to all GCC ebuilds. Switch to making it opt-in by setting TOOLCHAIN_HAS_TESTS in ebuilds which want to use validate_failures.py. It hasn't been tested and may not even work with gnat-gpl and kgcc64 so it doesn't make sense to have it by default, especially for gnat-gpl which is now just a bootstrap package anyway. Bug: https://bugs.gentoo.org/934124 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/tests/toolchain.sh: declare PYTHON_COMPATPetr Vaněk2024-09-181-0/+2
| | | | | | | | | | | | | | toolchain.sh test script requires PYTHON_COMPAT array since commit 1d93a491096f ("toolchain.eclass: rework tests more") otherwise it dies with die: PYTHON_COMPAT not declared. error. Bug: https://bugs.gentoo.org/859157 Signed-off-by: Petr Vaněk <arkamar@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* guile.eclass: change directory back exclicitly in guile_foreach_implAlfred Wingate2024-09-181-1/+2
| | | | | | | | einstalldocs notably benefits from the PWD being the correct source directory. Signed-off-by: Alfred Wingate <parona@protonmail.com> Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20240917 snapshotMichał Górny2024-09-171-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: fix gentoo-kernel-bin with llvm-objcopyAndrew Ammerlaan2024-09-171-1/+1
| | | | | | | | | | | | | | | | | | | | | We ship the kernel in gentoo-kernel-bin in the form of an UKI, using objcopy we extract from this the kernel image (and if desired the generic initramfs). However, llvm-objcopy does not properly handle the -O argument and as a result the extracted kernel image is of the same file type as the UKI (i.e. a PE32+ executable) instead of a regular kernel image. This causes issues in bootloader such as grub which differentiate between loading a normal kernel image and loading an EFI executable (such as an UKI). And also causes the signature verification to fail since the kernel image is bigger then it should be due to the additional headers. Using the --dump-section argument instead resolves this problem. See-also: https://github.com/llvm/llvm-project/issues/108946 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/38643 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* mozcoreconf-v6.eclass: drop ia64 supportSam James2024-09-121-6/+2
| | | | | | | | For toolchain eclasses we usually keep generic stuff like this for e.g. cross but there's no benefit to leaving it in non-toolchain eclasses like this. Signed-off-by: Sam James <sam@gentoo.org>
* remove ia64 archArthur Zamarin2024-09-122-2/+2
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* toolchain.eclass: depend on sys-devel/binutils:*Sam James2024-09-111-0/+1
| | | | | | | | | | | | | | | | | | | | GCC doesn't build in Gentoo at least without GNU Binutils. It is possible but it requires some work. It's not clear to me if some of that work needs to happen in LLVM upstream too (see below). In commits 7011340a0f13dcada6f3be48054957035bc6e01a and a7c27596827072f586dc07e6d53531ecb2c7cd6e, I tried to get things building with Clang's assembler but didn't get it over the line. I think I remember Arfrever and I coming up with a few later drafts (?) on IRC in #gentoo-hardened but I didn't commit any of it as it didn't work in the end anyway. But see https://briancallahan.net/blog/20240122.html which tackles at least one of the issues I ended up hitting before. In any case, add the dependency for now to keep things working. Closes: https://bugs.gentoo.org/936271 Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: remove unused eclass fuction use_docVolkmar W. Pogatzki2024-09-101-24/+0
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/38544 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* llvm.org.eclass: Add 20.0.0_pre20240910 snapshotMichał Górny2024-09-101-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshot listMichał Górny2024-09-101-12/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: mark function use_doc as deprecatedVolkmar W. Pogatzki2024-09-101-0/+1
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37338 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* rocm.eclass: add rocm_use_hipcc function and update example accordinglySv. Lockal2024-09-091-6/+34
| | | | | | Bug: https://bugs.gentoo.org/936099 Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Don't run cargo_env unless cargo_gen_config has runJames Le Cuirot2024-09-081-1/+3
| | | | | | | | | | | Normally, failing to run cargo_gen_config results in an error, but that is unhelpful for ebuilds with optional Cargo support. Closes: https://bugs.gentoo.org/938764 Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/38041 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Allow .jar files in sitedirMichał Górny2024-09-081-0/+2
| | | | | | Closes: https://bugs.gentoo.org/937642 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* xdg-utils.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-2/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* xdg.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* wrapper.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* webapp.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* virtualx.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* vim-spell.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* vim-plugin.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* vim-doc.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* vcs-clean.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* udev.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* tmpfiles.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* systemd.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-2/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* strip-linguas.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* ruby-utils.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* ruby-ng.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-2/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* ruby-fakegem.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-2/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* readme.gentoo-r1.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-1/+5
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* preserve-libs.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* prefix.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* portability.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-4/+8
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* php-pear-r2.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* perl-functions.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* pax-utils.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* out-of-source-utils.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multiprocessing.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multilib-minimal.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-6/+11
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multilib.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multilib-build.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* multibuild.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* mono-env.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-5/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* libtool.eclass: add global-scope ewarn for deprecated < EAPI 7Sam James2024-09-081-0/+9
| | | | Signed-off-by: Sam James <sam@gentoo.org>