summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* llvm.org.eclass: Add 19.0.0_pre20240309 snapshotMichał Górny2024-03-091-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: wire up meson-python to meson.eclassEli Schwartz2024-03-081-1/+15
| | | | | | | | | | | | | | | | | | | The meson-python build backend -- as the name suggests -- uses meson under the hood. We have a meson eclass which does lots of useful things pertinent to meson. Make sure it gets invoked, by prying out the options that meson_src_configure would use and setting passing them as our seed values for gpep517. [sam: Tweak '=' style.] [sam: Tweak mesonargs->MESONARGS for final version of e9189344b971f7ee0e2bec36650c57dbade4f122.] [sam: Update local variable list.] [mgorny: Add local variables for LTO filtering.] Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35554 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* meson.eclass: move python_export_utf8_locale to meson_src_configureSam James2024-03-081-3/+3
| | | | | | | | We don't need it in setup_meson_src_configure as distutils-r1 uses it and it'll get called twice then. Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Fix python_doheader install location with ROOTJames Le Cuirot2024-03-081-1/+1
| | | | | | | | | | python_get_includedir is prefixed with ESYSROOT, not EPREFIX, so we need to strip off the former, not the latter. This is currently only used for dev-python/pillow, which I have tested. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Make vars local before calling filter-ltoMichał Górny2024-03-081-0/+4
| | | | | | | Make LTO filtering local to the compilation code. This avoids disabling LTO for non-Python parts of an ebuild. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move filter-lto into DISTUTILS_EXT blockMichał Górny2024-03-081-6/+6
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Limit DISTUTILS_EXT logic to compile & testMichał Górny2024-03-081-1/+7
| | | | | | | | | | | Perform the environment modifications specific to DISTUTILS_EXT to python_compile and python_test phases. These are the only phases where we expect extension builds to be called. This allows us to limit the scope of localized CPPFLAGS, as we both want to avoid leaking changes to non-Python parts of the build and let ebuilds to manipulate flags at their leisure, particularly prior to python_compile. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove -Werror... hack (now in cython)Michał Górny2024-03-081-5/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* 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>