summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* llvm.org.eclass: Add 19.0.0_pre20240203 snapshotMichał Górny2024-02-031-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: don't take shortcut for non-GCC bootstrap compilerSam James2024-02-031-1/+1
| | | | | | | | | We're fragile for stage0 so if we're not building using GCC, use -O0. The use of regular CFLAGS/CXXFLAGS there should be seen as a bonus as it has some caveats. Best to play it safe to avoid confusing hard-to-diagnose differences later on. Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: add installkernel as optfeatureAndrew Ammerlaan2024-02-021-1/+4
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* kernel-build.eclass: require real bison & flexSam James2024-02-011-2/+2
| | | | | | | | | | | | | This reverts commit 486f12612d840bf4efbd324afdab59a98dd27fce. Note that it appears to have been wrong for yacc for quite a while, as we previously depended on virtual/yacc, even though the kernel looks for bison... GNU Bison is at least needed, unclear about flex vs reflex, but let's say flex for now as the kernel docs say it (most of the time, reflex does work in place of flex, but not checked so let's be safe). Closes: https://bugs.gentoo.org/922823 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-2.eclass: require real bison & flexSam James2024-02-011-2/+2
| | | | | | | | | | | | This reverts commit 57a9b506597e766521a5633898d33fef125ecd5b and commit bd3dc0379262bedb0bb301df1b9c82442835be3e. GNU Bison is at least needed, unclear about flex vs reflex, but let's say flex for now as the kernel docs say it (most of the time, reflex does work in place of flex, but not checked so let's be safe). Closes: https://bugs.gentoo.org/922823 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: delete libstdc++exp.la tooSam James2024-02-011-0/+1
| | | | | | Reported by negril. Signed-off-by: Sam James <sam@gentoo.org>
* cargo.eclass: Output only the first crate URI when PKGBUMPINGMichał Górny2024-01-311-0/+5
| | | | | | | | | | | | | | Modify cargo_set_crate_uris to output only the first crate URI when PKGBUMPING is set for the current ebuild. This makes pkgdiff-mg much faster on Rust packages, as it does not have to fetch all the hundreds of crates that aren't part of the diff anyway. This is an improved version of 92001837418f3a50e6571c0f533520b42f90d488, as the original attempted not to output any URIs, and therefore could create empty groups in SRC_URI that are invalid. Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35097 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Remove 18.0.0 snapshotsMichał Górny2024-01-301-9/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass: update texlive eclasses for texlive 2023Florian Schmaus2024-01-302-81/+124
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* linux-mod-r1.eclass: warn if KV does not match virtual/dist-kernelAndrew Ammerlaan2024-01-301-1/+19
| | | | | | | | | | | | | We have no mechanism to ensure that we build the kernel modules for the same kernel version as the version we will record in the virtual/dist-kernel subslot dependency. This does not fix this problem, but it does add a warning to ensure users are aware that, for example, built binpkgs are going to have wrong dependency metadata. Bug: https://bugs.gentoo.org/923025 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/35066 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* llvm.org.eclass: Add 19.0.0_pre20240127 snapshotMichał Górny2024-01-271-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* Revert "flag-o-matic.eclass: allow further MIPS errata flags"Sam James2024-01-271-5/+2
| | | | | | | | | | | | | This reverts commit cf366abd1bd50a33755734bbfb8c0e8a49a5480e. This reverts commit fad75a344cbaada57ae490c3e8f88cdd5b35dadc. There's a bug in gas where it messes up labels in the presence of some of these errata flags. 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>
* gap-pkg.eclass: enable pipefail when piping tests through teeMichael Orlitzky2024-01-241-0/+2
| | | | | | | | | | | | | In src_test(), we are running, ${gapcmd} | tee test-suite.log to work around a terminal corruption issue in dev-gap/browse. This pipe however has the unfortunate side effect of hiding failures in ${gapcmd} behind the success of tee. To fix that, we enable pipefail for the duration of the command above. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* kernel-install.eclass: drop sys-kernel/installkernel-systemdAndrew Ammerlaan2024-01-241-13/+3
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* llvm.eclass: Allow LLVM 19Michał Górny2024-01-241-2/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: main is now 19.xMichał Górny2024-01-241-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain-autoconf.eclass: compress slotted info pagesSam James2024-01-231-0/+2
| | | | | | | | | | As noted in the bug, we install to a different location to accommodate slotting and hence do not benefit from the automagic compression for /usr/share/doc. Explicitly opt-in for the info pages we install. Bug: https://bugs.gentoo.org/922729 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: compress slotted man pages & info pagesSam James2024-01-231-0/+2
| | | | | | | | | | As noted in the bug, we install to a different location to accommodate slotting and hence do not benefit from the automagic compression for /usr/share/doc. Explicitly opt-in for the man pages & info pages we install. Bug: https://bugs.gentoo.org/922729 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: require >=sys-devel/gcc-config-2.11 for portageq fixesSam James2024-01-231-1/+1
| | | | | Bug: https://bugs.gentoo.org/906329 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 18.0.0_pre20240120 snapshotMichał Górny2024-01-221-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* gap-pkg.eclass: add sci-mathematics as a co-maintainerMichael Orlitzky2024-01-221-0/+1
| | | | | | | | In case François and I get hit by the same bus, but mainly for symmetry: sci-mathematics is also listed as a co-maintainer on the individual dev-gap packages. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: add two missing eclassdoc colonsMichael Orlitzky2024-01-221-4/+4
| | | | Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: default GAP_PKG_HTML_DOCDIR=doc at the top-levelMichael Orlitzky2024-01-221-12/+10
| | | | | | | | | The default value for this variable was essentially being set inside gap-pkg_src_install, rather than at the top-level. We move it to the top level so that the eclass man page correctly documents it. Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: use nullglob instead of working around itMichael Orlitzky2024-01-221-11/+15
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: improve comment about which docs we installMichael Orlitzky2024-01-221-1/+3
| | | | | | | | | The comment listing the file extensions to be installed as documentation was outdated, as such things are doomed to be. It has been changed to less precise and more accurate. Suggested-by: Max Horn <horn@mathematik.uni-kl.de> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: drop empty @USAGE tagsMichael Orlitzky2024-01-221-7/+0
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: drop internal _gap-pkg_gaparch functionMichael Orlitzky2024-01-221-12/+0
| | | | | | | Since removing the --bindir and --libdir flags from the default econf, this function is unused. Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: ensure that "required" packages have the right ${CATEGORY}Michael Orlitzky2024-01-221-2/+2
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: don't quote argument to "case"Michael Orlitzky2024-01-221-1/+1
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: remove leading whitespaceMichael Orlitzky2024-01-221-7/+7
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
* gap-pkg.eclass: add missing dieMichael Orlitzky2024-01-221-1/+1
| | | | | Suggested-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>