summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* kernel-install.eclass: adjust test deps for sparcSam James2023-07-211-0/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-install.eclass: simplify caseSam James2023-07-211-18/+3
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-install.eclass: kernel-install_get_qemu_arch: port to sparcSam James2023-07-211-1/+7
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: add special-case for sparc arch/ directorySam James2023-07-211-0/+8
| | | | | | | | | | | | | | | | | | | | | Unfortunately, we still have a mess wrt dual-bitness arches. For sparc, there's arch/sparc, with ARCH=sparc being "whatever the toolchain is", ARCH=sparc32 being "give me a 32-bit kernel", and ARCH=sparc64 being "give me a 64-bit kernel". You do, seemingly, need to actually pass ARCH=sparc64 to guarantee correct results, as various kernel Makefiles check for the ARCH value, even though ARCH=sparc will pop out a 64-bit kernel. (I originally updated toolchain-funcs.eclass's tc-ninja_magic_to_arch, but we later found that doesn't look particularly sturdy. Per at the very least 5ba800962a80d4158b73fb91a7779df7b770c750 ("kbuild: update ARCH alias info for sparc") upstream, although it seems to go back a fair bit earlier, ARCH=sparc when building the kernel means "sparc64" if on a sparc64 host.) Signed-off-by: Sam James <sam@gentoo.org>
* dist-kernel-utils.eclass: dist-kernel_get_image_path: handle sparcSam James2023-07-211-1/+1
| | | | | | Same as hppa/ppc*. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain-funcs.eclass: tc-ninja_magic_to_arch: rename helper functionSam James2023-07-211-7/+7
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: add note re texinfo QA warningSam James2023-07-201-0/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: require modules-sign if securebootAndrew Ammerlaan2023-07-201-1/+17
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* dist-kernel-utils.eclass: optionally sign the kernelsAndrew Ammerlaan2023-07-201-1/+17
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* eclass/secureboot.eclass: add new eclassAndrew Ammerlaan2023-07-201-0/+173
| | | | Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* rust-toolchain.eclass: add preparatory loong supportWANG Xuerui2023-07-201-0/+9
| | | | | | | | Rust 1.71.0 was already beta at time of the commit, meaning the target tuple of loong can be considered stable. See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* rust-toolchain.eclass: qualify applicable rust_arch_uris with ABI and endiannessWANG Xuerui2023-07-201-6/+10
| | | | | | | | For less downloading client-side, as it is likely that only one package in each covered group would work on a given system. See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* rust-toolchain.eclass: add support for mips64el platformsWANG Xuerui2023-07-201-0/+2
| | | | | | | | | Right now mips64el systems are treated as mips64 (big-endian) in the rust_abi helper, that prevents installation of rust. Fix by checking for mips64el before mips64. See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* rust-toolchain.eclass: cosmetic cleanupsWANG Xuerui2023-07-201-30/+40
| | | | | | | | | Re-tab the file, and reorganize the rust_abi and rust_all_arch_uris helpers so the keys are sorted alphabetically while preserving match order. No functional change intended. See: https://github.com/gentoo/gentoo/pull/31241 Signed-off-by: WANG Xuerui <xen0n@gentoo.org>
* toolchain.eclass: disable gcov for crossSam James2023-07-201-1/+7
| | | | | | | | I don't see an immediate way to only disable this for crossdev stage1, so just disable it entirely for cross for now. Bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100289 Signed-off-by: Sam James <sam@gentoo.org>
* cmake.eclass: Support CMAKE_VERBOSE with ninjaMatt Turner2023-07-181-0/+4
| | | | Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ninja-utils.eclass: Add NINJA_VERBOSEMatt Turner2023-07-181-1/+12
| | | | | | | | | | | | | | ninja operates in one of three modes: - verbose (with -v): prints build commands - quiet (with --quiet): prints nothing - normal: prints [XX/YY]-style build status updates samurai works the same way, except it does not have a quiet mode. Thus we can't simply override ninja-utils' hard-coded flag from callers of eninja. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ninja-utils.eclass: Change maintainer to base-system@Matt Turner2023-07-181-2/+1
| | | | | | Per floppym's request. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* meson.eclass: Add MESON_VERBOSEJonas Rakebrandt2023-07-181-2/+13
| | | | | | | | This works similar to cmake.eclass's ${CMAKE_VERBOSE}. Closes: https://github.com/gentoo/gentoo/pull/28942 Signed-off-by: Jonas Rakebrandt <xarblu@protonmail.com> Signed-off-by: Matt Turner <mattst88@gentoo.org>
* meson.eclass: Change maintainer to base-system@Matt Turner2023-07-181-2/+1
| | | | | | Per floppym's request. Signed-off-by: Matt Turner <mattst88@gentoo.org>
* git-r3.eclass: Use '__init__' as initial branchkonsolebox2023-07-181-2/+2
| | | | | | | It silences the default branch warning. Closes: https://bugs.gentoo.org/841392 Signed-off-by: Matt Turner <mattst88@gentoo.org>
* ruby-utils.eclass: Simplify _ruby_implementation_dependkonsolebox2023-07-171-50/+2
| | | | | Closes: https://bugs.gentoo.org/909529 Signed-off-by: Sam James <sam@gentoo.org>
* shell-completion.eclass: new eclass, migrated from ::guruFlorian Schmaus2023-07-171-0/+115
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230717 snapshotMichał Górny2023-07-171-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Loosen minimal Python versionsMichał Górny2023-07-173-11/+9
| | | | | | | | | | | | | | | | | | Loosen minimal Python versions to accept any version in a given slot. Lower bounds are cumbersome to maintain and cause problems when upgrading outdated systems, particularly when sys-libs/glibc is involved. We could technically apply some hack to make any-r1 dependency checks to conditionally ignore minimal versions but that sounds like unnecessary complexity. In the end, minimum versions were primarily enforced to make sure users got the latest bugfixes but that doesn't seem strictly necessary. Closes: https://bugs.gentoo.org/910288 Signed-off-by: Michał Górny <mgorny@gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/31796 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: wheel dep moved into setuptoolsMichał Górny2023-07-171-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* pypi.eclass: _pypi_translate_version _pre to .devTom Gillespie2023-07-171-0/+1
| | | | | | | | Implement automatic translation _pre to .dev for pypi SRC_URIs. Signed-off-by: Tom Gillespie <tgbugs@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/31861 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Disable LTO when using cargo.eclassMichał Górny2023-07-171-0/+7
| | | | | | | | | Strip LTO flags when cargo.eclass is inherited. This means that Rust extensions are being built, and linking them with C/C++ style LTO results in broken shared libraries. Closes: https://bugs.gentoo.org/910220 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update addpredict for PyPy3.10Michał Górny2023-07-171-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: pypy3 is now 3.10-onlyMichał Górny2023-07-171-3/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Require >=dev-python/pypy3-7.3.12Michał Górny2023-07-171-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove --reflink=auto from calls to cpViolet Purcell2023-07-171-1/+1
| | | | | | | | --reflink=auto has become the default behaviour in coreutils 9, and it is not compatible with BSD userland. Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* multibuild.eclass: Remove --reflink=auto from calls to cpViolet Purcell2023-07-171-4/+2
| | | | | | | | --reflink=auto has become the default behaviour in coreutils 9, and it is not compatible with BSD userland. Signed-off-by: Violet Purcell <vimproved@inventati.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* docs.eclass: define missing python_check_deps()Andrew Ammerlaan2023-07-171-26/+33
| | | | | | | and remove some code duplication Closes: https://bugs.gentoo.org/910278 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
* elisp-common.eclass: Small documentation updateUlrich Müller2023-07-161-1/+1
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp.eclass: Update documentation for NEED_EMACSUlrich Müller2023-07-161-3/+3
| | | | Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* cargo.eclass: filter out lto flags for C/CXX compilersGeorgy Yakovlev2023-07-121-1/+2
| | | | | | | | | | | we do it in src_compile to avoid excessive flag stripping in projects using cargo.eclass just to fetch crates. Bug: https://bugs.gentoo.org/903908 Closes: https://bugs.gentoo.org/893658 Closes: https://bugs.gentoo.org/910220 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* llvm.org.eclass: Remove old snapshotsMichał Górny2023-07-111-12/+0
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* user-info.eclass: egetent: fix lookup by id when ROOT != /Mike Gilbert2023-07-091-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Previous to this change, egetent would match any id that starts with the id given as input. For example: egetent group 1 bin::1:root,bin,daemon wheel::10:root floppy::11:root news::13:news uucp::14:uucp console::17: audio::18: cdrom::19: users::100: Adding a colon to the grep expression yields the desired result: egetent group 1 bin::1:root,bin,daemon Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* qt5-build.eclass: Rename qt5_tools_oos_quirk -> qt5_configure_oos_quirkAndreas Sturmlechner2023-07-081-38/+23
| | | | | | | | | | ...and turn it into a public helper, as it serves more than just qttools. The initial review missed the fact that qtlocation is not part of qttools, so push the quirks back into the ebuilds, calling the newly publicised function. Bug: https://bugs.gentoo.org/910066 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Add qt5_syncqt_version()Andreas Sturmlechner2023-07-081-0/+19
| | | | Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* qt5-build.eclass: Import out-of-source quirks from qdoc/qtlocationAndreas Sturmlechner2023-07-081-2/+37
| | | | | | | | We probably won't get this fixed in Qt5 cycle anymore. Standardises the quirk via new internal helper function qt5_tools_oos_quirk() to avoid qt5_qmake usage in ebuilds. Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
* Revert "acct-user.eclass: Users need their group already at "build time""Mike Gilbert2023-07-061-1/+0
| | | | | | | | We pass --prefix "${ROOT}" to the useradd command, which means it should be looking in ${ROOT}/etc/group, not ${SYSROOT}/etc/group. Reverts: 1288ef96a50212d05eaf23e98e6cbe2a872d713f Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* java-virtuals-2.eclass: RemovalVolkmar W. Pogatzki2023-07-061-66/+0
| | | | | | | | Marked @DEAD since 2023-06-05 with commit #38467a7 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/31758 Signed-off-by: Sam James <sam@gentoo.org>
* eclass/texlive-module: use HTTPSMichael Mair-Keimberger2023-07-051-1/+1
| | | | | | Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://github.com/gentoo/gentoo/pull/31756 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230705 snapshotMichał Górny2023-07-051-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* dist-kernel-utils.eclass: fix user script overridesChris Pritchard2023-07-051-4/+4
| | | | | | | Closes: https://bugs.gentoo.org/909538 Signed-off-by: Chris Pritchard <chris@christopherpritchard.co.uk> Closes: https://github.com/gentoo/gentoo/pull/31745 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-2.eclass: Preserve S during installMike Pagano2023-07-041-1/+1
| | | | | | Closes: https://bugs.gentoo.org/909447 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* eclass/kernel-build.eclass: should depend on dtc for arm* and riscvAlexey Shvetsov2023-07-031-0/+3
| | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>
* eclass/kernel-build.eclass: riscv also need dtbsAlexey Shvetsov2023-07-031-2/+2
| | | | Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>