summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* inux-info.eclass: Remove local function.Calling code removed on Aug 3,2010Mike Pagano2022-05-131-20/+0
| | | | | | | | | | This function was only called locally and the last use was almost 12 years ago See: https://gitlab.com/rindeal/gentoo-cvs-history-archive/-/commit/1715ad cd9e404075340e5a5ed82f88928feeffd9 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* toolchain.eclass: start work on eclassdocsSam James2022-05-131-6/+54
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: followup style tweaksSam James2022-05-131-6/+12
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: style cleanupsSam James2022-05-131-216/+278
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: filter -fsanitize=*Sam James2022-05-121-0/+2
| | | | | | Doesn't make any sense for building GCC. Signed-off-by: Sam James <sam@gentoo.org>
* xorg-3.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-11/+13
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* waf-utils.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-4/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* ruby-fakegem.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* mercurial.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-4/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kde.org.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-9/+11
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* check-reqs.eclass: Don't indent eclass documentationUlrich Müller2022-05-121-6/+7
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-mod.eclass: Fix function call change from portage to pkgmgrMike Pagano2022-05-121-1/+1
| | | | | | | | | This change is to comply with the linux-info.eclass change of the function name from set_arch_to_portage to set_arch_to_pkgmgr https://bugs.gentoo.org/843686 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-info.eclass: Fix func name to comply with pms, dep old with deadlineMike Pagano2022-05-121-1/+17
| | | | | | | | | | | According to PMS certain words are reserved for package manager use and may not be used or relied upon by ebuilds. See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 Closes: https://bugs.gentoo.org/843686 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Fix func name to comply with pms, deprecate, old with deadlineMike Pagano2022-05-121-1/+10
| | | | | | | | | | | According to PMS certain words are reserved for package manager use and may not be used or relied upon by ebuilds. See: https://projects.gentoo.org/pms/8/pms.html#x1-13700012.3.17 Closes: https://bugs.gentoo.org/843674 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* distutils-r1.eclass: Update license stripping for hatchMichał Górny2022-05-111-3/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce sipbuild backend supportMichał Górny2022-05-111-2/+51
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qmake-utils.eclass: Reuse qt5_get_qmake_args in eqmake5Michał Górny2022-05-111-23/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qmake-utils.eclass: Add a function to get qmake argsMichał Górny2022-05-111-0/+27
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Sterilize pytest-markdownMichał Górny2022-05-111-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ninja-utils.eclass: document NINJA_DEPENDMike Gilbert2022-05-101-0/+5
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* meson.eclass: Support dev-util/samuraiorbea2022-05-101-1/+3
| | | | | | | | | | | samurai is a ninja-compatible build tool written in C which works with cmake, meson and other users of ninja. It is feature-complete and supports most of the same options as ninja. Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* ninja-utils.eclass: Support dev-util/samuraiorbea2022-05-101-1/+24
| | | | | | | | | | | samurai is a ninja-compatible build tool written in C which works with cmake, meson and other users of ninja. It is feature-complete and supports most of the same options as ninja. Signed-off-by: orbea <orbea@riseup.net> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Switch epytest to "count" progress reportsMichał Górny2022-05-091-0/+3
| | | | | | | Switch epytest to report test counts rather than percentages. This is more precise when we're dealing with large numbers of tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move setup from src_configure to prepare_allMichał Górny2022-05-091-3/+3
| | | | | | | | | | Move a few minor setup calls from distutils-r1_src_configure() to distutils-r1_python_prepare_all(). Since we do not declare default configure sub-phases, it is easy to override src_configure() entirely and accidentally skip these steps. We already warn for missing distutils-r1_python_prepare_all() call, so let's move them there. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Print buildsys package versions to aid debugMichał Górny2022-05-091-0/+92
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support DISTUTILS_ARGS in PEP517 modeMichał Górny2022-05-091-5/+27
| | | | | | Use gpep517 --config-json support to pass DISTUTILS_ARGS in PEP517 mode. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Raise py3.11 package dep for python-exec depMichał Górny2022-05-091-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.eclass: Add tests for adding new implsMichał Górny2022-05-091-0/+35
| | | | | | | Add tests that verify that new Python implementations are added to all the places that need them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Streamline the testsMichał Górny2022-05-091-84/+28
| | | | | | | | Streamline the python-utils-r1.eclass tests to use a for loop instead of copying the same tests over and over again. While at it, group tests by purpose. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add support for python3.11Michał Górny2022-05-092-4/+20
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: add riscv supportSam James2022-05-081-1/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dist-kernel-utils.eclass: add riscv kernel image pathSam James2022-05-081-0/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: eqawarn if module-info.java is not compiledFlorian Schmaus2022-05-051-4/+5
| | | | | | | | | | In preperation of this ewarn part becoming 'die' (bug #842447), switch it to eqawarn to improve catching the affected packages. Bug: https://bugs.gentoo.org/796875 Bug: https://bugs.gentoo.org/842447 Signed-off-by: Florian Schmaus <flow@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/25306
* 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>