summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* autotools.eclass: crank _LATEST_AUTOMAKE to get fixed 1.17-r1Sam James2024-07-121-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* autotools.eclass: add 1.17 to _LATEST_AUTOMAKESam James2024-07-121-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* git-r3.eclass: Drop support for EAPI 6Ulrich Müller2024-07-111-9/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* vcs-snapshot.eclass: Drop support for EAPI 6Ulrich Müller2024-07-111-10/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-build.eclass: Support python3.13Michał Górny2024-07-111-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* bzr.eclass: Mark as deadUlrich Müller2024-07-091-0/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* kernel-2.eclass: Drop reference to BUILD_FIXES variableUlrich Müller2024-07-081-1/+1
| | | | | | Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-info.eclass: Drop reference to BUILD_FIXES variableUlrich Müller2024-07-081-2/+1
| | | | | | Undocumented, and not used by any ebuilds inheriting this eclass. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-info.eclass: Drop support for EAPI 6Ulrich Müller2024-07-081-12/+8
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* linux-info.eclass: Drop temporary fix for powerpcUlrich Müller2024-07-081-6/+0
| | | | | | | | Apparently there is no reference to a .tmp_gas_check file or to a TOUT variable in Linux sources any more. Bug: https://bugs.gentoo.org/75034#c14 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* Revert "tree-sitter-grammar.eclass: extended packaging"Matthew Smith2024-07-071-13/+0
| | | | | | | | | | | | | | | | | | This reverts commit fbe4bc7b9dc970271127a5f167c95da78e32e282. The previous change does not install the NeoVim symlinks correctly as they point to /usr/lib/tree-sitter/liblang.so instead of /usr/lib/liblang.so. Also the query files are not installed in per-package directories and have common names (e.g. highlight.scm) which is causing file collisions. To be fixed in a follow up commit which will introduce tree-sitter-grammar-r1.eclass, so that ebuilds can be rev-bumped so that users can rebuild and get the changes. Bug: https://bugs.gentoo.org/935631 Bug: https://bugs.gentoo.org/935641 Signed-off-by: Matthew Smith <matthew@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240706 snapshotMichał Górny2024-07-061-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* flag-o-matic.eclass: allow -mstrict-align and -mvector-strict-alignLuca Barbato2024-07-051-0/+4
| | | | | | | | | It is needed to make sure vector unaligned load/store aren't inserted when the riscv cpu does not allow them. See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115789 Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* tree-sitter-grammar.eclass: enable py3.13 bindingsArthur Zamarin2024-07-051-1/+1
| | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tree-sitter-grammar.eclass: respect CC & ARArthur Zamarin2024-07-051-0/+2
| | | | | | | | Closes: https://bugs.gentoo.org/932626 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37122 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* tree-sitter-grammar.eclass: extended packagingVadim Misbakh-Soloviov2024-07-051-0/+13
| | | | | | | | | | | | | | | | 1) put grammar library to additional well-known path 2) also put queries See-Also: https://pkgs.alpinelinux.org/contents?branch=edge&name=tree%2dsitter%2dlua&arch=x86_64&repo=community See-Also: https://pkgs.alpinelinux.org/contents?branch=edge&name=tree%2dsitter%2dcss&arch=x86_64&repo=community Refer: https://github.com/gentoo/gentoo/pull/35475 Closes: https://bugs.gentoo.org/933833 Closes: https://bugs.gentoo.org/922146 Signed-off-by: Vadim Misbakh-Soloviov <mva@gentoo.org> Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/37122 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
* vdr-plugin-2.eclass: fix behaviour with LINGUAS="en"Martin Dummer2024-07-031-1/+1
| | | | | | | | | when LINGUAS="en" is defined, vdr-plugin-2_src_install() stops erroneously Closes: https://bugs.gentoo.org/796731 Signed-off-by: Martin Dummer <martin.dummer@gmx.net> Closes: https://github.com/gentoo/gentoo/pull/37250 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
* cmake.eclass: fix copyrightSam James2024-07-031-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* Revert "cmake.eclass: Set FETCHCONTENT_FULLY_DISCONNECTED=ON"Sam James2024-07-031-2/+1
| | | | | | | | | | | | This reverts commit ca877f01a331bd239db8b6878c7f92fa85e02dae. Unfortunately, the CMake developers learned of Homebrew doing this and decided to "block" this functionality because they felt it was abuse. We now have to implement a "provider" instead... Bug: https://bugs.gentoo.org/920846 Signed-off-by: Sam James <sam@gentoo.org>
* qt5-build.eclass: try to avoid SSE2 where unavailableSam James2024-07-021-0/+3
| | | | | | | | | | Rather overdue, but we got there eventually. Closes: https://bugs.gentoo.org/773199 Bug: https://bugs.gentoo.org/552942 Bug: https://bugs.gentoo.org/648004 Bug: https://bugs.gentoo.org/775650 Signed-off-by: Sam James <sam@gentoo.org>
* gstreamer-meson.eclass: fix handling meson-1.5's pretty-printed JSONSam James2024-06-301-1/+1
| | | | | | | | | | | meson-1.5 pretty-prints its JSON which means the target JSON file here spawns multiple lines. <$x> will only read one line, per https://github.com/makamaka/JSON-PP/issues/85#issuecomment-1367719155. Switch to reading the whole file like in https://stackoverflow.com/a/24959863. Cloess: https://bugs.gentoo.org/935245 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240630 snapshotMichał Górny2024-06-301-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshot supportMichał Górny2024-06-291-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod-r1.eclass: check /boot if we are re-installing dist-kernelAndrew Ammerlaan2024-06-291-1/+12
| | | | | | | | | | | | | | Previous commit already adds the check when we call dist-kernel_reinstall_initramfs, but lets do it a bit earlier as well. As in dist-kernel-utils.eclass, make the check nonfatal because when users notice the problem they can correct it and manually re-install the kernel via emerge --config ... We don't have a pkg_pretend phase in this eclass, so we use the pkg_setup phase instead to avoid introducing a new phase here. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-install.eclass: move mount-boot check to dist-kernel-utils.eclassAndrew Ammerlaan2024-06-292-41/+42
| | | | | | | | ebuilds and eclasses using dist-kernel_reinstall_initramfs should also have the check for mounted /boot and ESP. We can do this safely via mount-boot-utils.eclass which does not export any phases. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* mount-boot.eclass: check for ESP as well as /boot, split eclassAndrew Ammerlaan2024-06-292-74/+120
| | | | | | | | | | | | | | | | This eclass is used by when the dist-kernel has to re-installed. Depending on the configuration of sys-kernel/installkernel, the files may be installed to /boot or to the EFI System partition. Therefore, extend this eclass to check if the ESP is mounted read-write as well on UEFI platforms. Split off the main functions into a separate "inherit-safe" eclass so we can safely use it in dist-kernel-utils.eclass and linux-mod-r1.eclass. In the process we drop support for EAPI 6, since there are no EAPI 6 consumers left in ::gentoo. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* java-utils-2.eclass: allow eant without java-ant-2_src_configureVolkmar W. Pogatzki2024-06-281-6/+16
| | | | | | | | | | Packages which can build without BSFIX need not inherit java-ant-2. To allow using eant without inheriting java-ant-2 we enhance the eant function with a condition which controls calling java-ant-2_src_configure. Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37022/commits/6ebf29fc691b6e38c8bf263eec2313d611298d25 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* kernel-build.eclass: identify dist-kernels, and warn usersAndrew Ammerlaan2024-06-271-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | Many, many, new users at some point make the mistake of running "make ...." in the source directory of a distribution kernel. This returns a vague error due to the absence of the kernel source files: make[2]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/include/generated/uapi/asm/unistd_32.h'. Stop. make[1]: *** [arch/x86/Makefile:248: archheaders] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Here we append to the kernel Makefile a warning that should make it more clear what is going wrong. "$(shell [ -t 0 ] && echo 1)" is a trick to show this warning when an user is executing "make" from their shell, but not when they are compiling out-of-tree kernel modules (which is the reason we need to install these makefiles to begin with). We also add a "dist-kernel" file containing the package atom of the ebuild that installed this kernel. This makes it possible for ebuilds/eclasses or whatever other tools to check if a kernel is a Gentoo distribution kernel. This identifier will be overwritten in gentoo-kernel-bin.ebuild. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* java-utils-2.eclass: add --runtime-only argument to java-pkg_getjarsFlorian Schmaus2024-06-261-3/+7
| | | | | | | | Some packages only need the jar at runtime, not at compile time. For example https://bugs.gentoo.org/934659#c2 Bug: https://bugs.gentoo.org/934659 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* common-lisp-3.eclass: Drop support for EAPI 6Ulrich Müller2024-06-241-4/+4
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240623 snapshotMichał Górny2024-06-231-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qt6-build.eclass: handle extra -mno-* for qtwebengineIonen Wolkens2024-06-221-0/+11
| | | | | | | | Had forgotten chromium needed extras, so went to look at chromium's ebuild to see which ones were getting stripped that we aren't already handling. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
* toolchain.eclass: fix SRC_URI for releasesSam James2024-06-201-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* readme.gentoo-r1.eclass: use two spaces after full stopFlorian Schmaus2024-06-201-4/+4
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* readme.gentoo-r1.eclass: fix description of DISABLE_AUTOFORMATTING by ↵Florian Schmaus2024-06-201-3/+3
| | | | | | | | | | | | | s/fmt/fold/ The autoformatting tool was switched from fmt to fold in 3f9cdecb18c6 ("Change formatting tool as discussed with Ulrich Müller in bug #460050, thanks a lot to him for his help.") but the description of the DISABLE_AUTOFORMATTING variable still talks about fmt being used. See also https://bugs.gentoo.org/460050#c7 Signed-off-by: Florian Schmaus <flow@gentoo.org>
* perl-module.eclass: drop support for perl versions without PERL_FEATURESAndreas K. Hüttel2024-06-191-1/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* ecm.eclass: Fix _ecm_check_gcc_versionAndreas Sturmlechner2024-06-171-1/+1
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* cargo.eclass: Add cargo_target_dir helper functionJames Le Cuirot2024-06-171-0/+10
| | | | | | | | | | | | | | | Several Cargo-based ebuilds cannot use cargo_src_install for various reasons and manually install binaries from within the target directory instead. It is common to see `target/$(usex debug debug release)`, but this lacks the target ABI when cross-compiling, so provide a helper function. There are some multilib Cargo-based ebuilds that always set the target ABI, even when not cross-compiling. It would be simpler to do this in general, so once ebuilds have been updated to use this new helper, I might change the eclass again accordingly. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* cargo.eclass: mention app-portage/pycargoebuild in @CRATES docsSam James2024-06-171-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Remove support for old snapshotsMichał Górny2024-06-151-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Add 19.0.0_pre20240615 snapshotMichał Górny2024-06-151-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: fix applying musl patches for live ebuildsSam James2024-06-151-1/+1
| | | | | | | | | | toolchain_fetch_git_patches had a typo for the case where we may want to try use downloaded SRC_URI (rather than git) patches, so it never applied them for live ebuilds. Reported by awilfox. Signed-off-by: Sam James <sam@gentoo.org>
* python-r1.eclass: Override PYTHON*_USEDEP in sub-phasesMichał Górny2024-06-141-1/+3
| | | | | | | | | Override the value of PYTHON_USEDEP and PYTHON_SINGLE_USEDEP to match the current implementation inside sub-phase function. This makes it possible to use them in has_version checks with conditional dependencies. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Change "PEP 517" to "PEP517", for consistencyMichał Górny2024-06-141-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove distutils_install_for_testingMichał Górny2024-06-141-118/+5
| | | | | | | | | Remove `distutils_install_for_testing` function. It is quite complex, and it was used only in the legacy eclass mode. All ebuilds using it in ::gentoo have been migrated to PEP517 build already, and the PEP517 build implement the same functionality better. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove support for `d_e_t --install`Michał Górny2024-06-141-15/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Document BUILD_DIR for consistencyMichał Górny2024-06-141-0/+16
| | | | | Closes: https://bugs.gentoo.org/910661 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Doc DISTUTILS_IN_SOURCE_BUILD as deprecatedMichał Górny2024-06-141-0/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Doc DISTUTILS_OPTIONAL + DISTUTILS_SINGLE_IMPLMichał Górny2024-06-141-0/+5
| | | | | Closes: https://bugs.gentoo.org/780807 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove doc for DOCS, HTML_DOCS and PATCHESMichał Górny2024-06-141-46/+0
| | | | | | | | | Remove the redundant (and outdated) documentation for the DOCS, HTML_DOCS and PATCHES variables. All these variables are handled through the default EAPI functions. Closes: https://bugs.gentoo.org/932802 Signed-off-by: Michał Górny <mgorny@gentoo.org>