summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* cmake-multilib.eclass: Prepare for cmake.eclass default in future EAPIAndreas Sturmlechner2021-03-111-20/+27
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake-multilib.eclass: Drop EAPI-6 supportAndreas Sturmlechner2021-03-111-3/+3
| | | | | Bug: https://bugs.gentoo.org/770574 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kernel-install.eclass: Update symlink if target has no sourcesMichał Górny2021-03-111-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Refactor /usr/src/linux check to functionMichał Górny2021-03-111-26/+43
| | | | | | | Refactor the check whether /usr/src/linux should be updated to a separate function, to improve readability. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove python.eclass guardsMichał Górny2021-03-111-170/+0
| | | | | | | python.eclass is gone for a long time, ::progress is discontinued, it should be safe to assume people will no longer be copying old stuff. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove distutils.eclass guardsMichał Górny2021-03-111-34/+0
| | | | | | | distutils.eclass is gone for a long time, ::progress is discontinued, it should be safe to assume people will no longer be copying old stuff. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Fix any-r1-style python_setup without USE flagsMichał Górny2021-03-111-5/+8
| | | | | | | Fix python_setup() not to fail if no USE flags are set while any-r1 API is being used. Reported by Arfrever. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use underscores in .pydistutils.cfg keysMichał Górny2021-03-111-6/+6
| | | | | | | | Switch to using underscore instead of hyphens in .pydistutils.cfg keys. The latter form is now deprecated by setuptools, while both seem to work fine with plain distutils. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use a common distutils-r1_python_testMichał Górny2021-03-111-46/+47
| | | | | | | | | | Use a common distutils-r1_python_test function to simplify handling different test scenarios. This avoids code duplication due to defining a lot of python_test() variants, as well as it makes it possible for overriden python_test() to call the base implementation provided by distutils_enable_tests. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/docs.eclass: quickfix, add missing "s"Andrew Ammerlaan2021-03-111-1/+1
| | | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net> Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* kernel-install.eclass: Fix updating symlink w/ localversionMichał Górny2021-03-101-0/+1
| | | | | Closes: https://bugs.gentoo.org/775176 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* tmpfiles.eclass: introduce TMPFILES_OPTIONAL variableMike Gilbert2021-03-081-1/+9
| | | | | | | | This allows the automatic dependency on virtual/tmpfiles to be disabled. Bug: https://bugs.gentoo.org/774855 Signed-off-by: Mike Gilbert <floppym@gentoo.org> Acked-by: David Seifert <soap@gentoo.org>
* python-utils-r1.eclass: Always force test summary in epytestMichał Górny2021-03-081-1/+1
| | | | | | | | Explicitly request pytest to display the summary of all test results except for passing tests. This overrides the upstream defaults to improve the quality of build logs. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Use epytestMichał Górny2021-03-081-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Introduce epytest helperMichał Górny2021-03-081-0/+23
| | | | | | | | | | | | Introduce an epytest helper to call pytest with the standard set of options, and the standard error message. While distutils_enable_tests made running pytest a lot easier, there are still many cases when python_test() needs to be redefined in order to pass additional options or perform additional actions. Having the extra helper will reduce code duplication and make it easier to change the standard options. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix handling EOF in test phaseMichał Górny2021-03-071-6/+10
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix initrd cleanup for uefi=yesMichał Górny2021-03-011-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Include a RDEP on libelfMichał Górny2021-02-281-0/+6
| | | | | Closes: https://bugs.gentoo.org/732210 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Fix bypassing dracut configsMichał Górny2021-02-281-2/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* oasis.eclass: add ml@ maintainerSam James2021-02-251-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* opam.eclass: add ml@ maintainerSam James2021-02-251-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* findlib.eclass: add ml@ maintainerSam James2021-02-251-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* dune.eclass: Add ml@ maintainerSam James2021-02-251-1/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* desktop.eclass: Avoid file collisions in make_desktop_entry()Ulrich Müller2021-02-241-3/+10
| | | | | | | Closes: https://bugs.gentoo.org/771708 Reported-by: Sergey Torokhov <torokhov-s-a@yandex.ru> Suggested-by: Ionen Wolkens <sudinave@gmail.com> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/toolchain.eclass: disable USE=vtv on gcc-10 and aboveSergei Trofimovich2021-02-221-1/+10
| | | | | | | | | | USE=vtv has a few problems: - it's build system has a few quirks: bug #767706, bug #582524 - it's developed in gcc for a while Bug: https://bugs.gentoo.org/582524 Bug: https://bugs.gentoo.org/767706 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* kde.org.eclass: Fix remaining missing documentationAndreas Sturmlechner2021-02-211-1/+11
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Group all banned cmake-utils_* functions togetherAndreas Sturmlechner2021-02-211-35/+35
| | | | | | Move _cmake_check_build_dir to a better place too. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Documentation: cmake_src_prepare() *MUST* be runAndreas Sturmlechner2021-02-211-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Better description of cmake_build() and cmake_src_compile()Andreas Sturmlechner2021-02-211-3/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Document _cmake_check_build_dir and _cmake_modify-cmakelistsAndreas Sturmlechner2021-02-211-0/+6
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Merge mycmakeargs description into cmake_src_configure()Andreas Sturmlechner2021-02-211-12/+7
| | | | | | | | | Fix outdated mycmakeargs documentation (use of banned function in EAPI-7) Make it a part of phase function desc than instead of appearing under FUNCTIONS. Reported-by: Joonas Niilola <juippis@gentoo.org> Closes: https://bugs.gentoo.org/771876 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* llvm.eclass: Support LLVM 13Michał Górny2021-02-201-2/+2
| | | | | Closes: https://bugs.gentoo.org/771699 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Depend on PythonMichał Górny2021-02-181-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Use pythonMichał Górny2021-02-181-1/+3
| | | | | Closes: https://bugs.gentoo.org/771207 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* golang-base.eclass: keep GO111MODULE in auto modeWilliam Hubbs2021-02-171-0/+3
| | | | | | | | Go 1.16 forces module-aware mode on by default but this breaks builds. Bug: https://bugs.gentoo.org/771129 Signed-off-by: William Hubbs <williamh@gentoo.org>
* meson.eclass: define objcopyDavid Michael2021-02-151-0/+2
| | | | | | Closes: https://bugs.gentoo.org/770844 Signed-off-by: David Michael <fedora.dm0@gmail.com> Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* distutils-r1.eclass: fix comment typoSam James2021-02-151-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* elisp-common.eclass: More verbose error for failed version detectionUlrich Müller2021-02-151-1/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/cargo.eclass: minor fixesGeorgy Yakovlev2021-02-111-3/+4
| | | | | | | | | fix typo. fix supported eapis docstring. fix variable type. add myself to authors. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/rust-toolchain.eclass: add aarch64-*-musl target supportGeorgy Yakovlev2021-02-111-1/+2
| | | | | Bug: https://bugs.gentoo.org/767451 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* python-r1.eclass: Allow empty depstring to python_gen_any_depMichał Górny2021-02-111-7/+8
| | | | | | | | | Allow python_gen_any_dep to accept an empty/missing depstring, in order to generate a pure dependency on the Python interpreter. This is a valid use case for it since python-r1 does not provide any-r1 style PYTHON_DEPS. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Require EPYTHON to be setMichał Górny2021-02-111-1/+3
| | | | | | | There is no context in which the function is called without EPYTHON set, so require it to be set instead of adding a fallback. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Fix setuptools without setup.pyMichał Górny2021-02-111-9/+8
| | | | | | | | | | Invoke pyproject2setuppy directly instead of writing the setup.py wrapper. This is necessary to correctly support setuptools via pyproject.toml without setup.py. Writing setup.py confuses pyproject2setuppy into running the setup.py code path instead of the correct non-setup.py path. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* apache-2.eclass: Replace elog with einfoLars Wendler2021-02-101-1/+1
| | | | | Closes: https://bugs.gentoo.org/769914 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
* ruby-fakegem.eclass: fix each_fakegem_install for PrefixFabian Groffen2021-02-071-2/+2
| | | | | | | _extensionsdir is based on ruby_fakegem_gemsdir, which strips $EPREFIX for use with helpers Signed-off-by: Fabian Groffen <grobian@gentoo.org>
* eclass/ruby-fakegem.eclass: fix DESCRIPTION syntaxHans de Graaff2021-02-071-1/+1
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* eclass/ruby-fakegem.eclass: fix EXTENSION_LIBDIR handlingHans de Graaff2021-02-071-1/+2
| | | | | | | Create the directory if needed and take into account that RUBY_FAKEGEM_EXTENSION_LIBDIR may or may not have an ending /. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-fakegem.eclass: support for extensionsHans de Graaff2021-02-071-1/+60
| | | | | | | | | | | | | | | | | | | | | Up to now handling of extensions was done in each ebuild that contained them. This means that handling is often inconsistent (e.g. not taking multilib's get_modname into account) and there is a lot of duplicated code in ebuilds. Furthermore, this also does not install extensions into the special extensions directory. rubygems itself has been doing this for some time, and now bundler 2.2.x has started to explicitly check for the extensions in this directory, making it incompatibly with our previous way of installing gems. The new RUBY_FAKEGEM_EXTENSIONS array and RUBY_FAKEGEM_EXTENSION_LIBDIR options provide support for installing extensions automatically based on these settings, taking into account that the extensions also must be part of testing and that it must be installed properly. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* qt5-build.eclass: Make dev-qt/qttest dependency work for qtwebengine snapshotAndreas Sturmlechner2021-02-051-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Add missing RESTRICT+=" !test? ( test )"Andreas Sturmlechner2021-02-051-2/+6
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>