summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* openib.eclass: last-rite for removalDavid Seifert2022-01-161-1/+2
| | | | | | | Closes: https://github.com/gentoo/gentoo/pull/23716 Bug: https://bugs.gentoo.org/601692 Bug: https://bugs.gentoo.org/830999 Signed-off-by: David Seifert <soap@gentoo.org>
* distutils-r1.eclass: Implement PEP517 modeMichał Górny2022-01-161-90/+319
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a PEP517 mode to the distutils-r1.eclass in order to facilitate building packages via PEP517 backends. In order to use it, set DISTUTILS_USE_PEP517 to the appropriate build system name. The eclass will take care of setting BDEPEND, then invoke the backend to build a wheel and then install its contents in python_compile(). The install phase is limited to merging the staging area into the image directory. In PEP517 mode, the test phase is automatically provided with venv-style install tree that should suffice the vast majority of test suites. As a result, distutils_install_for_testing should no longer be necessary and is not available in this mode. The new mode can also be used to install pre-PEP517 distutils and setuptools packages. To do so, just specify setuptools backend. If pyproject.toml is missing, the eclass assumes legacy setuptools backend that invokes setup.py. It also enables setuptools-vendored distutils, effectively carrying the migration from deprecated stdlib version. The PEP517 support effectively deprecates the legacy eclass mode. This follows upstream deprecation of distutils and install commands in setuptools. Closes: https://github.com/gentoo/gentoo/pull/23750 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix manpage formattingMichał Górny2022-01-161-0/+4
| | | | | | Thanks to arthurzam for noticing. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Force stdlib distutils for the time beingMichał Górny2022-01-161-0/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Minimize & unify dift --via-venv logicMichał Górny2022-01-161-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modify `distutils_install_for_testing --via-venv` to create a minimal venv manually rather than relying on Python to do so. Use root-style install rather than the egg-style to improve consistency with regular installs. This is a step towards unifying different install layouts used within the eclass. Right now we support three different variants for testing: 1. The build-dir layout that's created by python_compile() and exposed unconditionally through PYTHONPATH. 2. The --via-root layout of dift that resembles install closer (primarily through including package metadata) and also uses PYTHONPATH. 3. The --via-venv layout of dift that creates a venv and installs the packages there. It requires only PATH, not PYTHONPATH. The last layout is the newest and probably the most compatible but it requires additional install step. Since the PEP517 build logic is going to require installing a wheel anyway, the plan is to inject a minimal venv into the staging directory and use it unconditionally for tests. The purpose of this patch is to prepare a single code snippet that will be used both by dift and the new logic logic. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: remove EAPI 4 and 5David Seifert2022-01-161-35/+7
| | | | | | Signed-off-by: David Seifert <soap@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/23699 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: inline cp_argsDavid Seifert2022-01-161-29/+7
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: remove dead userland_BSDDavid Seifert2022-01-161-23/+12
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib-build.eclass: remove EAPI 5David Seifert2022-01-161-37/+5
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib-minimal.eclass: remove EAPI 5David Seifert2022-01-161-8/+9
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-glibc.eclass: Begone foul spirit!Andreas K. Hüttel2022-01-161-1488/+0
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* rust-toolchain.eclass: support EAPI=8Georgy Yakovlev2022-01-131-2/+3
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* python-utils-r1.eclass: epytest, force color output to match NOCOLORMichał Górny2022-01-131-0/+12
| | | | | | | | Force pytest color output on or off based on the presence and value of NOCOLOR envvar. This fixes inconsistent use of colors that largely depended on upstream pytest settings. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cargo.eclass: really fix typoGeorgy Yakovlev2022-01-121-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: fix typo in email addressGeorgy Yakovlev2022-01-121-2/+2
| | | | | Thanks-to: Alexey Zapparov alexey@zapparov.com Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* findlib.eclass: flip to +ocamloptSam James2022-01-111-2/+2
| | | | | | | This is the expectation in general, and it's masked on arches where it's not available. Signed-off-by: Sam James <sam@gentoo.org>
* eclass/dune.eclass: src_test do not change warn to errAlfredo Tupone2022-01-101-1/+1
| | | | | | Closes: https://bugs.gentoo.org/822876 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* apache-2.eclass: remove dead userland_BSDDavid Seifert2022-01-091-10/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* distutils-r1.eclass: Bump minimal pytest depMichał Górny2022-01-091-2/+2
| | | | | | | | Bump the minimal pytest dep to what we have right now, since a growing number of packages requires new pytest version (>= 6.2.4 is the highest explicit dep we have) and there is really no point in repeating the dep. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass: Remove explicit dep on python-execMichał Górny2022-01-094-17/+4
| | | | | | | | The dev-lang/python-exec dependency is now enforced through dev-lang/python, remove the explicit dep to reduce the metadata size and make dependency resolution lighter. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Bump minimal Python versionsMichał Górny2022-01-093-4/+10
| | | | | | | Bump minimal Python package versions to ensure that the python-exec deps are inside. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kde.org.eclass: Add kde-frameworks/countryflags to portingAids URIsAndreas Sturmlechner2022-01-091-0/+1
| | | | | Closes: https://bugs.gentoo.org/830828 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Use new ecm_punt_kf_module/ecm_punt_qt_module internallyAndreas Sturmlechner2022-01-081-4/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Introduce ecm_punt_kf_module and ecm_punt_qt_moduleAndreas Sturmlechner2022-01-081-1/+50
| | | | | | | | | | | | | | | | | | | | | | Upstream has begun replacing find_package(Qt5 ...) with find_package(Qt${QT_MAJOR_VERSION}) ...) for optional build with Qt6 - this breaks existing ecm_punt_bogus_dep() regexps. There is no known usage of ecm_punt_bogus_dep with anything else than Qt5 or KF5, so simply replace it with two public functions fixed on Qt* and KF* module removal. Also add '${dep}' info to 'removed by ecm.eclass' output. Replaces ecm_punt_bogus_dep(). Closes: https://bugs.gentoo.org/830729 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/mercurial.eclass: add EAPI 8Cédric Krier2022-01-081-2/+2
| | | | | Closes: https://bugs.gentoo.org/829131 Signed-off-by: Cédric Krier <cedk@gentoo.org>
* ecm.eclass: Case-insensitivity for grep and sedAndreas Sturmlechner2022-01-071-3/+3
| | | | | | Reported-by: Milos Popovic <gpopac@gmail.com> Bug: https://bugs.gentoo.org/829998 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kernel-2.eclass: fix minor OBOBJCOPY -> OBJCOPY typoAdrian Ratiu2022-01-061-1/+1
| | | | | | | Fixes:55f5c68c01e791c7339144aadc1f20802791551e Suggested-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* readme.gentoo-r1.eclass: Document the DOC_CONTENTS variableUlrich Müller2022-01-061-1/+6
| | | | | | This fixes a spurious "UnusedInherits" warning from pkgcheck. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Remove duplicateMike Pagano2022-01-051-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* kernel-2.eclass: Respect portage toolchain variablesAdrian Ratiu2022-01-041-1/+1
| | | | | | | | | | | | | | Starting with kernel>=v5.7 the build system can override the tools vars by setting LLVM=1 [1], but older kernels still use the default GNU tools, so to be able to use a full LLVM/Clang build, CC & co should be set to their respective portage values. [1] a0d1c951ef08 kbuild: support LLVM=1 to switch the default tools to Clang/LLVM Co-authored-by: Manoj Gupta <manojgupta@chromium.org> Signed-off-by: Adrian Ratiu <adrian.ratiu@collabora.com> Closes: https://github.com/gentoo/gentoo/pull/23091 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* qt5-build.eclass: remove kernel_FreeBSDDavid Seifert2022-01-041-8/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* unpacker.eclass: remove kernel_AIX special case for *.debDavid Seifert2022-01-041-4/+1
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* linux-info.eclass: drop unnecessary IUSE="kernel_linux"Sam James2022-01-041-3/+1
| | | | | | It's already an implicit IUSE, so we don't need this. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: drop unnecessary IUSE="kernel_linux"Sam James2022-01-041-2/+2
| | | | | | It's already an implicit IUSE, so we don't need this. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: remove freebsd-libcDavid Seifert2022-01-021-6/+0
| | | | | Closes: https://github.com/gentoo/gentoo/pull/23628 Signed-off-by: David Seifert <soap@gentoo.org>
* java-utils-2.eclass: remove freebsd-libcDavid Seifert2022-01-021-7/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* multilib.eclass: adopt riscv conventions of the 20.0 profilesAndreas K. Hüttel2022-01-021-8/+24
| | | | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/23487 Bug: https://bugs.gentoo.org/797679
* toolchain.eclass: remove uclibcDavid Seifert2022-01-021-37/+3
| | | | | Closes: https://bugs.gentoo.org/820905 Signed-off-by: David Seifert <soap@gentoo.org>
* eclass/tests/python-utils-r1.sh: Remove obsoletep py2 usageMichał Górny2021-12-311-35/+11
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Update expected pypy3 includedirMichał Górny2021-12-311-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Update expected deps in distutils-r1 testsMichał Górny2021-12-312-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: use HTTPS for snapshotsSam James2021-12-281-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* eclass/webapps.eclass: added eapi8 supportMiroslav Šulc2021-12-281-3/+3
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/java-ant-2.eclass: added eapi8 supportMiroslav Šulc2021-12-281-3/+3
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/java-osgi.eclass: added eapi8 supportMiroslav Šulc2021-12-281-2/+2
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/java-pkg-opt-2.eclass: added eapi8 supportMiroslav Šulc2021-12-281-2/+2
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* eclass/java-virtuals-2.eclass: added eapi8 supportMiroslav Šulc2021-12-281-3/+3
| | | | Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* distutils-r1.eclass: depend on >=dev-python/pyproject2setuppy-22Mike Gilbert2021-12-271-1/+1
| | | | | Closes: https://bugs.gentoo.org/830104 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* ada.eclass: build deps on gnat-gpl[ada]Alfredo Tupone2021-12-271-1/+1
| | | | | | Closes: https://bugs.gentoo.org/830094 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
* multilib.eclass: add initial defaults for ARCH=loongWANG Xuerui2021-12-261-0/+9
| | | | | | | | | | | There is only full support for the LP64D ABI in the initial upstream submissions for the various low-level pieces, so full multilib combinations are not pursued at the moment; but the expected library search path of gcc (`lib64`) means the default of `lib` does not work in our case. Signed-off-by: WANG Xuerui <git@xen0n.name> Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>