summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* linux-info.eclass: Chk for existance of .config/config.gz when opts reqMike Pagano2023-01-161-2/+8
| | | | | | | | | In the instance where CONFIG_* settings are required and not optional, make sure there is either a .config or a config.gz to check Closes: https://bugs.gentoo.org/890720 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* unpacker.eclass: flatten unpacker_src_uri_depends dependenciesSam James2023-01-161-15/+14
| | | | | | | | | | | | | Populate an associative array as we iterate over SRC_URI to collect needed dependencies to avoid recording the same dependencies twice. This still doesn't handle USE flags, but it's significantly better than before, as we won't repeatedly emit the same dependency if there's more than one distfile in SRC_URI with the same suffix. Closes: https://bugs.gentoo.org/891133 Thanks-to: Ionen Wolkens <ionen@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* python-utils-r1.eclass: remove py3.8David Seifert2023-01-142-13/+14
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* llvm.org.eclass: Enable manpages in 15.0.7Michał Górny2023-01-131-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: LoongArch is now a production target in 16.x!Michał Górny2023-01-131-3/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pam.eclass: adopt for base-system@Sam James2023-01-131-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* pam.eclass: Reassign to maintainer-neededMichał Górny2023-01-131-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/dune.eclass: introduce edune and dune-compileMaciej Barć2023-01-121-11/+103
| | | | | | | | | | | | | | edune is a thin wrapper for dune, which will help to run special, uncommon dune commands; dune-compile is a function to selectively pick which packages will be compiled "for-release" (as dune tends to call it); dune-compile without any arguments replaces the current dune_src_compile; dune-test without any arguments replaces the current dune_src_test; dune-release is a specialized function that helps to execute dune subcommands in a "for-release" mode, it is used by dune-compile and dune-test Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* linux-mod.eclass: Fix MODULESD_* for hyphenated modulesMike Pagano2023-01-111-4/+4
| | | | | | | | | | | | | | Use of the MODULESD_<modulename>_{ADDITIONS,ALIASES,EXAMPLES} variables do not currently work with external modules that are hyphenated. The current behavior results in an invalid modprobe.d file containing partially evaluated content. This appears to be due to use of ${currm} rather than ${currm_t} when Referencing variables. This changes the use of ${currm} to ${currm_t} when referencing variables to resolve this issue. Closes: https://bugs.gentoo.org/889752 Author: Steven Stallion <steven.stallion@sony.com> Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* python-utils-r1.eclass: restore support for jython2_7 in python_optimizeFlorian Schmaus2023-01-101-2/+2
| | | | | | | | | | | The eclass was modified to drop support for Python 2.7, however as unintended side effect, support for Jython 2.7 was also removed in python_optimize(). Fixes: 3b11f851df5e ("python-utils-r1.eclass: Clean up post disabling python2_7 compat") Closes: https://bugs.gentoo.org/885971 Closes: https://github.com/gentoo/gentoo/pull/29038 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* ecm.eclass: Add Qt 5.15.8 to ECM_QTHELP Portage bug workaroundAndreas Sturmlechner2023-01-091-6/+15
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Set _QT5_GENTOOPATCHSET_REV=3 for >=Qt5Base-5.15.8Andreas Sturmlechner2023-01-081-4/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* Add 16.0.0_pre20230107 snapshotMichał Górny2023-01-081-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove 16.0.0_pre2022* snapshotsMichał Górny2023-01-081-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: support nonfatal in testAlexey Sokolov2023-01-071-2/+2
| | | | | | | | | | | | | | Rationale: src_test() { virtx distutils-r1_src_test } If the test fails with "die", Xvfb keeps running forever; but it's cleaned up correctly with die -n Signed-off-by: Alexey Sokolov <alexey+gentoo@asokolov.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* out-of-source.eclass: Document BUILD_DIRMichał Górny2023-01-071-1/+8
| | | | | Closes: https://github.com/gentoo/gentoo/pull/28907 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Stop providing multibuild.eclassMichał Górny2023-01-071-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multilib-build.eclass: Stop providing multibuild.eclassMichał Górny2023-01-071-2/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: Provide run_in_build_dir from out-of-source-utilsMichał Górny2023-01-071-22/+5
| | | | | | | | | Remove the duplicate definition of run_in_build_dir() function and inherit out-of-source-utils to retain it for compatibility with the existing ebuilds in EAPIs 6, 7 and 8. In future EAPIs, the ebuilds needing it will inherit out-of-source-utils directly. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* out-of-source-utils.eclass: New utility eclassMichał Górny2023-01-071-0/+43
| | | | | | | | | | | Introduce a new out-of-source-utils.eclass to carry run_in_build_dir() helper function. This function used to be defined in multibuild.eclass and indirectly exposed through the eclasses using it. However, it is used rather rarely and it is technically also useful for out-of-source.eclass, so it makes more sense for it to be standalone. In the end, eclasses are cheap. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* haskell-cabal.eclass: add time to default_exposed_pkgsFlorian Schmaus2023-01-061-1/+2
| | | | | | | | | | Add time to default list of exposed packages, as it is bundled with GHC. This pulls in the eclass change from ::haskell [1], as suggested by hololeap. 1: https://github.com/gentoo-haskell/gentoo-haskell/commit/ad4015edfc83519a639ddef4fa542a109798d888 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* unpacker.eclass: pass -S to file to disable seccompSam James2023-01-051-4/+4
| | | | | | | | | | | | | | | | | | | | | | | Files being installed by Portage are generally trusted but also the syscalls allowed by file are quite broad anyway. With e.g. new libc or sandbox version (or any number of things...), the syscalls used by file can change which leads to its seccomp filter killing the process. This is an acceptable tradeoff when users are calling file(1), but it makes less sense with trusted input within Portage, especially where it may lead to confusing errors (swallowed within pipes, subshells, etc). Indeed, it might even be the case that file(1) is broken, but the user needs to complete a world upgrade to get a newer file/portage/???, but can't because of various ebuilds (like ones using this eclass) failing. Disable seccomp for these calls to keep working. Bug: https://bugs.gentoo.org/811462 Bug: https://bugs.gentoo.org/815877 Bug: https://bugs.gentoo.org/889046 Signed-off-by: Sam James <sam@gentoo.org>
* mono.eclass: pass -S to file to disable seccompSam James2023-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Files being installed by Portage are generally trusted but also the syscalls allowed by file are quite broad anyway. With e.g. new libc or sandbox version (or any number of things...), the syscalls used by file can change which leads to its seccomp filter killing the process. This is an acceptable tradeoff when users are calling file(1), but it makes less sense with trusted input within Portage, especially where it may lead to confusing errors (swallowed within pipes, subshells, etc). Indeed, it might even be the case that file(1) is broken, but the user needs to complete a world upgrade to get a newer file/portage/???, but can't because of various ebuilds (like ones using this eclass) failing. Disable seccomp for these calls to keep working. Bug: https://bugs.gentoo.org/811462 Bug: https://bugs.gentoo.org/815877 Bug: https://bugs.gentoo.org/889046 Signed-off-by: Sam James <sam@gentoo.org>
* dotnet.eclass: pass -S to file to disable seccompSam James2023-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Files being installed by Portage are generally trusted but also the syscalls allowed by file are quite broad anyway. With e.g. new libc or sandbox version (or any number of things...), the syscalls used by file can change which leads to its seccomp filter killing the process. This is an acceptable tradeoff when users are calling file(1), but it makes less sense with trusted input within Portage, especially where it may lead to confusing errors (swallowed within pipes, subshells, etc). Indeed, it might even be the case that file(1) is broken, but the user needs to complete a world upgrade to get a newer file/portage/???, but can't because of various ebuilds (like ones using this eclass) failing. Disable seccomp for these calls to keep working. Bug: https://bugs.gentoo.org/811462 Bug: https://bugs.gentoo.org/815877 Bug: https://bugs.gentoo.org/889046 Signed-off-by: Sam James <sam@gentoo.org>
* cmake.eclass: add base-system as @MAINTAINER too (align with dev-util/cmake)Sam James2023-01-051-0/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* cmake.eclass: mark CMAKE_VERBOSE as @USER_VARIABLESam James2023-01-051-1/+2
| | | | | | | It's a policy requirement that ebuilds produce verbose logs, so ebuilds themselves must not set CMAKE_VERBOSE. But users can. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: Promote tc-env_build to a non-internal functionJames Le Cuirot2023-01-031-1/+0
| | | | | | | It's generally useful and already directly used by three packages. I need to use it to fix cross-compiling of LLVM. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* s6.eclass: consistent styleDavid Seifert2023-01-021-22/+20
| | | | | Closes: https://github.com/gentoo/gentoo/pull/28912 Signed-off-by: David Seifert <soap@gentoo.org>
* s6.eclass: drop EAPI 5, 6 and 7 supportDavid Seifert2023-01-021-3/+3
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* vala.eclass: drop eutils/multilib inheritDavid Seifert2023-01-021-2/+1
| | | | | | | * Both eclasses are not used by vala.eclass. * Any ebuilds relying on the transitive inherit should be fixed instead. Signed-off-by: David Seifert <soap@gentoo.org>
* vala.eclass: drop EAPI 6 supportDavid Seifert2023-01-021-11/+7
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20230101 snapshotMichał Górny2023-01-011-1/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: prepare for USE=hardened => FORTIFY_SOURCE=3, assertionsSam James2022-12-311-0/+4
| | | | | | | | | | | | USE=hardened will now imply: - default -D_FORTIFY_SOURCE=3 (instead of 2 for normal profiles) - default -D_GLIBCXX_ASSERTIONS Bug: https://bugs.gentoo.org/876895 Bug: https://bugs.gentoo.org/884417 Bug: https://bugs.gentoo.org/847148 Bug: https://bugs.gentoo.org/876893 Signed-off-by: Sam James <sam@gentoo.org>
* mail-mta/n[eo]tqmail: drop ucspi-ssl dependency for pop3sRolf Eike Beer2022-12-311-8/+2
| | | | | | | Bug: https://bugs.gentoo.org/889216 Bug: https://bugs.gentoo.org/889218 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sam James <sam@gentoo.org>
* Revert "qmail.eclass: remove remnants of USE=pop3"Rolf Eike Beer2022-12-311-1/+19
| | | | | | | | | This reverts commit 3a2f8ddaec09ebc439453016bb669627bf8a6d6d. Bug: https://bugs.gentoo.org/889216 Bug: https://bugs.gentoo.org/889218 Signed-off-by: Rolf Eike Beer <eike@sf-mail.de> Signed-off-by: Sam James <sam@gentoo.org>
* qmail.eclass: remove remnants of USE=pop3Sam James2022-12-311-19/+1
| | | | | | | | Fixes: 24dcd3918e1ac751ff9c8d868509ea1fd6390f78 Fixes: bbc98bfdcbeb0d54f0a389eb7c92f1ffd64af7c6 Closes: https://bugs.gentoo.org/889218 Closes: https://bugs.gentoo.org/889216 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: Don't drop CPU OPT patch when CC=clangMike Pagano2022-12-291-1/+1
| | | | | | | | | Clang is supported by the CPU optimization patch. (USE=experimental) Check for CC=clang and do not drop this patch. Closes: https://bugs.gentoo.org/888727 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: add bugref for Modules.symversIonen Wolkens2022-12-281-1/+1
| | | | | | In case someone would re-add the || die without looking into this. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* linux-mod.eclass: revert adding || die for Modules.symversIonen Wolkens2022-12-281-1/+1
| | | | | | | | | Emergency fix given this apparently broke potentially several packages, at least e.g. virtualbox-modules, and zenpower3 from guru. Fixes: bc0ef44947363a33b5cd9b18bcc0d3c32b808311 Closes: https://bugs.gentoo.org/888679 Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* acct-group.eclass: Don't modify groups when EPREFIX is non-emptyJames Le Cuirot2022-12-271-1/+1
| | | | | | | | This was happening when running a prefix as root, which we don't really support, but also when building a prefixed system under ROOT. Closes: https://bugs.gentoo.org/779181 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* llvm.org.eclass: Add experimental Xtensa target to 16.xMichał Górny2022-12-271-1/+10
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* xorg-3.eclass: remove useless || die on emakeDavid Seifert2022-12-271-4/+4
| | | | | | Signed-off-by: David Seifert <soap@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/28787 Signed-off-by: David Seifert <soap@gentoo.org>
* qmail.eclass: remove useless || die on emakeDavid Seifert2022-12-271-2/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* gnustep-base.eclass: remove useless || die on emakeDavid Seifert2022-12-271-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* gnome2.eclass: remove useless || die on emakeDavid Seifert2022-12-271-2/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* xemacs-packages.eclass: drop EAPI 6, 7 supportDavid Seifert2022-12-271-4/+4
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* waf-utils.eclass: drop EAPI 6 supportDavid Seifert2022-12-271-6/+13
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* usr-ldscript.eclass: drop EAPI 6 supportDavid Seifert2022-12-271-18/+20
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* user-info.eclass: drop EAPI 6 supportDavid Seifert2022-12-271-2/+2
| | | | Signed-off-by: David Seifert <soap@gentoo.org>
* toolchain-autoconf.eclass: drop EAPI 6, add EAPI 8 supportDavid Seifert2022-12-271-14/+8
| | | | Signed-off-by: David Seifert <soap@gentoo.org>