summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
...
* eclass/depend.apache: enable EAPI 8Hans de Graaff2023-10-081-2/+2
| | | | | | Bug: https://bugs.gentoo.org/914200 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/depend.apache: deprecate apache 2.2 methodsHans de Graaff2023-10-081-8/+22
| | | | | | www-servers/apache-2.2 has been removed in 2019. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* flag-o-matic.eclass: allow --unwindlib/--rtlib/--stdlib tooSam James2023-10-051-0/+6
| | | | | | | We may want to gate these just for Clang but they (at least --stdlib) affect ABI so we shouldn't be filtering these. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow -mbranch-protection=*Sam James2023-10-051-0/+1
| | | | | | Newer arm64 HW has this. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow -mno-omit-leaf-frame-pointerSam James2023-10-051-0/+1
| | | | | | Just like -fno-omit-frame-pointer. Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231002 snapshotMichał Górny2023-10-021-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove support for old snapshotsMichał Górny2023-10-021-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* systemd.eclass: add systemd_install_dropinFlorian Schmaus2023-10-011-1/+43
| | | | | | | Closes: https://bugs.gentoo.org/876658 Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/33089 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* kernel-build.eclass: drop obsolete if use secureboot statementAndrew Ammerlaan2023-10-011-14/+0
| | | | | | | | | | | | CONFIG_EFI_ZBOOT (among other things) is now set by secureboot.config in GENTOO_CONFIG version g9 and up. All {gentoo,vanilla}-kernel versions with "KERNEL_IUSE_MODULES_SIGN=1" and GENTOO_CONFIG_VER<9 have been removed. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/32793 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* toolchain-funcs.eclass: Remove outdated reference to tc-has-openmpPetr Vaněk2023-10-011-3/+1
| | | | | | | | | | | | tc-has-openmp function was deprecated in commit 9bc832c6d39b ("toolchain-funcs.eclass: deprecate tc-has-openmp") and later removed in commit eb970274d283 ("toolchain-funcs.eclass: remove tc-has-openmp"). Due to this, the reference to it in the tc-check-openmp function has become redundant and is therefore removed. Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Closes: https://github.com/gentoo/gentoo/pull/32903 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: handle ABIs with no multilib flagsSam James2023-09-301-1/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: tidy up USE=jit buildSam James2023-09-301-16/+36
| | | | | | | | | | | | | | * Pass --disable-fixincludes for newer GCCs for USE=jit (still need to try disable it in general when we can, but we had to turn it on for a bit because of newer glibc) as it's pointless there. * Disable a bunch of other options for the JIT build, imported from my local script for bisecting GCC. * While at it, use an array for the configure args for the JIT build and just use emake -C. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: support bootstrap-O3Sam James2023-09-301-7/+15
| | | | | | | Upstream are fine with bootstrapping with -O3, so don't strip it out if the user set it, even with USE=-custom-cflags. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: rework bootstrapping logicSam James2023-09-301-17/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * Build stage1 compiler with user's CFLAGS. This consistently ends up saving at least 15 minutes for me on a fast amd64 machine and should save more on slower machines and architectures. There's only any risk here if the host compiler is ancient/very buggy and even then, you get a failed bootstrap later on. The GCC developers, per the linked bug, end up using STAGE1_CFLAGS="-O2" anyway to speed up the process so it's not like this is untested at all. mattst88 actually brought this up.. 10 years ago (bug #477548). Let's try make that right now. * Respect LDFLAGS for target libraries for native builds. Not touching this for cross builds, at least for now, as it's a bit more delicate. (Unfortunately, we have to put a hack in here for now until we can fix multilib.eclass - see bug #914881). Bug: https://gcc.gnu.org/PR111619 Bug: https://bugs.gentoo.org/914881 Closes: https://bugs.gentoo.org/477548 Closes: https://bugs.gentoo.org/831423 Closes: https://bugs.gentoo.org/840392 Apologies-to: Matt Turner <mattst88@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: drop EAPI 6Volkmar W. Pogatzki2023-09-301-2/+1
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/33123 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/depend.apache: drop support for EAPI 0-5Hans de Graaff2023-09-281-48/+12
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* java-pkg-opt-2.eclass: drop EAPI 6Volkmar W. Pogatzki2023-09-281-3/+3
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/32888 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* llvm.eclass: add option to skip llvm_pkg_setupAlexey Sokolov2023-09-271-0/+11
| | | | | | | | | To be used during prefix bootstrap using LLVM toolchain. Without this, several LLVM packages don't build. Bug: https://bugs.gentoo.org/758167 Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-pkg-simple.eclass: improve test selection for multi-jar packagesVolkmar W. Pogatzki2023-09-271-1/+3
| | | | | | | | | | | There was a problem with multi-jar packages cumulating tests. Test classes were repeatedly run for all subsequent test runs. With this patch we ensure that classes=target/test-classes is really empty before compilation. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* Revert "java-pkg-simple.eclass: improve test selection for multi-jar packages"Volkmar W. Pogatzki2023-09-271-15/+13
| | | | | | | | This reverts commit 3eb0cfe339e79270446731b8f27bdc1b060d023b. Closes: https://bugs.gentoo.org/906311 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* perl-module.eclass: fix typo in commentSam James2023-09-271-1/+1
| | | | | Fixes: ffa678b96f88ec7be12cd57237ead3849ac9c453 Signed-off-by: Sam James <sam@gentoo.org>
* qt6-build.eclass: triple qtest function timeoutIonen Wolkens2023-09-261-2/+1
| | | | | | | | | | | May help prevent flaky failures under load. Could increase further if ever a problem on some arches (beyond 1500 would be meaningless without also passing bigger --timeout to ctest). Also align exports and drop kinda unnecessary comment. Closes: https://bugs.gentoo.org/914737 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20230925 snapshotMichał Górny2023-09-251-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: fix should_we_gcc_config for major-version slottingSam James2023-09-251-1/+3
| | | | | | | | | | | | | | | | | | | | | | | Reported by the-horo on IRC. For example, with slot as major version: ``` $ gcc-config -c x86_64-pc-linux-gnu x86_64-pc-linux-gnu-13 $ gcc-config -S x86_64-pc-linux-gnu-13 x86_64-pc-linux-gnu 13 ``` so we're indeed comparing 13 with 13.2 and hence we decide to run gcc-config unnecessarily because we think it's a major version change. Fix that by taking into account tc_use_major_version_only and comparing based on GCCMAJOR for that case. Bug: https://bugs.gentoo.org/865835 Bug: https://bugs.gentoo.org/873505 Reported-by: the-horo Closes: https://github.com/gentoo/gentoo/pull/33042 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/ruby-ng.eclass: add ruby30 to removed implementationsHans de Graaff2023-09-231-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/ruby-utils.eclass: drop ruby30 from preferencesHans de Graaff2023-09-231-5/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* llvm.org.eclass: Set manpages for 17.0.1Michał Górny2023-09-191-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* perl-module.eclass: disable Canary::StabilitySam James2023-09-191-0/+2
| | | | | | | | | Canary::Stability emits very vocal warnings about "unsupported" Perl versions even if they're fine in reality. It's not worth scaring our users over. See https://metacpan.org/pod/Canary::Stability#ENVIRONMENT-VARIABLES. Signed-off-by: Sam James <sam@gentoo.org>
* perl-module.eclass: set NONINTERACTIVE_TESTING=1Sam James2023-09-191-0/+7
| | | | | | | | | | | | | | | See https://www.perlmonks.org/?node_id=1225311 I did consider the others, but: * AUTOMATES_TESTING appears inappropriate for us, as it affects exit codes and might mask failures if configuration is wrong. * EXTENDED_TESTING is something we could consider if we had some way to opt-in to expensive tests. so just set NONINTERACTIVE_TESTING=1 for now, not the others mentioned in the link. Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: respect SLOT="0" in JAVA_LAUNCHER_FILENAMEVolkmar W. Pogatzki2023-09-191-1/+5
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* bazel.eclass: fix copyrightSam James2023-09-181-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* bazel.eclass: add support for a custom bazelGeorge Burgess IV2023-09-181-1/+8
| | | | | | | | | | Multiple bazel packages can be installed side-by-side through version suffixes, e.g., `/usr/bin/bazel-5`, `/usr/bin/bazel-6`, etc. These can be easily simultaneously supported with an eclass param. Signed-off-by: George Burgess IV <gbiv@google.com> Closes: https://github.com/gentoo/gentoo/pull/30544 Signed-off-by: Sam James <sam@gentoo.org>
* verify-sig.eclass: minisig supportSam James2023-09-161-2/+15
| | | | | Closes: https://bugs.gentoo.org/783066 Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: fix EclassDocMissingFuncVolkmar W. Pogatzki2023-09-161-1/+1
| | | | | | | Closes: https://bugs.gentoo.org/900509 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/30078 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* eclass/dotnet-pkg.eclass: add new dotnet-pkg eclassMaciej Barć2023-09-151-0/+263
| | | | | | | | common functions and variables for .NET packages Bug: https://bugs.gentoo.org/900597 Bug: https://github.com/gentoo/gentoo/pull/32109 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: add new dotnet-pkg-base eclassMaciej Barć2023-09-151-0/+628
| | | | | | | | common functions and variables for builds using .NET SDK Bug: https://bugs.gentoo.org/900597 Bug: https://github.com/gentoo/gentoo/pull/32109 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/nuget.eclass: add new nuget eclassMaciej Barć2023-09-151-0/+197
| | | | | | | | common functions and variables for handling .NET NuGets Bug: https://bugs.gentoo.org/900597 Bug: https://github.com/gentoo/gentoo/pull/32109 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* qt6-build.eclass: skip matching fma in 6.5.3+Ionen Wolkens2023-09-141-2/+3
| | | | | | | | | | | | | | | | | | Should no longer hard fail if lack AVX2 while have FMA, however it does (still) require to disable AVX2 if lacking anything else for any reason (e.g. broken VMs, oddball hardware, perhaps even users intentionally disabling a feature because they have a problem with it). Generally few users should see their flags modified. Feel the ideal would be for upstream to simply not use features that are disabled rather than error about an incomplete set, or just not use AVX2 if incomplete. Bug: https://bugs.gentoo.org/898644 Bug: https://bugs.gentoo.org/908420 Bug: https://bugs.gentoo.org/913843 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* Package move dev-lisp/ecls to dev-lisp/eclUlrich Müller2023-09-141-1/+1
| | | | | Closes: https://bugs.gentoo.org/586230 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* verify-sig.eclass: Fix list formatting for VERIFY_SIG_METHODMichał Górny2023-09-141-2/+2
| | | | | | Thanks to ulm for reporting. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Fix handling multiple/duplicate signaturesMichał Górny2023-09-142-2/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* verify-sig.eclass: Support `openssl dgst` format checksumsMichał Górny2023-09-142-18/+54
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Add initial tests for verify-sigMichał Górny2023-09-141-0/+65
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: unconditionally warn on occluded packages in cwdEli Schwartz2023-09-141-4/+0
| | | | | | | | | | | If the current directory masks packages that would be installed and contains different contents, it can cause testing issues that otherwise go unnoticed. This warning can stop being experimental and opt-in Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32729 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: teach setuptools to respect (some) build optionsEli Schwartz2023-09-141-38/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, setup.py was handled by: - manually passing makejobs, with a heuristic to guess whether it was a time saver to do so. - rm -rf'ing the build directory in between python versions to prevent cross-version contamination This is because in PEP 517 mode, it doesn't accept build options specific to a setuptools phase. So a crude hack is to just build_ext twice, once explicitly and once internally as part of bdist_wheel, and pray that in the latter case it detects that there's nothing to do. Unfortunately, sometimes build_ext does NOT detect that there is nothing to do -- e.g. for codegen tools such as mypyc, that produce *.c files which are different every time you try building. As for build directories, those were given up on as hopeless. There's a better hack which is to set a magic environment variable for a setup.cfg file which is parsed additionally to the one provided by the project. It can contain additional settings, such as the build-base and parallelism, which means that bdist_wheel intrinsically builds extensions in parallel the only time it is called. And we can set the output directory for all build artifacts to outside of the source tree, so it is no longer necessary to delete them (which among other things, makes debugging difficult). This is similar to .pydistutils.cfg, but is processed later and can be in arbitrary locations. Since we store it in the per-impl build directory we don't need to wipe it after using it to avoid leakage. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* perl-module.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-1/+1
| | | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/32703 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-1/+1
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-2/+2
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cuda.eclass: fix Unquoted VariableArthur Zamarin2023-09-141-3/+3
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: pass INSTALL_MOD_STRIP in src_testSam James2023-09-141-1/+9
| | | | | Thanks-to: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>