summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass/tests/distutils-r1*.sh: Cover DISTUTILS_USE_SETUPTOOLSMichał Górny2020-07-022-1/+83
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1:single.sh: Tests for d-r1 single impl modeMichał Górny2020-07-021-0/+81
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: Normalize whitespaceMichał Górny2020-07-021-6/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: update for EAPI=7 / py3.8Michał Górny2020-07-021-8/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: update dep valuesMichał Górny2020-06-191-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Fix prepending LLVM path before system pathsMichał Górny2020-05-281-8/+8
| | | | | | | | | Do not prepend LLVM path before system path, in particular before ccache/distcc paths. Instead, prepend it before the first LLVM version found in PATH, or append to the end if no LLVM is found in PATH. Closes: https://bugs.gentoo.org/627726 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Add initial testsMichał Górny2020-05-281-0/+138
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Enable python3_9Michał Górny2020-05-251-1/+15
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/toolchain.sh: add znver2 downgrade testSergei Trofimovich2020-05-101-0/+1
| | | | | Bug: https://bugs.gentoo.org/721690 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests/distutils-r1.sh: Revert "Update Python versions"Michał Górny2020-04-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for py3.8Michał Górny2020-04-191-0/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Remove tests for jython & pypyMichał Górny2020-03-301-31/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/distutils-r1.sh: Update Python versionsMichał Górny2020-03-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/multilib.eclass: update copyright and fix typosSergei Trofimovich2020-03-281-2/+2
| | | | | Reported-by: Mike Gilbert Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* multilib.eclass: multilib_env(): set LIBDIR=lib for *-musl*Sergei Trofimovich2020-03-271-0/+4
| | | | | | | | | | | | | | In contrast to glibc musl profiles use 'lib' layour for 32-bit and 64-bit targets. multilib_env() did not take it into account and assumed glibc's lib64 layout. That breaks crossdev as it uses multilib_env to extract target definition. Native builds are unaffected by this change. Bug: https://bugs.gentoo.org/675954 Bug: https://gcc.gnu.org/PR90077 Bug: https://github.com/gentoo/musl/issues/245 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests: add basic tests for multilib_env() expansionSergei Trofimovich2020-03-271-0/+61
| | | | Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* flag-o-matic.eclass: revert "don't use -Werror in test-flag-PROG(), bug #712488"Sergei Trofimovich2020-03-261-6/+4
| | | | | | | | | | This reverts commit ab8fe14ae2e9110faa85ca1c4528b470c0be1535. Triggers build failures on sys-libs/compiler-rt-sanitizers. Reported-by: Craig Andrews Bug: https://bugs.gentoo.org/714742 Bug: https://bugs.gentoo.org/712488 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* python-utils-r1.eclass: Mark python_export privateMichał Górny2020-03-221-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* flag-o-matic.eclass: don't use -Werror in test-flag-PROG(), bug #712488Sergei Trofimovich2020-03-201-4/+6
| | | | | | | | | | | -Werror filters out too much (everything) if used compiler happens to always generate warnings. Let's drop cosmetic stripping of ignored flags until we really need it. Then we can consider more selective filtering by using more targeted -Werror= options. Reported-by: Anton Gubarkov Closes: https://bugs.gentoo.org/712488 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* 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>