summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* acct-user.eclass: Users need their group already at "build time"Andreas K. Hüttel2023-07-031-0/+1
| | | | Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
* distutils-r1.eclass: Include setuptools-rust version in outputMichał Górny2023-07-021-0/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add scikit-build-core backendMichał Górny2023-07-021-0/+13
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Bump minimum dep versionsMichał Górny2023-07-021-5/+5
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Bump minimum dev-lang/python versionsMichał Górny2023-07-021-3/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: make pypy3 match Python 3.10 nowMichał Górny2023-07-022-4/+4
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* cmake.eclass: workaround S=${WORKDIR} creating builddir above ${WORKDIR}Sam James2023-07-021-0/+9
| | | | | | | | | | | | | | | | | | When S=${WORKDIR}, cmake.eclass would create its build directory (if CMAKE_USE_DIR is unset) above WORKDIR(!) as ${WORKDIR}_build. Creating directories above WORKDIR is not legal. Portage has its own bug (bug #889418) in that it doesn't clean up unknown directories above WORKDIR in PORTAGE_TMPDIR, so combined, you get a problem where "ebuild ... clean" doesn't actually clean things up at all, and you get very confusing issues if e.g. changing CC between runs. The explicit S=WORKDIR check isn't truly needed but it makes explicit our intent here. Bug: https://bugs.gentoo.org/889418 Closes: https://bugs.gentoo.org/889420 Signed-off-by: Sam James <sam@gentoo.org>
* elisp.eclass: Update elisp_src_installUlrich Müller2023-07-011-1/+5
| | | | | | | Call the new elisp-make-site-file function when no explicit site-init file is found. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* elisp-common.eclass: New function elisp-make-site-fileUlrich Müller2023-07-011-0/+35
| | | | | | | | | | | | This creates and installs a site-init file for the package. The default case will add the package's SITELISP subdirectory to Emacs' load-path. This allows to remove all trivial site-init files (consisting only of a load-path line). More complicated cases can be handled by providing additional arguments, which are appended as lines to the site-init file. Signed-off-by: Ulrich Müller <ulm@gentoo.org>
* llvm.org.eclass: Add 17.0.0_pre20230630 snapshotMichał Górny2023-06-301-0/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* eclass/postgres.eclass, profiles/desc/postgres_targets.desc: Remove ↵Patrick Lauer2023-06-301-1/+1
| | | | | | postgres10, add postgres16 Signed-off-by: Patrick Lauer <patrick@gentoo.org>
* acct-user.eclass: include exit status in death messageMike Gilbert2023-06-262-4/+4
| | | | Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* acct-user.eclass: improve error message when usermod failsMike Gilbert2023-06-261-5/+23
| | | | | | | | | | | | | | | | | usermod refuses to update the home directory for a user with running processes. Output a more helpful message and avoid calling die for this. For other usermod failures, output stderr as an eerror message and die. Example output: * Failed to update user portage * This user currently has one or more running processes. * Please update this user manually with the following command: * usermod '--comment' 'System user; portage' '--home' '/var/lib/portage/home' '--shell' '/bin/bash' '--gid' 'portage' '--groups' '' portage Bug: https://bugs.gentoo.org/888189 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* cmake.eclass: Set CMAKE_SYSROOT when building with SYSROOT=Raul E Rangel2023-06-241-10/+10
| | | | | | | | | | | | | | | When performing a SYSROOT= build, the --sysroot parameter was not getting passed to the compiler if the CBUILD and CHOST matched. This results in the build attempting to use BROOT libraries and headers instead of the ones from the SYSROOT. This change will allow `llvm` to be built into a new SYSROOT. ROOT=/build/amd64-host emerge sys-devel/llvm Signed-off-by: Raul E Rangel <rrangel@chromium.org> Closes: https://github.com/gentoo/gentoo/pull/30658 Signed-off-by: James Le Cuirot <chewi@gentoo.org>
* toolchain.eclass: namespace hardened functionSam James2023-06-241-10/+10
| | | | Signed-off-by: Sam James <sam@gentoo.org>