summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* eclass/tests/unpacker.sh: Add online tests for makeselfMichał Górny2022-10-011-0/+105
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27507 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/unpacker.sh: Add tests for makeselfMichał Górny2022-10-011-0/+29
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Workaround zstd refusing to process symlinksMichał Górny2022-09-281-1/+6
| | | | | Closes: https://bugs.gentoo.org/873352 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Fix handling GNU ar archives in handwoven implMichał Górny2022-09-271-0/+4
| | | | | | | | Fix the hand-weaved implementation of ar unpacking that is used on Prefix to handle slash-terminated filenames of GNU ar format correctly. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add on-the-fly .gpkg.tar unpacking supportMichał Górny2022-09-271-0/+47
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add support for .lz4 and .lzo compressionMichał Górny2022-09-271-0/+7
| | | | | | | Add support for .lz4 and .lzo formats that can be used for .tar.gpkg compression. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Add tests for unpacker.eclassMichał Górny2022-09-272-0/+240
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.eclass: Add tests for adding new implsMichał Górny2022-05-091-0/+35
| | | | | | | Add tests that verify that new Python implementations are added to all the places that need them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Streamline the testsMichał Górny2022-05-091-84/+28
| | | | | | | | Streamline the python-utils-r1.eclass tests to use a for loop instead of copying the same tests over and over again. While at it, group tests by purpose. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add support for python3.11Michał Górny2022-05-091-0/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multiprocessing.eclass: Default makeopts_jobs to inf=nproc+1Michał Górny2022-05-011-5/+10
| | | | | | | | | | | | | | | | | | | | | | Change the default value for 'inf' argument to makeopts_jobs from 999 to $(get_nproc) + 1. This means that if MAKEOPTS specifies a `-j` argument without a specific value, nproc will be used rather than infinity-ish number of jobs. The old default made sense for ebuilds using both makeopts_jobs and makeopts_loadavg. However, these are very rare — only 4 packages and 3 eclass at this time. For the remaining ebuilds, they meant uncontrollably using up to 999 jobs. The new default is both safer and more correct for the vast majority of Gentoo packages, removing the necessity of repeating: $(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)") The ebuilds and eclasses using makeopts_loadavg have been updated to pass the old default. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Add tests for stdlib ver matchingMichał Górny2022-04-211-0/+9
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/qmail.sh: eend and return should be separate statementsMike Gilbert2022-04-191-1/+2
| | | | | Closes: https://bugs.gentoo.org/839189 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Make python_fix_shebang force full pathMichał Górny2022-04-021-31/+55
| | | | | | | | | | | | | | | | | | | | | | Change the behavior of python_fix_shebang to always output full path to the Python interpreter (i.e. ${PYTHON}) instead of mangling the original path. Most importantly, this ensures that: 1. EPREFIX is included in the final path 2. /usr/bin/env is replaced by the absolute path to avoid issues when calling system executables from inside a venv Note that this implies that a few unlikely corner cases may stop working, notably: a. "weird" shebangs such as "/usr/bin/foo python" will no longer work b. the mangled scripts will escape temporary venv e.g. created in distutils-r1 PEP517 mode (python_fix_shebang is not used in such a way in ::gentoo) Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: source tests-common.sh || exitMike Gilbert2022-02-1427-27/+27
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/tests/savedconfig.sh: abort when source tests-common.sh failsMike Gilbert2022-02-141-1/+1
| | | | | Closes: https://bugs.gentoo.org/833342 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* python-utils-r1.eclass: Remove python_is_python3Michał Górny2022-02-091-5/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python*-r1.eclass: Remove explicit dep on python-execMichał Górny2022-01-092-2/+2
| | | | | | | | 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-092-2/+2
| | | | | | | Bump minimal Python package versions to ensure that the python-exec deps are inside. Signed-off-by: Michał Górny <mgorny@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>
* qmail.eclass: simplify is_prime()Rolf Eike Beer2021-08-171-0/+52
| | | | | | | | The previous algorithm would scan for all primes for a given number, which takes needlessly long. Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sam James <sam@gentoo.org>
* python-utils-r1.eclass: Deprecated and EAPI8-ban python_is_python3Michał Górny2021-06-231-0/+4
| | | | | | | There is no use for python_is_python3 anymore, as Python 2 is no longer supported at runtime and the remaining any-r1 uses are pure-2. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Add EAPI decls to fix running testsDavid Seifert2021-06-226-6/+12
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain.eclass: add -march=znver3 manglingSergei Trofimovich2021-06-011-0/+1
| | | | | | Noticed as a gcc-9 build failure as it does not support -march=znver3. Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* eclass/tests: eat optional arguments passed to has_versionMike Gilbert2021-05-121-0/+3
| | | | | | | | | portageq has_version does not understand arguments like -b or --host-root. This fixes tests for autotools.eclass. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* eclass/tests: Add EAPI decls to fix running testsMichał Górny2021-05-122-2/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests/python-utils-r1.sh: Cover py3.10Michał Górny2021-05-051-0/+14
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: Update distutils-r1 expected valuesMichał Górny2021-03-282-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Inline _python_impl_supported()Michał Górny2021-01-151-18/+0
| | | | | | | | | | | | The _python_impl_supported() function is not used anymore in its original function. It is called only once, in order to die on incorrect targets in PYTHON_COMPAT. Let's inline the corresponding logic in _python_set_impls() and remove the function. While at it, add an extra check for outdated patterns. This also renders the relevant tests obsolete. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-funcs.eclass: fix or1k* tuple detectionSergei Trofimovich2021-01-051-1/+2
| | | | | | | | | | Before the change the only recognised CHOST was 'or1k'. After the change CHOSTs like 'or1k-linux-musl' are also recognised as 'openrisc'. Reported-by: adam@pimentel.space Bug: https://bugs.gentoo.org/763606 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
* */*: Update copyright line for files touched in 2019 and 2020.Ulrich Müller2020-12-234-4/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/tests: Initial test cases for eapi8-dosym.eclass.Ulrich Müller2020-11-231-0/+78
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* 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>