summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* llvm.org.eclass: Enable manpage dist for 15.0.3Michał Górny2022-10-181-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass: pass -q to xzSam James2022-10-171-1/+1
| | | | | | Avoids noise from memlimit-compress. Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: pass -q to xzSam James2022-10-171-1/+1
| | | | | | Avoids noise from memlimit-compress. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: add workaround for < xz 5.3.3_alpha 32-bit issueSam James2022-10-171-1/+1
| | | | | | | | | | | With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: add workaround for < xz 5.3.3_alpha 32-bit issueSam James2022-10-171-1/+1
| | | | | | | | | | | With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: use xz for gcc-build-logsSam James2022-10-171-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221016 snapshotMichał Górny2022-10-161-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: add systemd testsMike Gilbert2022-10-151-0/+50
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* systemd.eclass: add systemd_get_sleepdirMike Gilbert2022-10-151-0/+8
| | | | | Closes: https://bugs.gentoo.org/873172 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* systemd.eclass: rework EPREFIX handlingMike Gilbert2022-10-151-50/+19
| | | | | | | Instead of adding a private function to get the unprefixed version of every path, use a new "_systemd_unprefix" helper function. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* linux-mod.eclass: fix pigz threads argumentSam James2022-10-151-1/+1
| | | | | | | I'm sorry, I thought I'd caught this before. Closes: https://bugs.gentoo.org/877207 Signed-off-by: Sam James <sam@gentoo.org>
* www-client/seamonkey: support dev-lang/rust-1.64Myckel Habets2022-10-141-9/+0
| | | | | | | | | | * dev-lang/rust-1.64 is supported by seamonkey-2.53.14, bump BDEPEND and check to allow this build. * Remove various cases of --disable-elf-hack handling and just pass --disable-elf-hack by default. Closes: https://bugs.gentoo.org/877005 Signed-off-by: Myckel Habets <gentoo-bugs@habets-dobben.nl> Closes: https://github.com/gentoo/gentoo/pull/27782 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: silence tools searchSam James2022-10-131-5/+5
| | | | | | Fixes: b86d9482f6ff14401970092b3034ef1cc2813163 Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: silence pigz searchSam James2022-10-131-1/+1
| | | | | Fixes: 61f0eab4e3c0272449024e83f32734b0e6d392bb Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: use pbzip2/lbzip2 for parallel compression if availableSam James2022-10-131-2/+8
| | | | | | | | Note that this will only take effect if compressing modules with bzip2 (COMPRESS_MODULE_BZIP2 is set) or compressing the kernel with bzip2 (CONFIG_KERNEL_BZIP2 is set). Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: use pigz for parallel compression if availableSam James2022-10-131-0/+7
| | | | | | | | Note that this will only take effect if compressing modules with gzip (COMPRESS_MODULE_GZIP is set) or compressing the kernel with gzip (CONFIG_KERNEL_GZIP is set). Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: compress xz/zstd in parallelSam James2022-10-131-1/+9
| | | | | | | | | | | Note that this will only take effect if compressing modules with xz or zstd (COMPRESS_MODULE_XZ is set or COMPRESS_MODULE_ZSTD is set respectively) ... or if compiling the kernel with xz or zstd (COMPRESS_KERNEL_XZ or COMPRESS_KERNEL_ZSTD is set respectiely). Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: cleanup whitespaceSam James2022-10-131-6/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: improve error handling for module compressionSam James2022-10-131-9/+9
| | | | | | doins will 'die for us' in newer EAPIs, and add missing || dies to compressor calls. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: use pigz for parallel compression if availableSam James2022-10-131-1/+5
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: compress xz/zstd in parallelSam James2022-10-131-4/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: decompress xz in parallelSam James2022-10-131-2/+2
| | | | | | | No-op until >=app-arch/xz-utils-5.3.3_alpha. Recently added support for this in Portage and pkgcore too for unpacking. Signed-off-by: Sam James <sam@gentoo.org>
* lua-single.eclass: fix comment typoSam James2022-10-131-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow fixincludes for >= GCC 13Sam James2022-10-111-10/+14
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add @DESCRIPTIONSam James2022-10-111-0/+4
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* java-pkg-simple.eclass: improve MANIFEST.MF manipulationVolkmar W. Pogatzki2022-10-111-9/+13
| | | | | | | | | | | | | | | For adding Main-class and/or Automatic-module-name to MANIFEST.MF it seems better to use "jar" functionality at the end of compilation. This does the necessary checks and issues warnings in case of duplicate entries. Erroneously used existence checks ( -v ) were causing wrong entries in MANIFEST.MF files in case of JAVA_MAIN_CLASS="" which is often used in multi-jar ebuilds. Closes: https://bugs.gentoo.org/874924 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/27621 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* ecm.eclass: Switch to pcre2grep, add dev-libs/libpcre2 to BDEPENDAndreas Sturmlechner2022-10-111-5/+8
| | | | | | | | The dependency is basically free since dev-qt/qtcore:5 or dev-qt/qtbase:6 already depend on dev-libs/libpcre2. Closes: https://bugs.gentoo.org/872068 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* 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>