summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* eclass/tests/toolchain-funcs.sh: Handle missing ld.gold gracefullyMichał Górny2022-10-101-30/+34
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-funcs.eclass: Add tc-get-c-rtlib() to get CC runtimeMichał Górny2022-10-102-0/+38
| | | | | | | | Add a new tc-get-c-rtlib() that attempts to get the runtime used by the current C compiler. Currently it supports compiler-rt and libgcc. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-funcs.eclass: Add tc-get-cxx-stdlib() to get C++ stdlibMichał Górny2022-10-102-0/+58
| | | | | | | | Add a new tc-get-cxx-stdlib() that attempts to get the C++ stdlib variant used by the current C++ compiler. Currently it supports libc++ and libstdc++ (GCC's stdlib). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221010 snapshotMichał Górny2022-10-101-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: mention 17.1 profiles explicitly in commentSam James2022-10-091-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add LLVM_SOABI variableMichał Górny2022-10-071-0/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Introduce LLVM_MAJOR and LLVM_VERSIONMichał Górny2022-10-071-7/+21
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Provide git-r3 to silence pkgcheckMichał Górny2022-10-071-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: export EGIT_VERSION for snapshotsMichał Górny2022-10-071-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove old maturin support codeMichał Górny2022-10-071-16/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove obsolete EAPI condition for *.pth filesMichał Górny2022-10-071-13/+11
| | | | | | | Remove the EAPI condition for *.pth files, as they are banned in all EAPIs currently supported by the eclass. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Bump min dep versionsMichał Górny2022-10-071-12/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: fix typo in commentPetr Vaněk2022-10-071-2/+2
| | | | | Signed-off-by: Petr Vaněk <arkamar@atlas.cz> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove obsolete DUS=pyproject.toml supportMichał Górny2022-10-071-13/+6
| | | | | | | | Remove the obsolete code branches for DISTUTILS_USE_SETUPTOOLS pyproject.toml variant. dev-python/pyproject2setuppy is last rited now and there are no consumers of that mode left in ::gentoo. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221006 snapshotMichał Górny2022-10-061-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* postgres.eclass: Support postgres15Patrick Lauer2022-10-061-2/+2
| | | | Signed-off-by: Patrick Lauer <patrick@gentoo.org>
* toolchain.eclass: use --with-major-version-only for newer install pathsSam James2022-10-061-1/+36
| | | | | | | | | | | | | | | Flip over to major version install paths to reflect the change in slotting we made between 9 and 10. We only slot major versions now, so we should have our install paths reflect that for: 1. principle of least surprise; 2. we want LDPATH to remain valid between upgrades (bug #865835, bug #873505). Bug: https://bugs.gentoo.org/865835 Bug: https://bugs.gentoo.org/873505 Signed-off-by: Sam James <sam@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/27533 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Enable manpages for 15.0.2Michał Górny2022-10-041-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xdg-utils.eclass: reset XDG_STATE_HOMESam James2022-10-041-2/+3
| | | | | | | | | | | XDG_STATE_HOME is defined in the basedir spec just like XDG_DATA_HOME and XDG_CONFIG_HOME, so we should cover it. We have to set in eclass because we still have < EAPI 7 ebuilds in tree (no ENV_UNSET). Closes: https://bugs.gentoo.org/873802 Signed-off-by: Sam James <sam@gentoo.org>
* Revert "toolchain.eclass: allow fixincludes for >= GCC 13"Sam James2022-10-041-14/+10
| | | | | | | | This reverts commit 4505e063f64a7539222d0ccb224f6fa6b1832fc8. Didn't mean to push yet. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow fixincludes for >= GCC 13Sam James2022-10-041-10/+14
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: improve test selection for multi-jar packagesVolkmar W. Pogatzki2022-10-031-13/+15
| | | | | | | | | Testing multi-jar packages was not properly supported. With this change the tests_to_run are selected per module. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27491 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-pkg-simple.eclass: allow JAVA_MAIN_CLASS _and_ MANIFEST.MFVolkmar W. Pogatzki2022-10-031-8/+9
| | | | | | | | | | | The eclass did not handle JAVA_MAIN_CLASS if there was also a given META-INF/MANIFEST.MF. This change allows adding JAVA_AUTOMATIC_MODULE_NAME and/or JAVA_MAIN_CLASS to the MANIFEST.MF file if it exists or creates one if not. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* 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>
* unpacker.eclass: Check makeself compression without a tempfileMichał Górny2022-10-011-3/+2
| | | | 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: Support all makeself "compression" methodsMichał Górny2022-10-011-0/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Reuse _unpacker_get_decompressor for makeselfMichał Górny2022-10-011-8/+10
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add support for makeself 2.4.5Michał Górny2022-10-011-0/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* perl-module.eclass: fix src_test docsSam James2022-10-011-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Remove verify-sig inherit for non-releasesMichał Górny2022-09-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20220930 snapshotMichał Górny2022-09-301-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* waf-utils.eclass: add EAPI 8Sam James2022-09-301-2/+2
| | | | | | | | I dare say that if it were going to happen organically, it would've by now. Working on WAF packages is suffering enough. Signed-off-by: Sam James <sam@gentoo.org>
* unpacker.eclass: Workaround zstd refusing to process symlinksMichał Górny2022-09-282-3/+8
| | | | | Closes: https://bugs.gentoo.org/873352 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Unpack .deb packages on-the-fly as wellMichał Górny2022-09-271-27/+33
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27431 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Fix handling GNU ar archives in handwoven implMichał Górny2022-09-272-0/+6
| | | | | | | | 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: Support lbzip2 as parallel bz2 decompressorMichał Górny2022-09-271-2/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: decompress xz in parallelSam James2022-09-271-2/+2
| | | | | | | | | | >= xz 5.3.3_alpha supports parallel decompression, so let's use it. As recently added to Portage (see https://github.com/gentoo/portage/commit/48d107e5c1a103d59a053aebeefa9a5aac5c32ff). Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add on-the-fly .gpkg.tar unpacking supportMichał Górny2022-09-272-0/+85
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Add support for .lz4 and .lzo compressionMichał Górny2022-09-272-0/+15
| | | | | | | Add support for .lz4 and .lzo formats that can be used for .tar.gpkg compression. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Move decompressor recognition into a functionMichał Górny2022-09-271-18/+26
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove uppercase RAR/LHA variantsMichał Górny2022-09-271-4/+4
| | | | | | | | Remove the uppercase variants of RAR/LHA that were copied from Portage implementation. The functions always convert filenames to lowercase, so accounting for them is redundant. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Use lowercase in unpacker_src_uri_dependsMichał Górny2022-09-271-1/+2
| | | | | | | Transform the URIs to lowercase in unpacker_src_uri_depends() for consistency with the behavior of _unpacker(). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Use bash substitution instead of tr for lowercaseMichał Górny2022-09-271-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove support for EAPI 5Michał Górny2022-09-271-3/+3
| | | | | | | There are no ebuilds using it in EAPI 5 anymore, and it is the last EAPI requiring support for bash 3.2. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Fix unpack_7z to respect the exit statusMichał Górny2022-09-271-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* unpacker.eclass: Remove `-f` from zstd argumentsMichał Górny2022-09-271-1/+1
| | | | | | | | | Remove `-f` from zstd arguments. This option causes zstd to ignore input errors, notably causing it to pass invalid files through rather than returning an error. Closes: https://bugs.gentoo.org/872662 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>
* llvm.org.eclass: Revert "Enable 16.0.0_pre20220926 snap"Michał Górny2022-09-261-3/+0
| | | | | | | The 16.x is far too broken right now for this to be usable. Reverts: de4df136bfa2fd8b1b28e9137991d1d95057a873 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable 16.0.0_pre20220926 snapMichał Górny2022-09-261-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>