summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass/tests/python-utils-r1.sh: Cover PYTHON_{CFLAGS,LIBS}Michał Górny2020-02-271-0/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: Update post eclass changesMichał Górny2020-02-091-6/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* flag-o-matic.eclass: fix probe when CC points to absolute pathSergei Trofimovich2020-01-261-0/+6
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: fix arch downgrade for gcc-10Sergei Trofimovich2020-01-111-1/+11
| | | | | | The bug is in lexical comparison instead of version compare. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* python-utils-r1.eclass: Eliminate virtual/pypyMichał Górny2019-12-301-2/+2
| | | | | | | 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-301-1/+1
| | | | | | | | | 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-301-1/+1
| | | | | | | | | | * 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-301-1/+1
| | | | | | | | | | | * 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>
* flag-o-matic.eclass: add LDFLAGS testing against linkerSergei Trofimovich2019-12-241-1/+1
| | | | | | | | | | | | | | | | 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>
* eclass/tests/flag-o-matic.sh: clarify the filterSergei Trofimovich2019-12-231-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/toolchain-funcs.sh: fix gold tests, bug #700812Sergei Trofimovich2019-12-131-9/+9
| | | | | | | | | | | | | | | | | As written tests assumed that $CC always called ld.bfd as a linker. The assumption fails when default linker is not ld.bfd, (for example sys-devel/binutils[default-gold]). The change uses LDFLAGS=-fuse-ld=bfd explicitly. Fixes the following tests: * Testing tc-ld-is-gold (bfd selected) ... [ !! ] * Testing tc-ld-disable-gold (bfd selected) ... [ !! ] Reported-by: Michał Górny Closes: https://bugs.gentoo.org/700812 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/distutils-r1.sh: Disable setuptools depMichał Górny2019-12-071-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain.sh: fix 's/asserv/assert' typoSergei Trofimovich2019-12-011-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for _python_impl_matchesMichał Górny2019-11-241-0/+34
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain-funcs.sh: fix tc-cpp-is-true testsSergei Trofimovich2019-11-201-2/+2
| | | | | | | | The test was failing on systems without clang because presence of compiler was tested incorrectly (${compielr} typo). Reported-by: Michał Górny Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/flag-o-matic.sh: fix strip-unsupported-flags -B* set of testsSergei Trofimovich2019-11-201-2/+2
| | | | | | | | | Don't know how I tested previous state, it certainly could not work. The fix itself is fine though. The change updates expected output. Reported-by: Michał Górny Bug: https://bugs.gentoo.org/687198 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/git-r3_GIT_DIR.sh: stub out git callsMichał Górny2019-11-201-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/savedconfig.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/scons-utils.sh: Fix getting default job countMichał Górny2019-11-201-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3_GIT_DIR.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3_subrepos.sh: Use a supported EAPIMichał Górny2019-11-201-1/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/git-r3.sh: Partially fix and disableMichał Górny2019-11-202-1/+8
| | | | | | The tests rely on ext: remote support which apparently no longer works. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for py3.7Michał Górny2019-11-201-0/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Update PyPy pathsMichał Górny2019-11-201-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: update for modern implsMichał Górny2019-11-201-19/+21
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add tests for distutils_enable_testsMichał Górny2019-11-201-1/+66
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain-funcs.sh add test for 'tc-cpp-is-true()'Sergei Trofimovich2019-11-061-0/+24
| | | | | | | | | | | | | With patch from bug #698912 reverted we observe failures as: * Testing tc-cpp-is-true (gcc, defined) ... [ ok ] * Testing tc-cpp-is-true (gcc, not defined) ... [ ok ] * Testing tc-cpp-is-true (gcc, defined on -ggdb3) ... [ !! ] * Testing tc-cpp-is-true (clang, defined) ... [ !! ] * Testing tc-cpp-is-true (clang, not defined) ... [ ok ] * Testing tc-cpp-is-true (clang, defined on -ggdb3) ... [ !! ] Closes: https://bugs.gentoo.org/698912 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* toolchain.eclass: drop support for 'BRANCH_UPDATE'Sergei Trofimovich2019-10-191-1/+0
| | | | | | | BRANCH_UPDATE needs explicit tarball creation. Live ebuilds or weekly snapshots suit better for tracking upstream development. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: filter out '-B/foo' and '-B /foo' equallySergei Trofimovich2019-06-231-0/+16
| | | | | | | | | | | | | In bug #687198 Julian noticed that strip-unsupported-flags() filters out '-B' but not '/foo' in CFLAGS='-B /foo' and causes breakage. This change still does not allow -B flag but at least filters out both '-B' and it's parameter. Reported-by: Julian Cléaud Bug: https://bugs.gentoo.org/687198 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/toolchain.sh: add tests to prepare to eapi7-ver switchSergei Trofimovich2018-12-091-0/+91
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/toolchain.sh: prefix test nameSergei Trofimovich2018-12-091-1/+1
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/toolchain.sh: add EAPI=5 to unbreak testsSergei Trofimovich2018-12-091-0/+2
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eutils.eclass: Ban path_existsMichał Górny2018-08-151-35/+0
| | | | Closes: https://github.com/gentoo/gentoo/pull/9517
* flag-o-matic.eclass: treat "--param x" as a unit when testing flagsMike Gilbert2018-04-181-2/+2
| | | | | | | For clang and gcc, --param consumes the next argument. Testing --param and its value separately is nonsensical. Acked-by: Sergei Trofimovich <slyfox@gentoo.org>
* multiprocessing.eclass: Remove multijob_* functionsMichał Górny2018-01-041-42/+0
| | | | | | | | | | Remove the multijob functions that were used to run bash code in parallel. The code was very complex, fragile and unmaintained. It has been used scarcely, and pretty much by a single developer. It gave very little gain, usually at the cost of losing readability and violating PMS. Closes: https://bugs.gentoo.org/613322
* eapi7-ver.eclass: Use lexicographic rather than arithmetic comparison.Ulrich Müller2017-09-261-1/+1
| | | | This removes the 2**63-1 limit for integer components.
* eapi7-ver.eclass: Initial implementation of ver_test().Ulrich Müller2017-09-262-0/+146
| | | | | This should strictly follow Algorithms 3.1 to 3.7 specified in PMS: https://projects.gentoo.org/pms/6/pms.html#x1-310003.3
* eclass/tests/eapi7-ver_benchmark: More readable averageMichał Górny2017-09-191-1/+1
|
* eapi7-ver.eclass: 'Early adopter' version of EAPI 7 version manipMichał Górny2017-09-192-0/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EAPI 7 is introducing new version manipulation and comparison functions that aim to replace versionator.eclass. This eclass provides an 'early adopter' versions of those routines. It serves two goals: a. getting wider review and some real-life testing before the specification is set in stone, b. making it possible to adapt ebuilds to the new routines early, reducing the future work of EAPI 7 porting, c. improving cache generation speed (the rountines are roughly 15-20 times than versionator.eclass). For more details on the new logic, please see the eclass documentation. Long story short, we are introducing three functions: 1. ver_cut -- to get substrings of the version string, 2. ver_rs -- to replace version separators via indices, 3. ver_test -- to compare two version numbers. The third function is not implemented in the eclass. It's meant to reuse the algorithms from the package manager, and the final implementation will most likely reuse the code from the package manager (e.g. via IPC). The code has been initially written by Ulrich Müller.
* multiprocessing.eclass: add tests for float valuesMike Gilbert2017-09-141-1/+3
| | | | Bug: https://bugs.gentoo.org/630626
* flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274Michał Górny2017-08-251-1/+1
| | | | | | | | Include LDFLAGS in the variables stripped by strip-unsupported-flags. The code reuses the current functions for testing CC, and so only remove LDFLAGS that are rejected by the C compiler and not the linker. This solves the case of bug #621274 where LDFLAGS contained GCC-specific -flto flag.
* flag-o-matic.eclass: test-flag-PROG, ignore unused args in clangMichał Górny2017-08-251-0/+5
| | | | | | | | | | | | | | | | | | | By default, clang considers unused arguments as error when -Werror is used. Since flag tests are performed without linking, this causes all tests for linker flags to fail inadvertently and all those flags are stripped as a result. While the correctness of passing unused flags is doubtful, silently stripping them in a few random packages is certainly not the solution to the problem, and also makes the results differ between gcc and clang. To account for that, use clang's -Qunused-arguments option to silence unused argument warnings. To avoid wasting time on testing the compiler, just try passing -Qunused-arguments every time a flag check fails. If clang is not used, the additional call will fail just the same as the previous one (either because of the original flag or because of -Qunused-arguments), so the result will be the same.
* flag-o-matic.eclass: Revert "Strip LDFLAGS unsupported by the C..."Michał Górny2017-08-111-1/+1
| | | | | | | The current logic strips too much, causing build failures. Revert it until we get it right. Bug: https://bugs.gentoo.org/627474
* flag-o-matic.eclass: Strip LDFLAGS unsupported by the C compiler, #621274Michał Górny2017-08-081-1/+1
| | | | | | | | Include LDFLAGS in the variables stripped by strip-unsupported-flags. The code reuses the current functions for testing CC, and so only remove LDFLAGS that are rejected by the C compiler and not the linker. This solves the case of bug #621274 where LDFLAGS contained GCC-specific -flto flag.
* eclass/tests: Fix inheriting multiple eclassesMichał Górny2017-08-081-2/+2
| | | | | | Fix the inherit function to correctly handle 'inherit' call with multiple eclasses, instead of returning after the first eclass is successfully sourced.
* eclass/tests/estack_eshopts.sh: Add tests for 'set' variant of eshopt*Michał Górny2017-04-141-0/+23
|
* estack.eclass: Split estack* logic from eutilsMichał Górny2017-03-183-6/+6
| | | | | | | | | | | | | Split the estack_* and related functions from eutils into a dedicated estack.eclass. Those functions have significant complexity and are not used frequently, therefore they benefit from having a separate file and an explicit dedicated maintainer. The new eclass is implicitly inherited by eutils to preserve compatibility. However, the inherit will be removed in EAPI 7, and the ebuilds should switch to using estack directly. Thanks to Ulrich Müller for doing the research on this.
* eclass/tests/python-utils-r1: update impl support statusMichał Górny2017-03-081-1/+3
|
* Drop $Id$ per council decision in bug #611234.Robin H. Johnson2017-02-2824-24/+0
| | | | Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
* multiprocess.eclass: makeopts_{jobs,loadavg}: fix implicit handling of ↵Mike Frysinger2017-02-092-6/+17
| | | | | | | | $MAKEOPTS #608242 We missed quoting on ${MAKEOPTS} to set it as the first arg which meant we might load invalid values into the second arg which is the "infinite" scenario.