summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* git-r3.eclass: Handle recursive submodules in EGIT_SUBMODULESMichał Górny2020-01-101-8/+19
| | | | | | | | Match recursive submodules using their full paths rather than path relatively to the parent submodule. Closes: https://bugs.gentoo.org/694494 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/meson.eclass: update the meson and ninja dependenciesWilliam Hubbs2020-01-101-2/+2
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* cargo.eclass: make regex both readonly and localGeorgy Yakovlev2020-01-101-1/+1
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: Use a regex to fix crate name/version extractionCraig Andrews2020-01-101-8/+5
| | | | | | | Closes: https://bugs.gentoo.org/705044 Signed-off-by: Craig Andrews <candrews@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/14287 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* multilib-build.eclass: Fix @CODE tokens in comment.Ulrich Müller2020-01-101-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* fortran-2.eclass: Remove stray @CODE token from comment.Ulrich Müller2020-01-101-1/+0
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* subversion.eclass: Use valid domains for examples.Ulrich Müller2020-01-091-1/+1
| | | | | | | | These get expanded to real hyperlinks by eclass-to-manpage.awk followed by man2html, leading to false positives when checking for broken links in the devmanual. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-install.eclass: Fix initrd locationMichał Górny2020-01-091-2/+4
| | | | | Closes: https://bugs.gentoo.org/705058 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Build logic for dist-kernelsMichał Górny2020-01-091-0/+175
| | | | | | | Introduce a new eclass that contains common logic for building distribution kernels from source. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Install logic for dist-kernelsMichał Górny2020-01-091-0/+309
| | | | | | | | Introduce a new eclass that contains common logic needed to test and install distribution kernels. This is the eclass common both to kernels built from source and installed from binary packages. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: set a reasonable default for the go build cacheWilliam Hubbs2020-01-061-0/+4
| | | | Signed-off-by: William Hubbs <williamh@gentoo.org>
* cmake.eclass: Fix cmake-utils_src_make error messageAndreas Sturmlechner2020-01-051-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Fix CMAKE_VERBOSE logicAndreas Sturmlechner2020-01-051-2/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Add comment regarding cmake_src_prepare pushd/popdAndreas Sturmlechner2020-01-051-0/+2
| | | | | | We'll have to test affected packages when changing this. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Fix build with CMAKE_VERBOSE=OFFAndreas Sturmlechner2020-01-051-2/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: add an upstream bug reference to ELFv2 ABISergei Trofimovich2020-01-051-0/+1
| | | | | | Closes: https://bugs.gentoo.org/704784 Bug: https://gcc.gnu.org/PR93157 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* cmake.eclass: Fix the fatal typo fixAndreas Sturmlechner2020-01-051-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ruby-ng.eclass: Include (-) in RUBY_TARGETS USE-dependenciesMichał Górny2020-01-051-4/+4
| | | | | | | Using 2-style USE dependencies on packages not having the flag in question is forbidden by PMS. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake.eclass: Fix fatal typoAndreas Sturmlechner2020-01-051-1/+1
| | | | | Thanks-to: Tomas Mozes <hydrapolic@gmail.com> Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* toolchain.eclass: enable elfv2 abi on powerpc64-*-musl unconditionallyGeorgy Yakovlev2020-01-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on ppc64 gcc assumes the following: from gcc ppc64 manual: -mabi=elfv1 Change the current ABI to use the ELFv1 ABI. This is the default ABI for big-endian PowerPC 64-bit Linux. Overriding the default ABI requires special system support and is likely to fail in spectacular ways. -mabi=elfv2 Change the current ABI to use the ELFv2 ABI. This is the default ABI for little-endian PowerPC 64-bit Linux. Overriding the default ABI requires special system support and is likely to fail in spectacular ways. Since we are taking gcc defaults, let's pass --with-abi=elfv2 on musl targets without it it will fail, since musl does not support elfv1 at all. from musl INSTALL file: * PowerPC64 * Both little and big endian variants are supported * Compiler toolchain must provide 64-bit long double, not IBM double-double or IEEE quad * Compiler toolchain must use the new (ELFv2) ABI regardless of whether it is for little or big endian https://git.musl-libc.org/cgit/musl/tree/INSTALL Closes: https://github.com/gentoo/gentoo/pull/14234 Closes: https://bugs.gentoo.org/704784 Revieved-by: Sergei Trofimovich <slyfox@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* kodi-addons.eclass: Switch EAPI-7 to cmake.eclassAndreas Sturmlechner2020-01-041-4/+6
| | | | | | All EAPI-7 consumers in Gentoo ebuild repository have been ported. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cargo.eclass: Delete /usr/.crates2.json in cargo_src_installValentin Finini2020-01-031-0/+1
| | | | | | Signed-off-by: Valentin Finini <farenjihn@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14231 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cmake.eclass: src_prepare: Revert to cmake-utils.eclass behaviourAndreas Sturmlechner2020-01-031-0/+4
| | | | | | | | Re-adding pushd/popd until we figure out how to make it consistent across the eclass. Bug: https://bugs.gentoo.org/704524 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: Ban CMAKE_MIN_VERSION for realAndreas Sturmlechner2020-01-021-0/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* python*-r1.eclass: Update examples for virtual/pypy removalMichał Górny2019-12-302-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Eliminate virtual/pypyMichał Górny2019-12-302-4/+4
| | | | | | | Depend on dev-python/pypy directly, as that's the common package with the new layout. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove PYTHON_TARGETS="jython2_7"Michał Górny2019-12-302-4/+3
| | | | | | | | | Jython was supported as an experimental implementation but due to interoperability issues and very slow development, its (re-)deployment in ebuilds never took off. Now that Python 2.7 is going away, there's no point in keeping its future support. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove PYTHON_TARGETS="pypy"David Seifert2019-12-302-4/+4
| | | | | | | | | | * With the EOL of CPython 2, we also want to remove support for PyPy (i.e. PyPy for Python 2). This change does not affect PyPy3, i.e. Pypy for Python 3. Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Remove PYTHON_TARGETS="python3_5"David Seifert2019-12-302-4/+4
| | | | | | | | | | | * Python 3.5 will go EOL on 2020-09-13 and in order to reduce testing and maintenance burden, we want to keep the number of active Py3 impls below four. https://devguide.python.org/#status-of-python-branches Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Constrain to EAPI >= 5David Seifert2019-12-301-28/+9
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: Constrain to EAPI >= 5David Seifert2019-12-301-6/+4
| | | | | Signed-off-by: David Seifert <soap@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/cargo.eclass: switch (b)depend to virtual/rustGeorgy Yakovlev2019-12-291-3/+3
| | | | | Bug: https://bugs.gentoo.org/695698 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cmake-multilib.eclass: Add CMAKE_ECLASS switchAndreas Sturmlechner2019-12-291-6/+20
| | | | | | For transition from cmake-utils.eclass to cmake.eclass. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Switch to cmake.eclassAndreas Sturmlechner2019-12-291-15/+23
| | | | | | Provide cmake-utils_use_find_package alias. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* ecm.eclass: Switch to cmake.eclassAndreas Sturmlechner2019-12-291-14/+14
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cmake.eclass: New eclass, EAPI-7 only cleanup of cmake-utilsAndreas Sturmlechner2019-12-291-0/+637
| | | | | | | | | | | | | | | - Drop all pre-EAPI-7 compatibility - Drop CMAKE_MIN_VERSION - Drop CMAKE_REMOVE_MODULES - Array support for CMAKE_REMOVE_MODULES_LIST - Drop pushd/popd from src_prepare - Drop _cmake_generator_to_use() CMAKE_MAKEFILE_GENERATOR validity is already checked in global scope. Move the check for dev-util/ninja into src_prepare. - Rename cmake_src_make() -> cmake_build() - Drop _cmake_ninja_src_build and _cmake_emake_src_build, move into cmake_build Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cargo.eclass: honor NOCOLOR settingGeorgy Yakovlev2019-12-271-0/+2
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: make cargo verbosity configurableGeorgy Yakovlev2019-12-271-4/+14
| | | | | Users can set CARGO_TERM_VERBOSE=false in make.conf if less build output is desired. Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: move jobs configuration to generated configfileGeorgy Yakovlev2019-12-271-3/+6
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: force offline operationsGeorgy Yakovlev2019-12-271-0/+3
| | | | | Bug: https://bugs.gentoo.org/697762 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* cargo.eclass: require rust 1.37 or newer unconditionallyGeorgy Yakovlev2019-12-271-6/+2
| | | | Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* eclass/cargo.eclass: specify --path . to installDoug Goldstein2019-12-261-1/+7
| | | | | | | | | | | | | | cargo install has long required --path . for 2018 edition crates but not required it for 2015 edition crates. It is supported however for 2015 edition crates and works for all versions in the tree so it makes sense to make it the default. Added CARGO_INSTALL_PATH as an eclass variable allowing to override the default. Closes: https://bugs.gentoo.org/703590 Signed-off-by: Doug Goldstein <cardoe@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/14097 Tested-by: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
* ruby-utils.eclass: add ruby27Hans de Graaff2019-12-261-1/+5
| | | | Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ruby-utils.eclass: update target preferencesHans de Graaff2019-12-251-2/+2
| | | | | | Match them to the current situation on the most common arches. Signed-off-by: Hans de Graaff <graaff@gentoo.org>
* ecm.eclass: Ban variables from kde5*eclass for stricter portingAndreas Sturmlechner2019-12-241-0/+18
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5-functions.eclass: Drop functions/vars moved to ecm/kde.orgAndreas Sturmlechner2019-12-241-46/+0
| | | | | | | | | | _check_gcc_version moved to ecm.eclass KDE_GCC_MINIMAL moved to ecm.eclass KDE_BUILD_TYPE moved to kde.org.eclass punt_bogus_dep is deprecated (replaced by ecm_punt_bogus_dep in ecm.eclass) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Add fallbacks in case of KDE_AUTODEPS=falseAndreas Sturmlechner2019-12-241-3/+106
| | | | | | | ECM_KDEINSTALLDIRS, KDE_DEBUG, KDE_TEST were found to be in use even with KDE_AUTODEPS disabled. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* kde5.eclass: Inherit ecm.eclass and drop moved functions/varsAndreas Sturmlechner2019-12-241-267/+61
| | | | | | | | | | | | | | | | | | | | | Functions moved to ecm: - All phase functions so far exported by kde5 Variables moved to ecm: - ECM_KDEINSTALLDIRS - KDE_DEBUG (-> ECM_DEBUG) - KDE_DESIGNERPLUGIN (-> split into ECM_DESIGNERPLUGIN, KDE_DESIGNERPLUGIN) - KDE_EXAMPLES (-> ECM_EXAMPLES) - KDE_HANDBOOK (-> ECM_HANDBOOK) - KDE_DOC_DIR (-> ECM_HANDBOOK_DIR) - KDE_PO_DIRS (-> ECM_PO_DIRS) - KDE_QTHELP (-> ECM_QTHELP) - KDE_TEST (-> ECM_TEST) Variables deprecated: - KDE_AUTODEPS (re-use as a switch to inherit ecm or cmake-utils) Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* flag-o-matic.eclass: add LDFLAGS testing against linkerSergei Trofimovich2019-12-242-15/+59
| | | | | | | | | | | | | | | | Before the change we tested only compiler driver (gcc flag parser) for LDFLAGS. This does not cover cases when we would really like to filter out unsupported linker flags like -Wl,--hash-style=gnu passed to non-ELF targets. The change adds test-flag-CCLD() helper to perform all of assembly, compilation and linking steps. Helper is used to filter LDFLAGS variable in strip-unsupported-flags(). Closes: https://bugs.gentoo.org/333763 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* distutils-r1.eclass: Permit DISTUTILS_USE_SETUPTOOLS=manualMichał Górny2019-12-241-2/+5
| | | | | | | | | Add a new DISTUTILS_USE_SETUPTOOLS option to permit manually setting the dependencies correctly and suppressing the check. Requested by Arfrever. Signed-off-by: Michał Górny <mgorny@gentoo.org>