summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* elisp.eclass: Update EAPI conditionalUlrich Müller2022-04-171-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: Drop support for EAPI 5Ulrich Müller2022-04-171-14/+5
| | | | | | From Emacs overlay. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* gnuconfig.eclass: fix eend w/o ebeginSam James2022-04-171-3/+3
| | | | | | | eend should be preceded by an begin call. Closes: https://bugs.gentoo.org/838859 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: fix spellingDavid Seifert2022-04-161-2/+2
| | | | | Closes: https://github.com/gentoo/gentoo/pull/24978 Signed-off-by: David Seifert <soap@gentoo.org>
* kernel-2.eclass: remove EAPI 6David Seifert2022-04-161-14/+12
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* autotools.eclass: update automake 1.16 stable versionSam James2022-04-161-1/+1
| | | | | Closes: https://bugs.gentoo.org/833654 Signed-off-by: Sam James <sam@gentoo.org>
* java-utils-2.eclass: remove ebegin calls that lack eend callsMike Gilbert2022-04-151-4/+6
| | | | | | | | | | | | Instead, echo the command we are about to run. Closes: https://bugs.gentoo.org/838475 Closes: https://bugs.gentoo.org/838478 Closes: https://bugs.gentoo.org/838481 Closes: https://bugs.gentoo.org/838487 Closes: https://bugs.gentoo.org/838490 Closes: https://bugs.gentoo.org/838493 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* linux-info.eclass: Call ebegin, properly close with eendThomas Bracht Laumann Jespersen2022-04-151-1/+3
| | | | | | | | | | | | | | | | | A recent QA check added to portage informs of eend being called without a preceding call to ebegin. This warning was emitted during pkg_setup for net-vpn/openvpn, and was traced back to the check_extra_config() function in linux-info.eclass. The preference is here to call ebegin (instead of dropping the lone eend) and in each of the possible exit branches for check_extra_config() call eend appropriately. Reported-by: Sam James <sam@gentoo.org> Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Closes: https://github.com/gentoo/gentoo/pull/25019 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* latex-package.eclass: Support EAPI 8Ulrich Müller2022-04-151-18/+23
| | | | | | | | | - BDEPEND instead of DEPEND (partially reverts commit 595611085bc5) - Document TEXMF - Create symlinks with dosym -r - Use debug-print-function Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* latex-package.eclass: Properly quote variablesUlrich Müller2022-04-151-19/+21
| | | | | Bug: https://bugs.gentoo.org/379571 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Revert "toolchain.eclass: handle RCs correctly"Sam James2022-04-151-13/+3
| | | | | | | | The install paths are still mixed with 11.2.1/11.3.0. Bleh. This reverts commit 0768e37e87fd7b73566a4f1b658f941b575bca12. Signed-off-by: Sam James <sam@gentoo.org>
* go-module.eclass: fix eclassdoc @DEPRECATION tagsSam James2022-04-151-9/+9
| | | | | Thanks-to: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: handle RCs correctlySam James2022-04-151-3/+13
| | | | | | The base GCC-VER file doesn't get updated until the final release. Signed-off-by: Sam James <sam@gentoo.org>