summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* linux-mod.eclass: Update copyright yearMike Pagano2023-01-281-1/+1
| | | | Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* linux-mod.eclass: Remove EAPI deprecated function callMike Pagano2023-01-281-4/+0
| | | | | | | | | | As warned, remove EAPI deprecated use of econf being called in linux-mod_src_compile Closes: https://bugs.gentoo.org/340597 See: https://marc.info/?l=gentoo-dev&m=167069431328509 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* python-utils-r1.eclass: Use BROOT rather than EPREFIX for PYTHON varJames Le Cuirot2023-01-281-1/+1
| | | | | | | | | | The PYTHON variable is used for the wrapper shebangs. These should point to the build system rather than the host system. The variable is also used in other contexts, but the build system is still likely to be most appropriate. If this does break anything, it'll only be for prefixed systems. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* toolchain.eclass: Move remaining gcc prefix tweaks from profileJames Le Cuirot2023-01-281-0/+13
| | | | Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* toolchain.eclass: Fix cross-compiling gcc for standalone prefixJames Le Cuirot2023-01-281-0/+15
| | | | | | | | | | | | | | | | Standalone prefix has always configured gcc with a sysroot, but the location of this sysroot is different at build time when cross-compiling. gcc has a separate configure option for that. prefix-guest systems do not have a sysroot applied, as they use the host's libc. Move this code from the prefix profile into the eclass so that it's less of a special case. We can avoid relying on the `BOOTSTRAP_RAP_STAGE2` variable by checking for the `prefix-guest` USE flag instead, as a prefix-guest profile is now used for RAP stage 2. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* usr-ldscript.eclass: Don't add prefix to ld script paths when standaloneJames Le Cuirot2023-01-281-1/+8
| | | | | | | | | | | | | The toolchain's sysroot is automatically prepended to these paths. Gentoo Prefix used to prevent this, but now we're changing that. prefix-guest systems do not have a sysroot applied, as they use the host's libc, so the prefix is still needed in this case. This is actually all moot because the gen_usr_ldscript function is a noop on prefix anyway, but I'm still adding this in case that changes. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* apache-2.eclass: drop /var/cache/apache2 keepdirSam James2023-01-281-1/+1
| | | | | | | Handled by a tmpfiles entry for quite some time. Bug: https://bugs.gentoo.org/520482 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: Rename xmakeopts to more appropriate KERNEL_MAKEOPTSJames Le Cuirot2023-01-271-12/+13
| | | | | | | An upper-case name suggests that the variable is exported. This variable is also not just used for cross-compiling any more. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* kernel-2.eclass: Make xmakeopts an array for spaces in toolchain varsJames Le Cuirot2023-01-271-6/+15
| | | | | | | Variables like CC can have spaces for additional arguments. This is particularly useful for reliably setting the sysroot. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* gkrellm-plugin.eclass: Mark @DEADMichał Górny2023-01-271-1/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20230127 snapshotMichał Górny2023-01-271-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* apache-2.eclass: cleanup libpcre1 supportSam James2023-01-261-60/+22
| | | | | Bug: https://bugs.gentoo.org/835151 Signed-off-by: Sam James <sam@gentoo.org>
* apache-2.eclass: silence pcre-config checkSam James2023-01-261-1/+1
| | | | | | Noisy if Apache version is using pcre2. Signed-off-by: Sam James <sam@gentoo.org>
* apache-2.eclass: adjust NGHTTP2_VERSION for newer versionsSam James2023-01-261-2/+7
| | | | | | 2.4.55 needs >=net-libs/nghttp2-1.50.0. Signed-off-by: Sam James <sam@gentoo.org>
* apache-2.eclass: add missing subslot depsSam James2023-01-261-6/+6
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Remove old snapshot entryMichał Górny2023-01-251-3/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Main is now 17.xMichał Górny2023-01-251-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* ros-catkin.eclass: treecleanJakov Smolić2023-01-241-227/+0
| | | | Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
* ecm.eclass: Drop Qt 5.15.7 from ECM_QTHELP Portage bug workaroundAndreas Sturmlechner2023-01-241-15/+6
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* go-module.eclass: fix typo in buildmodeSam James2023-01-201-1/+1
| | | | | | Fixes: f4dade77c0882aab06f35f8db1154d0a52f0ba1b Bug: https://bugs.gentoo.org/702598 Signed-off-by: Sam James <sam@gentoo.org>
* go-module.eclass: add -buildmode=pieWilliam Hubbs2023-01-201-2/+3
| | | | | Bug: https://bugs.gentoo.org/702598 Signed-off-by: William Hubbs <williamh@gentoo.org>
* wxwidgets.eclass: Add 3.2-gtk3 to invalid SLOT messageArsen Arsenović2023-01-201-2/+2
| | | | Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* x11-libs/wxGTK: eclass preparationbrahmajit das2023-01-201-2/+2
| | | | | | | Closes: https://bugs.gentoo.org/577030#c37 Signed-off-by: brahmajit das <listout@protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/28360 Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
* 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>