summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eclass/java-utils-2.eclass: drop gnu-classpathVolkmar W. Pogatzki2022-05-021-37/+8
| | | | | | | | | Bug: https://bugs.gentoo.org/786093 Package-Manager: Portage-3.0.18, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/21218 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* ltprune.eclass: restrict find to regular files in example codeFlorian Schmaus2022-05-021-2/+2
| | | | | | | | | Akin to the (pending) change of the policy guide [1], adjust the example code to restrict find to regular files. 1: https://github.com/gentoo/policy-guide/pull/24 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* apache-2.eclass: remove eend with no ebeginThomas Bracht Laumann Jespersen2022-05-021-1/+0
| | | | | | | | | | | | | Found by scanning for eclasses with 'eend' but no occurrences of 'ebegin'. The following QA notice was also generated when installing www-servers/apache: * QA Notice: eend called without preceding ebegin (phase: install) Fix by just removing the line. Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* python-utils-r1.eclass: Utilize the new makeopts_jobs defaultMichał Górny2022-05-011-3/+1
| | | | | | Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25238 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Utilize the new makeopts_jobs defaultMichał Górny2022-05-011-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Utilize the new makeopts_jobs defaultMichał Górny2022-05-011-5/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multiprocessing.eclass: Default makeopts_jobs to inf=nproc+1Michał Górny2022-05-012-11/+15
| | | | | | | | | | | | | | | | | | | | | | Change the default value for 'inf' argument to makeopts_jobs from 999 to $(get_nproc) + 1. This means that if MAKEOPTS specifies a `-j` argument without a specific value, nproc will be used rather than infinity-ish number of jobs. The old default made sense for ebuilds using both makeopts_jobs and makeopts_loadavg. However, these are very rare — only 4 packages and 3 eclass at this time. For the remaining ebuilds, they meant uncontrollably using up to 999 jobs. The new default is both safer and more correct for the vast majority of Gentoo packages, removing the necessity of repeating: $(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") The ebuilds and eclasses using makeopts_loadavg have been updated to pass the old default. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ninja-utils.eclass: Prepare for makeopts_jobs default inf changeMichał Górny2022-05-011-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake-utils.eclass: Prepare for makeopts_jobs default inf changeMichał Górny2022-05-011-2/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake.eclass: Prepare for makeopts_jobs default inf changeMichał Górny2022-05-011-2/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support pbr backendMichał Górny2022-05-011-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* autotools.eclass: drop ROOT=/ in has_version callSam James2022-04-301-1/+1
| | | | | | | | | | | | | | | | | | | Noticed when doing a read-through of the eclass (which is how I noticed c8e74a7dfe477dea008548553141f083c5d03782 too). Forcing ROOT=/ is, at best, going to confuse matters, and at worst, do entirely the wrong thing. In EAPI 5 and 6, we had --host-root (which we use in the eclass), and in EAPI 7+, we have -b/-d (which we use in the eclass too). The ROOT= setting was there for pre-EAPI 5 times. The aforementioned toggles (--host-root and then later on, -b/-d) are the correct methods to specify (B)ROOT for has_version. Using one of those with ROOT= have undefined behaviour, so drop it. Bug: https://bugs.gentoo.org/312687 Thanks-to: James Le Cuirot <chewi@gentoo.org> Thanks-to: Ulrich Müller <ulm@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* autotools.eclass: fix EAPI 8 conditional; simplifySam James2022-04-281-3/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Update cmake calls for EAPI 8Michał Górny2022-04-271-6/+8
| | | | | | | | | | | | Update the cmake calls to account for eclass changes in EAPI 8, that is: - src_prepare() now works in the current directory rather than ${S} - CMAKE_USE_DIR defaults to the current directory Make sure to call cmake_src_prepare in the current directory, and set CMAKE_USE_DIR early. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Revert "add sam to distfile paths"Michał Górny2022-04-271-3/+1
| | | | | | | | The distfiles were copied to my devspace, and having two URLs means half of them 404 → a lot of pkgcheck false positives. Reverts: ebb54e5c76d447bb3bfdd4d40958c35468a4026d Signed-off-by: Michał Górny <mgorny@gentoo.org>
* java-utils-2.eclass: introduce JAVA_TEST_RUNNER_EXTRA_ARGSFlorian Schmaus2022-04-271-8/+41
| | | | | | | | | | Also add special handling wrt -usedfaultlisteners for TestNG, see bug #801694. Co-authored-by: Miroslav Šulc <fordfrog@gentoo.org> Bug: https://bugs.gentoo.org/801694 Closes: https://github.com/gentoo/gentoo/pull/2512 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* meson.eclass: disable werrorSam James2022-04-251-0/+4
| | | | | | | | | It's Gentoo policy to disable Werror where possible and this is a builtin Meson option, so let's use it, to save needing to add this all the time in ebuilds. Closes: https://bugs.gentoo.org/754279 Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: disable PCHSam James2022-04-251-1/+7
| | | | | | | | | It's already masked and disabled in GCC and it causes a huge number of problems, but we need to do this to avoid automagically trying to use PCH-even-once-it's-been-disabled-in-the-compiler. Bug: https://bugs.gentoo.org/839549 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Unleash dev-python/gpep517Michał Górny2022-04-251-70/+15
| | | | | | Switch the distutils-r1.eclass to gpep517 code branches unconditionally. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Limit dev-python/installer versionMichał Górny2022-04-251-0/+1
| | | | | | | | dev-python/installer has made incompatible changes in 0.5.1 that breaks the non-gpep517 code path. Add a version limit prior to bumping, in case we end up reverting gpep517 changes. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: support maturin backendIonen Wolkens2022-04-251-0/+17
| | | | | Signed-off-by: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: use case for system-specific build quirksIonen Wolkens2022-04-251-36/+39
| | | | | | | With only indentation changes. Signed-off-by: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Account for func args when counting makejobsMichał Górny2022-04-251-1/+1
| | | | | | | | Account for distutils-r1_python_compile arguments when counting makejobs. This is needed to correctly detect forced "-j1", e.g. in dev-python/pandas. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Run build_ext only with --jobs -gt 1Michał Górny2022-04-251-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Run build_ext only if there are 2+ filesMichał Górny2022-04-251-4/+8
| | | | | | | | Run parallel build_ext only if there are at least two potential source files to compile. This call is expensive and parallel builds do not benefit us if there is only one file to compile. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: tweak .xz versions for 12Sam James2022-04-251-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* acct-user.eclass: add keyword ~loongWANG Xuerui2022-04-251-1/+1
| | | | | See: https://github.com/gentoo/gentoo/pull/25183 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* acct-group.eclass: add keyword ~loongWANG Xuerui2022-04-251-2/+2
| | | | | See: https://github.com/gentoo/gentoo/pull/25183 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* kernel-build.eclass: add HPPA supportSam James2022-04-241-1/+15
| | | | | | | | | | | | | | | | | | | | | | | Support HPPA kernel builds. Notes: - HPPA 2.0 supports 32-bit and 64-bit kernels (HPPA 2.0 userland remains 32-bit for now as toolchain support isn't there yet for 64-bit). I've decided to only accommodate 64-bit kernels here unless/until someone requests & can help figure out an acceptable solution for 32-bit kernels for HPPA 2.0. - HPPA 1.x should be fine as there's no need for a cross-compiler there, unlike HPPA 2.x for 64-bit (sys-devel/kgcc64). It should Just Work, but not tested. Not adding a BDEPEND on sys-devel/kgcc64 as it's unclear how to do this cleanly only for HPPA 2.0. Tested on RP3440 and C8000. Signed-off-by: Sam James <sam@gentoo.org>
* acct-user.eclass: Fixing user/group creation when using different ROOTJérémy Connat2022-04-231-11/+40
| | | | | | Signed-off-by: Jérémy Connat <morderca@morderca.net> Closes: https://github.com/gentoo/gentoo/pull/19204 Signed-off-by: Sam James <sam@gentoo.org>
* user-info.eclass: Fixing user/group creation when using different ROOTJérémy Connat2022-04-231-6/+29
| | | | | Signed-off-by: Jérémy Connat <morderca@morderca.net> Signed-off-by: Sam James <sam@gentoo.org>
* user.eclass: Fixing user/group creation when using different ROOTJérémy Connat2022-04-231-17/+111
| | | | | | | | When creating a user for another environement, user is created on the HOST and not the ROOT dir. Adding "-R <CHROOT_DIR>" for all user* / group* commands fix the issue. Signed-off-by: Jérémy Connat <morderca@morderca.net> Signed-off-by: Sam James <sam@gentoo.org>
* eclass/ruby-fakegem.eclass: avoid nested ebegin callsHans de Graaff2022-04-221-6/+3
| | | | | | | The phases in ruby-ng.eclass already use ebegin/eend to wrap each phase, so use einfo here to avoid nested calls. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* distutils-r1.eclass: "build" dir warn makes sense for pep517 onlyMichał Górny2022-04-211-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for stdlib ver matchingMichał Górny2022-04-211-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: pypy3 is now Python 3.9Michał Górny2022-04-211-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support flit_scm backendMichał Górny2022-04-211-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* sys-devel/gcc: add 11.3.0, rename 11.2.1_pre9999 -> 11.3.1_pre9999Sam James2022-04-211-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* eclass/tests/qmail.sh: eend and return should be separate statementsMike Gilbert2022-04-191-1/+2
| | | | | Closes: https://bugs.gentoo.org/839189 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* toolchain.eclass: fix S definitionSam James2022-04-191-1/+3
| | | | | | | S isn't _blank_ by default. Fixes: 5a7ea1cef34c3c3026a999d566bc4badc1dccc9c Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow overriding S in ebuildsSam James2022-04-191-10/+12
| | | | | | Useful for RCs-but-we-pretend-they're-not-RCs. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: default to .xz for newer patch tarballsSam James2022-04-191-7/+15
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix zstd RDEPEND for USE=zstd on gccSam James2022-04-191-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: support GCC pre-releases for new branchesSam James2022-04-191-3/+6
| | | | | | Needed for GCC 12. Signed-off-by: Sam James <sam@gentoo.org>
* tree-sitter-grammar.eclass: use edo when linkingMatthew Smith2022-04-191-1/+3
| | | | Signed-off-by: Matthew Smith <matthew@gentoo.org>
* edo.eclass: update eclassdoc to clarify purposeSam James2022-04-181-2/+5
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* edo.eclass: fix eclassdoc typoSam James2022-04-181-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* edo.eclass: add new eclassSam James2022-04-181-0/+45
| | | | | Bug: https://bugs.gentoo.org/744880 Signed-off-by: Sam James <sam@gentoo.org>
* qt5-build.eclass: Drop support for Qt 5.15.2Andreas Sturmlechner2022-04-181-51/+9
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/ruby-ng.eclass: add missing eendHans de Graaff2022-04-181-0/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>