summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* ghc-package.eclass: fix "unknown keyword @AUTHOR:" eclass-to-manpage errorFlorian Schmaus2023-10-231-2/+2
| | | | | | | | | | | AUTHOR has to be before SUPPORTED_EAPIS, otherwise eclass-to-manpage reports: ghc-package.eclass: error:8: ghc-package.eclass: unknown keyword @AUTHOR: Fixes: 356bdc36a6bd ("ghc-package.eclass: Sync from ::haskell") Signed-off-by: Florian Schmaus <flow@gentoo.org>
* haskell-cabal.eclass: Sync from ::haskellhololeap2023-10-231-43/+246
| | | | | Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* ghc-package.eclass: Sync from ::haskellhololeap2023-10-231-8/+30
| | | | | Signed-off-by: hololeap <hololeap@protonmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* python-utils-r1.eclass: Disable pytest-describe by defaultMichał Górny2023-10-221-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Disable pytest-plus by defaultMichał Górny2023-10-221-1/+2
| | | | | | | Disable the intrusive dev-python/pytest-plus plugin by default as it is breaking random test suites. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* elisp-common.eclass: Set no-native-compile in generated filesUlrich Müller2023-10-221-0/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* flag-o-matic.eclass: add '-mfpmath=*'Sam James2023-10-211-1/+1
| | | | | | We set this for x86 multilib profiles. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: add '-mharden-sls=*'Sam James2023-10-211-0/+1
| | | | | | Spectre-style mitigation. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: add -mpreferred-stack-boundary=*, ↵Sam James2023-10-211-0/+2
| | | | | | | | | -mincoming-stack-boundary=* Wine may use this and it's in the same league as -mstackrealign in that it affects ABI. Signed-off-by: Sam James <sam@gentoo.org>
* flag-o-matic.eclass: allow hardened compare/control flow flagsSam James2023-10-211-0/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* xorg-3.eclass: Fetch xcb-util-* distfiles from lib/Matt Turner2023-10-201-1/+0
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231019 snapshotMichał Górny2023-10-191-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshotsMichał Górny2023-10-191-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-pkg-simple.eclass: improved descriptionMiroslav Šulc2023-10-191-1/+2
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: improve description of "generated-test"Volkmar W. Pogatzki2023-10-191-3/+6
| | | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/33389 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* kernel-2.eclass: Allow ebuilds to set their own SLOTMike Pagano2023-10-191-2/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* apache-2.eclass: update rustls-ffi minimal versionHans de Graaff2023-10-191-1/+1
| | | | | | | This version matches the requirement for apache 2.0.48 and is also compatible with apache 2.0.47. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* webapp.eclass: optimize webapp_serverowned() and inline webapp_strip_*()Florian Schmaus2023-10-181-24/+16
| | | | | | | | | | | | | | | | Some ebuilds invoke webapp_serverowned() with -R, causing the eclass to iterate over a large set of files. Within the iteration's body the eclass forks multiple times to invoke the webapp_strip, which is very inefficient and causes a huge slowdown. This optimizes webapp_serverowned() by replacing the iteration and call to the "strip" functions with a single equivalent invocation of find to iterates all the files. Furthermore, all remaining invocations of webapp_strip_*() are inlined. Closes: https://bugs.gentoo.org/781860 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-utils-2.eclass: avoid reverse dependency for dev-java/testngVolkmar W. Pogatzki2023-10-181-1/+5
| | | | | | | | | | | | | This change depends on the correlating change on the java-pkg-simple.eclass. For testing dev-java/testng before having it installed it is not possible to use java-pkg_getjars. This change adds a condition so that this case uses the freshly compiled testng.jar. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/29733 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: avoid reverse dependency for dev-java/testngVolkmar W. Pogatzki2023-10-181-1/+2
| | | | | | | | | | | | Presently, when using testng in JAVA_TESTING_FRAMEWORKS, it gets added to test dependencies. Emerging dev-java/testng with USE=test would lead to a reverse dependency on itself. This change allows emerging / testing testng with the ebuild specifying JAVA_TESTING_FRAMEWORKS="testng" without such reverse dependency. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: avoid removal of generated test classesVolkmar W. Pogatzki2023-10-181-0/+5
| | | | | | | | | | Solution of bug #906311 removes all test classes at beginning of src_test() including test classes generated from the ebuild. With this commit generated test classes will be copied from the new generated-test directory into target/test-classes. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: allow etestng to run testng.xmlVolkmar W. Pogatzki2023-10-181-2/+7
| | | | | | | | | | | | The etestng function is presently limited to running test classes and has no option for running testng.xml files. Using testng.xml in an ebuild requires manual coding in src_test(). This change adds a switch to the etestng function which allows running default src_test() with either testng.xml files or test classes. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* qt5-build.eclass: guard -Wl,--undefined-version with tc-ld-is-lldSam James2023-10-181-1/+1
| | | | | | | | Older binutils doesn't support this flag, so just guard it to make life easier for people. Bug: https://bugs.gentoo.org/915203 Signed-off-by: Sam James <sam@gentoo.org>
* perl-module.eclass: extend DIST_TEST="do" to cover make-based testsMatoro Mahri2023-10-161-1/+6
| | | | | | | | | | | For packages using make to run tests rather than Test::Harness, DIST_TEST="do" is ineffective at disabling parallelization. This forces -j1 on these packages when set. Bug: https://bugs.gentoo.org/909051 Signed-off-by: Matoro Mahri <matoro@users.noreply.github.com> Closes: https://github.com/gentoo/gentoo/pull/33354 Signed-off-by: Sam James <sam@gentoo.org>
* qt5-build.eclass: workaround undefined qt_version_tag (LLD 17)Alfred Wingate2023-10-151-0/+6
| | | | | | | | Bug: https://bugreports.qt.io/browse/QTBUG-111514 Bug: https://bugs.gentoo.org/915203 Signed-off-by: Alfred Wingate <parona@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/33302 Signed-off-by: Sam James <sam@gentoo.org>
* qt6-build.eclass: extend avx2/fma mismatch workaround to 6.6.0Ionen Wolkens2023-10-131-2/+2
| | | | | | | 6.6.0 is lacking qsimd_p.h changes that 6.5.3 had, will be in 6.6.1. Closes: https://bugs.gentoo.org/915691 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20231013 snapshotMichał Górny2023-10-131-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/dotnet-pkg.eclass: update eclass variable docsMaciej Barć2023-10-121-8/+7
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg.eclass: add DOTNET_PKG_TEST_EXTRA_ARGSMaciej Barć2023-10-121-1/+25
| | | | | | Extra arguments to pass to the package test, in the "src_test" phase. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/nuget.eclass: partition dotnet-pkg_src_unpackMaciej Barć2023-10-122-12/+47
| | | | | | | This enables easier usage of "nuget_link-nuget-archives" in some special cases. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/nuget.eclass: add special NUGET_API case for Gentoo devs' hostingMaciej Barć2023-10-121-0/+3
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: clarify test, quotes in dolauncherMaciej Barć2023-10-121-6/+6
| | | | Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg*: remove unnecessary auto-append of project dirMaciej Barć2023-10-122-35/+27
| | | | | | Also reorder dotnet-pkg-base_foreach-solution argument positions. Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* distutils-r1.eclass: Make use of gpep517's new build-wheel --prefix argJames Le Cuirot2023-10-091-1/+2
| | | | | | This fixes cross-prefix installations. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* meson.eclass: use get_makeopts_{jobs,loadavg}Florian Schmaus2023-10-091-2/+2
| | | | | Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/32385
* ninja-utils.eclass: use get_makeopts_{jobs,loadavg}Florian Schmaus2023-10-091-1/+1
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* multiprocessing.eclass: consider (GNU)MAKEFLAGS, add get_makeopts_{jobs,loadavg}Florian Schmaus2023-10-092-7/+55
| | | | | | | | | | | | | Since --load-average may not be found in other Make implementations besides GNU Make, it is potentially found in GNUMAKEFLAGS and not in MAKEOPTS. Also, Portage is probably soon setting --load-average in GNUMAKEFLAGS as default. Thanks to floppym and mgorny for feedback. Signed-off-by: Florian Schmaus <flow@gentoo.org>
* ecm.eclass: Drop supposedly obsolete dev-qt/qthelp crutch for PortageAndreas Sturmlechner2023-10-081-11/+1
| | | | | | | Reverts commit 98f5475d46518fa7da5ece4bceb1189283eba4f8 Closes: https://bugs.gentoo.org/836726 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/apache-module.eclass: enable EAPI 8Hans de Graaff2023-10-081-2/+2
| | | | | Closes: https://bugs.gentoo.org/914200 Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* 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>