summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* systemd.eclass: drop deprecated tmpfiles functionsDavid Michael2021-06-291-65/+0
| | | | | | | Closes: https://bugs.gentoo.org/740638 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21462
* toolchain-glibc.eclass: migrate to tmpfiles.eclassDavid Michael2021-06-291-3/+5
| | | | | | | The systemd_newtmpfilesd function is deprecated. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/prefix: add support for EAPI=8Fabian Groffen2021-06-291-2/+2
| | | | Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* distutils-r1.eclass: Check for _all phase mismatchMichał Górny2021-06-291-0/+16
| | | | | | | Check for the mistake of calling distutils-r1_python_*_all() from non-all python_*() subphase. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove _python_ln_relMichał Górny2021-06-291-40/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use 'dosym -r' in EAPI 8Michał Górny2021-06-291-2/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Eliminate path arg to ..._wrap_scriptsMichał Górny2021-06-291-13/+12
| | | | | | | Eliminate the path argument to _distutils-r1_wrap_scripts, and inline the use of ${D} instead. This should make the code less confusing. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Defer wrapping scripts until after root-mergeMichał Górny2021-06-291-1/+1
| | | | | | | | Defer wrapping installed Python scripts until the files are merged from impl-specific directory into ${ED}. This should clear the way into using 'dosym -r'. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: fix distutils_enable_tests (${PYTHON_MULTI_USEDEP} usage)Sam James2021-06-291-1/+1
| | | | | | | | We banned PYTHON_MULTI_USEDEP in EAPI 8, so this internal usage causes breakage when using distutils_enable_tests in an EAPI 8 ebuild. Reported-by: Marco Scardovi (scardracs) <marco@scardovi.com> Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: prefix MESON_DEPEND with an underscoreMike Gilbert2021-06-281-3/+3
| | | | | | Avoids a pkgcheck warning about undocumented variables. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eapi7-ver.eclass: update EAPI 8 error messageDavid Michael2021-06-281-2/+2
| | | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21409
* meson.eclass: EAPI 8 supportDavid Michael2021-06-281-16/+9
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* ninja-utils.eclass: EAPI 8 supportDavid Michael2021-06-281-11/+9
| | | | | | | Also drop support for EAPIs < 5 to match multiprocessing.eclass. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* java-pkg-simple.eclass: improved code related to java 9+ modulesMiroslav Šulc2021-06-271-8/+24
| | | | | Bug: https://bugs.gentoo.org/796875 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* strip-linguas.eclass: New eclass, split off from l10nUlrich Müller2021-06-263-50/+72
| | | | | | | | Originally strip-linguas() was part of eutils.eclass. It was moved to l10n.eclass in late 2020, but there are few (if any) ebuilds using strip-linguas and the other functions from l10n. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* l10n.eclass: Minor touchup of EAPI conditionalUlrich Müller2021-06-261-2/+2
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eutils.eclass: Minor touchups of EAPI conditionalsUlrich Müller2021-06-261-6/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rpm.eclass: Support EAPI 8, some cleanupUlrich Müller2021-06-261-13/+20
| | | | | Closes: https://bugs.gentoo.org/655256 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* usr-ldscript.eclass: Remove duplicate prefix checkUlrich Müller2021-06-251-1/+0
| | | | | | This code won't be reached with USE=prefix. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* usr-ldscript.eclass: Support EAPI 8, drop support for EAPI 4Ulrich Müller2021-06-251-5/+5
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Revert "distutils-r1.eclass: Use 'dosym -r' in EAPI 8"Mike Gilbert2021-06-241-4/+2
| | | | | | | | | | | | | | | | This breaks installation of scripts when EPREFIX is non-empty. _distutils-r1_wrap_scripts should create a symlink like this: "${D}/_${EPYTHON}${EPREFIX}/usr/bin/myscript" The "dosym" version of this code creates the following instead: "${D}${EPREFIX}/_${EPYTHON}/usr/bin/myscript" Reverts: 9f831e240a9804a996fc80015f64d5e102ced740 Closes: https://bugs.gentoo.org/798456 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* Revert "python-utils-r1.eclass: Remove _python_ln_rel"Mike Gilbert2021-06-241-0/+40
| | | | | Reverts: 1f678a8cae66480493c43739435ec7feb85c08da Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* java-pkg-simple.eclass: added support for module-info.java compilationMiroslav Šulc2021-06-241-4/+53
| | | | | | | for more info see https://bugs.gentoo.org/796875 Bug: https://bugs.gentoo.org/796875 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* acct-user.eclass: EAPI 8 supportDavid Michael2021-06-241-9/+10
| | | | | | | | | | | | | | | | | | | Update the documentation to describe how to depend on GLEP 81 packages with EAPI 8. There is no NSS module for resolving the accounts installed in $SYSROOT, so acct-* packages might also need need to be in $BROOT e.g. for fowners which directly calls chown. - BDEPEND so the build system can resolve names when building packages in nonempty $SYSROOT at src_install time. - IDEPEND so the build system can resolve names when installing binary packages in nonempty $ROOT at pkg_preinst time. - RDEPEND so the target system can use the accounts. Closes: https://github.com/gentoo/gentoo/pull/21377 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* acct-group.eclass: EAPI 8 supportDavid Michael2021-06-241-9/+10
| | | | | | | | | | | | | | | | | | Update the documentation to describe how to depend on GLEP 81 packages with EAPI 8. There is no NSS module for resolving the accounts installed in $SYSROOT, so acct-* packages might also need need to be in $BROOT e.g. for fowners which directly calls chown. - BDEPEND so the build system can resolve names when building packages in nonempty $SYSROOT at src_install time. - IDEPEND so the build system can resolve names when installing binary packages in nonempty $ROOT at pkg_preinst time. - RDEPEND so the target system can use the accounts. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* user.eclass: EAPI 8 supportDavid Michael2021-06-241-3/+4
| | | | | | | Also drop support for EAPIs 0-4 to match user-info.eclass. Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* user-info.eclass: EAPI 8 supportDavid Michael2021-06-241-2/+2
| | | | | Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: David Seifert <soap@gentoo.org>
* python-utils-r1.eclass: Revert "Remove python_optimize support..."Michał Górny2021-06-241-2/+6
| | | | | | | | python_optimize is still used in dev-python/pypy. Reverts: 964f5c61816659b0138c8fe98593786d9da7f084 Closes: https://bugs.gentoo.org/798330 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove _python_ln_relMichał Górny2021-06-231-40/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use 'dosym -r' in EAPI 8Michał Górny2021-06-231-2/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Ban dift --via-home in EAPI 8Michał Górny2021-06-231-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Require >=pyproject2setuppy-15Michał Górny2021-06-231-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Replace mydistutilsargs with DISTUTILS_ARGSMichał Górny2021-06-231-7/+16
| | | | | | | Add a new correctly-cased DISTUTILS_ARGS variable that replaces mydistutilsargs. Ban the latter in EAPI 8. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Refactor --install-scripts rewriting logicMichał Górny2021-06-231-22/+21
| | | | | | | | | Refactor the --install-scripts rewriting logic in distutils-r1_python_install to be less horrid. Instead of using variable indirection, just inline the mydistutilsargs logic from esetup.py and rewrite the combined argument array. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Use 'dosym -r' in EAPI 8Michał Górny2021-06-231-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Ban python_gen_usedep in EAPI 8Michał Górny2021-06-231-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Remove obsolete QA hack for PYTHON_USEDEPMichał Górny2021-06-231-14/+4
| | | | | | | | | Remove the QA hack for PYTHON_USEDEP that originally prevented python-r1 ebuilds from wrongly depending on python-single-r1 packages. Since the latter no longer define python_targets*, these dependencies are now caught without any hacks. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: Enable EAPI 8Michał Górny2021-06-231-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Update doc for -2/-3 arg removalMichał Górny2021-06-231-35/+28
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Ban PYTHON_MULTI_USEDEP in EAPI 8Michał Górny2021-06-231-6/+6
| | | | | | | PYTHON_MULTI_USEDEP was a temporary transition measure, and is now equivalent to PYTHON_USEDEP. Ban it in EAPI 8 to clean up ebuilds. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-single-r1.eclass: Update doc for -2/-3 arg removalMichał Górny2021-06-231-20/+16
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Remove obsolete PYTHON_USEDEP single-r1 hackMichał Górny2021-06-231-7/+7
| | | | | | | | | Remove the QA hack for PYTHON_USEDEP that originally prevented python-r1 ebuilds from wrongly depending on python-single-r1 packages. Since the latter no longer define python_targets*, these dependencies are now caught without any hacks. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Remove obsolete eselect-python useMichał Górny2021-06-231-16/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Enable EAPI 8Michał Górny2021-06-231-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Fix python_fix_shebang for py3.10+Michał Górny2021-06-231-5/+7
| | | | | | We should be safe until Python 3.99 now ;-). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3Michał Górny2021-06-232-0/+7
| | | | | | | There is no use for python_is_python3 anymore, as Python 2 is no longer supported at runtime and the remaining any-r1 uses are pure-2. Signed-off-by: Michał Górny <mgorny@gentoo.org>