summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Revert "java-utils-2.eclass: eerror if java-utils-2 is inherited directly"Volkmar W. Pogatzki2024-06-141-6/+0
| | | | | | | | | This reverts commit 41faa907e3a36f4ed00aced3499d469abb865281. Bug: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/37156 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: drop redundant java-pkg_get-current-vm()Volkmar W. Pogatzki2024-06-141-4/+0
| | | | | | | | Removes the first of two different versions of java-pkg_get-current-vm() Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/35287 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: eerror if java-utils-2 is inherited directlyVolkmar W. Pogatzki2024-06-141-0/+6
| | | | | | Closes: https://bugs.gentoo.org/207098 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: improve message of java-pkg_dieVolkmar W. Pogatzki2024-06-141-1/+1
| | | | | | Closes: https://bugs.gentoo.org/591142 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: prepend "QA Notice" to eqawarnVolkmar W. Pogatzki2024-06-141-2/+2
| | | | | | Closes: https://bugs.gentoo.org/813342 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* java-utils-2.eclass: solve Unexpected tag in "funcvar" stateVolkmar W. Pogatzki2024-06-141-3/+6
| | | | | | Closes: https://bugs.gentoo.org/637768 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* ecm.eclass: For _KFSLOT=6, RDEPEND on >=kde-frameworks/kf-env-6Andreas Sturmlechner2024-06-131-1/+2
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* eclass/tests: Fail the .%.sh.ok Makefile recipe if the test failsUlrich Müller2024-06-131-3/+5
| | | | | | | With .ONESHELL active, only the return status of the final recipe line will be checked. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/tests: Filter version-funcs.sh from the list of testsUlrich Müller2024-06-131-1/+1
| | | | | Fixes: 16b2c5ebb2869f4132536e5eb0a465b534556fb6 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rebar.eclass: Drop support for EAPI 6Ulrich Müller2024-06-131-6/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* rebar.eclass: Fix EPREFIX and ED usageUlrich Müller2024-06-131-6/+6
| | | | | | | | | The path returned by $(get_erl_libs) starts with a slash, so ${EPREFIX}/$(get_erl_libs) resulted in a double slash. Fixes: 7ee6937e6219f250559ee26eb64e5991b27cd289 Closes: https://bugs.gentoo.org/770283 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/tests: Update rebar_*.sh to EAPI 8Ulrich Müller2024-06-133-6/+10
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/tests: Rename test function in savedconfig.shUlrich Müller2024-06-131-8/+14
| | | | | | | | | | | Overriding a shell builtin command is generally a very bad idea, especially when that command is used in code that is sourced (in this case, /lib/gentoo/functions.sh). Therefore, rename test() to test_sc(). Also make sure that the directories that are used as targets for rm -rf in cleanup() are actually different from the root directory. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* java-vm-2.eclass: drop EAPI 7Volkmar W. Pogatzki2024-06-131-2/+2
| | | | | Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
* tree-sitter-grammar.eclass: drop myself as a maintainerNick Sarnie2024-06-121-1/+0
| | | | Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
* rust-toolchain.eclass: Drop unused rust_all_abis() and multilib inheritJames Le Cuirot2024-06-121-23/+2
| | | | | | | | | multilib USE flags have unintentionally appeared against all Cargo packages since this eclass was used by cargo.eclass. The rust_all_abis() function is not used anywhere though, and removing it makes the multilib-build inherit that is causing the issue redundant. Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* eclass/tests: Drop FreeBSD test from toolchain-funcs.shUlrich Müller2024-06-121-2/+2
| | | | | | | | | Prefix targets have been dropped from toolchain-funcs.eclass in commit cab79611b07c9eb. Update tests accordingly. Fixes: cab79611b07c9ebb795c6f65562ef72ba77550b1 Closes: https://bugs.gentoo.org/934150 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* postgres-multi.eclass: Fix annotationsPatrick Lauer2024-06-121-1/+1
| | | | Signed-off-by: Patrick Lauer <patrick@gentoo.org>
* eclass/tests: Remove git-r3.shMichał Górny2024-06-121-208/+0
| | | | | | | | | Remove base git-r3 tests, they are broken for a long time and I can't figure out how to fix them properly. There is probably no point in testing these functions standalone anyway since they're extensively used by ebuilds. Signed-off-by: Michał Górny <mgorny@gentoo.org>