summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* toolchain.eclass: enable LTO for libgccjit buildSam James2024-03-071-1/+1
| | | | | | | | Note that this is just about LTO support, not building it with LTO. See https://inbox.sourceware.org/jit/dd6f69da-757b-49ba-864a-377a8dc393cf@zoho.com/T/#t. Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Enable prebuilt manpages for LLVM 18Michał Górny2024-03-061-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshot supportMichał Górny2024-03-061-3/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kde-apps/ffmpegthumbs: Switch 24.02.0 to KF6Andreas Sturmlechner2024-03-031-0/+1
| | | | | | | After inquiring upstream again. Closes: https://bugs.gentoo.org/925870 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* */*: Remove dependency on virtual/linuxtv-dvb-headersMatthias Schwarzott2024-03-031-2/+2
| | | | | | | | | | | virtual/linuxtv-dvb-headers has been important in the past when linux-headers was not yet up-to-date. Now it just pulls in sys-kernel/linux-headers. Even that could be dropped as it is part of @system. But this might not be valid everywhere. Bug: https://bugs.gentoo.org/924398 Signed-off-by: Matthias Schwarzott <zzam@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240302 snapshotMichał Górny2024-03-021-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* meson.eclass: fix setting BUILD_DIR after the lto refactorEli Schwartz2024-03-011-2/+2
| | | | | | | | BUILD_DIR is an eclass variable and should be publicly, globally set. Closes: https://bugs.gentoo.org/925939 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: prefer -D buildtype instead of --buildtypeEli Schwartz2024-03-011-1/+1
| | | | | | | | | Because that is the logic which meson-python hardcodes, and meson needs to match calling convention. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/35528 Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: wire up LTO support directly into the meson optionsEli Schwartz2024-03-011-5/+35
| | | | | | | | | meson's builtin LTO support allows meson to introspect whether LTO is enabled and do some fancy things, such as forcing LTO off for a single target that is known to be special(ly bad) and not support LTO. Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* meson.eclass: refactor src_configure into a setter functionEli Schwartz2024-03-011-23/+32
| | | | | | | | | | | | | | | | This is necessary in order to get at the implementation of `meson setup` from other eclasses, which do not simply call meson_src_configure. The intended use case is distutils-r1, where a python build backend wraps meson and needs its arguments while calling meson on its own. This allows distutils-r1 to invoke `setup_meson_src_configure` followed by gpep517, and get access to: - the preparation which needs to be done, including setting up the environment - the array of setup arguments Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* texlive-common.eclass: Use nonfatal-respecting die for fmtutil-sysFlorian Schmaus2024-03-011-1/+2
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* texlive-common.eclass: check exit status of texmf-updateFlorian Schmaus2024-03-011-0/+4
| | | | | | | | | | | | The texlive eclasses where traditionally lenient when it comes to the exit status of texmf-update and fmtutil-sys, as they would return a non-zero exit status in certain situations, especially when bootstraping the texlive installation, i.e., when texlive-core is installed. With the upcoming Texlive 2023 bbump we can make this more strict, having texlive-core use nonfatal. Signed-off-by: Florian Schmaus <flow@gentoo.org>
* texlive-module.eclass: implicitly set TL_PV if not explicitly setFlorian Schmaus2024-03-011-0/+6
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* llvm.org.eclass: Remove old snapshot supportMichał Górny2024-02-281-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plasma.kde.org.eclass: Unsupport versioning scheme of Plasma 6 BetasAndreas Sturmlechner2024-02-281-4/+0
| | | | | | | | Won't appear again until Plasma 7. This reverts commit fcf516962acde10c69640181257600254f3dd752. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* frameworks.kde.org.eclass: Unsupport unstable release SRC_URIsAndreas Sturmlechner2024-02-281-8/+2
| | | | | | Will not appear again until KF7. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* gear.kde.org.eclass: Add static SLOT=5 blocklistAndreas Sturmlechner2024-02-281-1/+188
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* go-module.eclass: update dev-go/golicense -> dev-go/lichenSam James2024-02-271-1/+1
| | | | | | | | As mentioned in the bug, the eclassdoc was stale and mentioned the old and now-removed dev-go/golicense. Suggest dev-go/lichen instead. Bug: https://bugs.gentoo.org/913755 Signed-off-by: Sam James <sam@gentoo.org>
* go-module.eclass: fix whitespaceSam James2024-02-271-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240224 snapshotMichał Górny2024-02-241-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Remove bazel.eclassJakov Smolić2024-02-241-227/+0
| | | | | | Closes: https://bugs.gentoo.org/804690 Bug: https://bugs.gentoo.org/804690 Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>
* toolchain.eclass: allow fixincludes for mingw & special MIPS targetSam James2024-02-231-0/+16
| | | | | | | | | | | | | config/i386/t-cygming always sets STMP_FIXINC regardless of the configure arg for fixincludes, so don't disable it there. The only other case is config/mips/t-sdemtk which I've handled too. Exposed by 0b75d3ce0bae8240c28c6a8f191f5130548f8475. Bug: https://bugs.gentoo.org/905118 Closes: https://bugs.gentoo.org/925204 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Use two ver. comp. for LLVM_SOABI in >=18.1.0_rc3Michał Górny2024-02-221-4/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: explicitly disable fixincludes for cross tooSam James2024-02-191-2/+2
| | | | | | | Just in case, although the condition is unlikely there now. Bug: https://bugs.gentoo.org/905118 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: rework fixincludes againSam James2024-02-191-3/+20
| | | | | | | | | | | | | | | | | | | | | * Only run fixincludes for >= GCC 13 with <sys-libs/glibc-2.38. * Refactor the logic while at it to make it easier to control (as we do some bits depending on it in src_install). Doing this after getting for cross: ``` The directory (BUILD_SYSTEM_HEADER_DIR) that should contain system headers does not exist: /usr/lib/gcc/aarch64_be-unknown-linux-gnu/14/include make[2]: *** [Makefile:3448: stmp-fixinc] Error 1 make[2]: *** Waiting for unfinished jobs.... ``` This should also let us drop the patch for bug #905118 now. Bug: https://bugs.gentoo.org/905118 Bug: https://gcc.gnu.org/PR107128 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240218 snapshotMichał Górny2024-02-181-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove old snapshot supportMichał Górny2024-02-181-6/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove obsolete direct sphinx BDEPENDMichał Górny2024-02-181-3/+0
| | | | | | | | | Remove the direct dev-python/sphinx BDEPEND since it is now always redundant to the dependencies in sys-devel/{llvm,clang} ebuilds. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35400 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Put manpage dist filename into global varMichał Górny2024-02-181-26/+22
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Stop defaulting to +doc for 18+Michał Górny2024-02-181-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* flag-o-matic.eclass: fix botched MIPS revertSam James2024-02-121-4/+3
| | | | | | | | | | This fixes commit cf366abd1bd50a33755734bbfb8c0e8a49a5480e and is a proper revert of cf366abd1bd50a33755734bbfb8c0e8a49a5480e and fad75a344cbaada57ae490c3e8f88cdd5b35dadc. Bug: https://gcc.gnu.org/PR112782 Bug: https://sourceware.org/PR13509 Closes: https://bugs.gentoo.org/921104 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-install.eclass: explicitly set kernel image to 644Andrew Ammerlaan2024-02-111-0/+1
| | | | | | | | | | | | | | | The kernel build system sets the permissions on the kernel image to 644. However objcopy creates a file with permissions 755. This causes a discrepancy in the permissions on the installed kernel image between +generic-uki,-generic-uki and between gentoo-kernel, gentoo-kernel-bin. Restore the symmetry by explicitly setting the objcopy'ed files permissions to 644. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35214 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-install.eclass: install vmlinu{x,z} symlinkAndrew Ammerlaan2024-02-111-7/+21
| | | | | | and also link generic initrd/uki.efi Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-build.eclass: install vmlinu{x,z} symlinkAndrew Ammerlaan2024-02-111-0/+5
| | | | | | | | | | | | Some other distributions install (a symlink to) the kernel image here. Tools such as 'kernel-install list', 'kernel-install inspect', dracut and ukify look for the kernel image here. So lets install this symlink to make manual invocation of dracut and ukify a bit easier. As well as make it possible to use other kernel-install features such as list, inspect and add-all. Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240210 snapshotMichał Górny2024-02-101-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/dotnet-pkg.eclass: prepare for safely using NugetMaciej Barć2024-02-102-3/+52
| | | | | | | | | | | prevent NuGet executable (part of "dotnet-sdk") from fetching remote NuGet package sources, add two new features to the nuget ecalss: find and remove all nuget.config files, add and use "nuget_writeconfig" function that creates a "nuget.config" file which forces the use of NuGet packages specified in the ebuild file Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: set DOTNET_ROOTMaciej Barć2024-02-101-17/+16
| | | | | | export proper DOTNET_ROOT for wanted DOTNET_PKG_COMPAT Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg.eclass: add dotnet-pkg_force-compatMaciej Barć2024-02-101-0/+23
| | | | | | | | add new eclass function "dotnet-pkg_force-compat" that appends special variables to dotnet command executions to force compability with a spefified .NET SDK version Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg*: add dotnet-pkg_remove-badMaciej Barć2024-02-102-2/+55
| | | | | | | | | add new eclass feature that allows to remove projects from .NET solution files, the functions modified: dotnet-pkg-base_sln-remove, dotnet-pkg_remove-bad, dotnet-pkg_src_prepare Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: dotnet-pkg-base_test - remove directory magicMaciej Barć2024-02-101-16/+8
| | | | | | | | | | remove broken directory magic from the "dotnet-pkg-base_test" function, now the eclass consumers can pass the directory as the last argument and let the dotnet executable handle arguments instead of putting the weight on the eclass, also update the "dotnet-pkg-base_restore_tools" function documentation Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: deprecate wrong-style namesMaciej Barć2024-02-101-7/+31
| | | | | | | | some functions were written in wrong style by ommission, deprecate the wrong names (leave them in the elcass for compability) and add functions with proper names Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* eclass/dotnet-pkg-base.eclass: quotes and style tweaksMaciej Barć2024-02-101-4/+10
| | | | | | format special variables in edge cases section of the dotnet-pkg-base eclass Signed-off-by: Maciej Barć <xgqt@gentoo.org>
* llvm-r1.eclass: Initial versionMichał Górny2024-02-102-0/+401
| | | | | | | | Bug: https://bugs.gentoo.org/923228 Bug: https://bugs.gentoo.org/880671 Closes: https://bugs.gentoo.org/821955 Closes: https://bugs.gentoo.org/919150 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm-utils.eclass: Fix llvm_prepend_path to avoid duplicatesMichał Górny2024-02-102-4/+18
| | | | | | | | | | Fix llvm_prepend_path() not to append the new path multiple times, if the original PATH variable contained multiple LLVM directories. Thanks to Alexander Miller who spotted it in: https://github.com/gentoo/gentoo/pull/35196#discussion_r1480330001 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm-utils.eclass: Split out PATH prepending logicMichał Górny2024-02-103-24/+61
| | | | | | | Split the logic prepending PATH from pkg_setup() into a dedicated llvm_prepend_path() function. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm-utils.eclass: Introduce an eclass for common helpersMichał Górny2024-02-103-89/+200
| | | | | | | | Move some reusable functions from llvm.eclass to llvm-utils.eclass. This is with minimal modifications so far (only argument checks were cleaned up). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* plasma.kde.org.eclass: Support Plasma 6 RC micro releasesAndreas Sturmlechner2024-02-071-3/+3
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* gnome2.eclass: Make gnome2_gdk_pixbuf_update call conditionalMichał Górny2024-02-061-1/+3
| | | | | | | | Move the condition that checks the result of gnome2_gdk_pixbuf_savelist from inside gnome2_gdk_pixbuf_update to the postinst phase of gnome2.eclass. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gnome2-utils.eclass: Make *_gdk_pixbuf_update work unconditionallyMichał Górny2024-02-061-6/+1
| | | | | | | | | | | Remove the GNOME2_ECLASS_GDK_PIXBUF_LOADERS condition that required calling gnome2_gdk_pixbuf_savelist prior to gnome2_gdk_pixbuf_update. The actual list was never used, and all the ebuilds calling the function in Gentoo contain conditions to avoid calling the function when loaders are not built. Closes: https://bugs.gentoo.org/922500 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: ignore GCC version mismatch for live ebuildsSam James2024-02-051-1/+1
| | | | | | | | | | | We want to have live ebuilds use e.g. 14.0.9999. not 14.0.1.9999 which is inconsistent and requires a rename/adjustment to package.accept_keywords files when going from stage3->stage4 (.0 -> .1). We can do this now because we use --with-major-version-only nowadays, so SLOT matches the installed path of just '14'. Signed-off-by: Sam James <sam@gentoo.org>