summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* git-r3.eclass: Add checkout dirs as "safe" directoriesMichał Górny2022-11-071-0/+5
| | | | | | | | | | Mark all checkout directories as "safe" to avoid dubious ownership errors with newer git versions when the checkout directory is accessed from src_install(). Closes: https://bugs.gentoo.org/879353 Closes: https://github.com/gentoo/gentoo/pull/28154 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable 16.0.0_pre20221104Michał Górny2022-11-041-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kde.org.eclass: With KDE_ORG_COMMIT, fetch from mirror://gentoo firstAndreas Sturmlechner2022-11-031-2/+4
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* llvm.org.eclass: Enable dist manpages for 15.0.4Michał Górny2022-11-031-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* qt6-build.eclass: add qt6-build_src_installJimi Huotari2022-11-021-0/+7
| | | | | Signed-off-by: Jimi Huotari <chiitoo@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* kernel-install.eclass: Fix variable mismatchMichał Górny2022-10-301-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Account for PV/KV mismatchMichał Górny2022-10-291-17/+26
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27949 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Account for PV/KV mismatchMichał Górny2022-10-291-26/+41
| | | | | | | | | Do not assume PV and kernel version must always match. Use PV for kernel install directory (i.e. /usr/src/linux) but get the release from the kernel build directory for the module directory. Update preinst version check to account for live ebuilds. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Revert "Add KV_FULL [...]"Michał Górny2022-10-291-23/+17
| | | | | Reverts: 55a495ad71b0ce1620488f389baddeebc787ee64 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Revert "Respect KV_FULL"Michał Górny2022-10-291-3/+3
| | | | | Reverts: 27eaf5e24de59baadb8f6042085af172cd56de5d Signed-off-by: Michał Górny <mgorny@gentoo.org>
* elisp.eclass: Drop EAPI 6 supportUlrich Müller2022-10-281-6/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* eclass/tests/scons-utils.sh: Fake python-r1 to fix failureMichał Górny2022-10-281-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221023 snapshotMichał Górny2022-10-231-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Clean old snapshot supportMichał Górny2022-10-231-15/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* go-module.eclass: run "go mod verify" on modules from dependency tarballWilliam Hubbs2022-10-211-0/+4
| | | | | | | It appears that go build does not completely detect whether a module has been modified since it was downloaded, so we need this step. Signed-off-by: William Hubbs <williamh@gentoo.org>
* desktop.eclass: Add EAPI guardUlrich Müller2022-10-201-0/+6
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* desktop.eclass: Install files as foo.desktop rather than foo-foo.desktopUlrich Müller2022-10-201-9/+8
| | | | | Bug: https://bugs.gentoo.org/771708#c14 Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* acct-user.eclass: add myself as a maintainerMike Gilbert2022-10-192-0/+2
| | | | | | For bug visibility. Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-user.eclass: drop elockuser and eunlockuserMike Gilbert2022-10-191-106/+0
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-user.eclass: inline useradd and usermodMike Gilbert2022-10-191-34/+87
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-user.eclass: respect ACCT_USER_NO_MODIFY in pkg_prermMike Gilbert2022-10-191-12/+19
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-user.eclass: support user override of commentMike Gilbert2022-10-191-3/+17
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-group.eclass: inline groupaddMike Gilbert2022-10-191-3/+25
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* user.eclass: mark @DEADMike Gilbert2022-10-191-0/+1
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-group.eclass: Revert "inline groupadd"Michał Górny2022-10-191-27/+3
| | | | | Reverts: acd0e195b2fba241d5eac52e34676a4a00493c2b Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: Revert "support user override of comment"Michał Górny2022-10-191-14/+3
| | | | | Reverts: 140f92c2b8a15e7e5c28a343a8b289b3d766e143 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: Revert "respect ACCT_USER_NO_MODIFY in pkg_prerm"Michał Górny2022-10-191-19/+12
| | | | | Reverts: 720c70288cf15946f2560af7d104e1b3f34f9dd9 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: Revert "inline useradd and usermod"Michał Górny2022-10-191-84/+29
| | | | | Reverts: 308c02b897fa7fba442441fd3a7da17ce07ec8ee Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: Revert "drop elockuser and eunlockuser"Michał Górny2022-10-191-0/+106
| | | | | Reverts: bde2856fc6bcc73d55dbf481a156805f06510a12 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: Revert "remove"Michał Górny2022-10-191-0/+684
| | | | | Reverts: 4c41709a9e9af1ba6753c61fbc68d49930725e6c Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user.eclass: removeMike Gilbert2022-10-191-684/+0
| | | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/27825 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: drop elockuser and eunlockuserMike Gilbert2022-10-191-106/+0
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: inline useradd and usermodMike Gilbert2022-10-191-29/+84
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: respect ACCT_USER_NO_MODIFY in pkg_prermMike Gilbert2022-10-191-12/+19
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-user.eclass: support user override of commentMike Gilbert2022-10-191-3/+14
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* acct-group.eclass: inline groupaddMike Gilbert2022-10-191-3/+27
| | | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Fix LLVM tool paths to prevent overriding themMichał Górny2022-10-191-0/+27
| | | | | | | | | | | Fix the LLVM tool path in variables such as AR, LD, etc. to their current locations prior to manipulating PATH, in order to prevent llvm.eclass from overriding them. Otherwise, a package requiring older LLVM libraries could force older tool versions, possibly incompatible with the object files produced by a newer clang version. Closes: https://github.com/gentoo/gentoo/pull/27803 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.eclass: Fix CC/CXX version to prevent the eclass overriding itMichał Górny2022-10-191-0/+36
| | | | | | | | | | | Fix the clang executable in CC, CPP and CXX variables to include the version number, in order to prevent the PATH manipulations done by llvm.eclass from overriding the compiler. Otherwise, a package requiring older LLVM libraries could cause an older compiler version being used, effectively resulting in a system built by mixed set of clang versions. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Respect KV_FULLMichał Górny2022-10-191-3/+3
| | | | | Closes: https://github.com/gentoo/gentoo/pull/27797 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-install.eclass: Add KV_FULL for "upstream" kernel versionMichał Górny2022-10-191-17/+23
| | | | | | | | Add a KV_FULL variable that defaults to the kernel version derived from PV, and can be used by ebuilds to override the version if necessary. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dist-kernel-utils.eclass: Add a PV → KV conversion functionMichał Górny2022-10-192-0/+44
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* font.eclass: check for dir existence in _update_fontcacheSam James2022-10-191-3/+5
| | | | | | | | It's still subject to a narrow race but nowhere near as bad as removed-last-font-now- its-gone. Closes: https://bugs.gentoo.org/754702 Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Enable manpage dist for 15.0.3Michał Górny2022-10-181-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass: pass -q to xzSam James2022-10-171-1/+1
| | | | | | Avoids noise from memlimit-compress. Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: pass -q to xzSam James2022-10-171-1/+1
| | | | | | Avoids noise from memlimit-compress. Signed-off-by: Sam James <sam@gentoo.org>
* linux-mod.eclass: add workaround for < xz 5.3.3_alpha 32-bit issueSam James2022-10-171-1/+1
| | | | | | | | | | | With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: add workaround for < xz 5.3.3_alpha 32-bit issueSam James2022-10-171-1/+1
| | | | | | | | | | | With older versions of xz, xz -T0 will on 32-bit systems try to allocate too much memory and bail out. After discussing with upstream, we set --memlimit-compress=50% as a way to make things work with both older & newer versions. This limiting is essentially already present with >= 5.3.3_alpha as -T0 includes it. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: use xz for gcc-build-logsSam James2022-10-171-2/+2
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Add 16.0.0_pre20221016 snapshotMichał Górny2022-10-161-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/tests: add systemd testsMike Gilbert2022-10-151-0/+50
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>