summaryrefslogtreecommitdiff
path: root/eclass
Commit message (Collapse)AuthorAgeFilesLines
* toolchain.eclass: add use-dep default for DSam James2022-06-121-1/+1
| | | | | | The others are masked, but w/e. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: BDEPEND on D for bootstrapping DSam James2022-06-121-0/+7
| | | | | | | | | | To build GCC 12+ w/ D, we need a D compiler. For now, depend on GCC with D enabled. And give a hint to the PM that an older GCC is likely to do the job to break the cycle, as those don't need D to build their D support. Just in newer versions. Closes: https://bugs.gentoo.org/840182 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: List wheel filename in install einfoMichał Górny2022-06-121-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: add initial meson-python PEP517 supportSam James2022-06-121-0/+14
| | | | | Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Update function docsMichał Górny2022-06-121-11/+22
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-r1.eclass: Warn about direct foreach_impl calls in d-r1Michał Górny2022-06-122-0/+19
| | | | | | | Warn if python_foreach_impl is called directly from within a phase function that is already covered by a distutils-r1 sub-phase. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add assertions for bindir correctnessMichał Górny2022-06-121-3/+27
| | | | | | | | | | | | | The eclass code in distutils-r1_python_install makes some assumptions specific to _distutils-r1_post_python_compile being called, and scriptdir not being modified since. Make them more explicit by: 1) explicitly removing the files that we expect to have been created, 2) verifying that both the copied and the original scriptdir have the same list of files. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Restore llvm_are_manpages_builtMichał Górny2022-06-121-1/+9
| | | | | Closes: https://bugs.gentoo.org/851240 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* linux-mod.eclass: Support module compressionMike Pagano2022-06-111-1/+16
| | | | | | | | | | | | | | | The Linux kernel supports the compression of modules utilizing GZIP, XZ and ZSTD. Add support into linux-mod.eclass to support this for out of tree modules utilizing the compression binary specified in the kernel config. Note that if the binary which provides the compression is not present on the system the kernel would have failed to build with an error indicating the missing binaries name. Closes: https://bugs.gentoo.org/850130 Signed-off-by: Mike Pagano <mpagano@gentoo.org>
* llvm.org.eclass: Fix manpage logicMichał Górny2022-06-111-9/+8
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Enable pregen manpages for 14.0.5Michał Górny2022-06-111-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Verify release signaturesMichał Górny2022-06-111-0/+17
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Switch to upstream tarballs in 14.0.5+Michał Górny2022-06-111-5/+22
| | | | | | | Switch from the autogenerated GitHub tarballs to the official tarballs published upstream. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* llvm.org.eclass: Control manpage type via eclassMichał Górny2022-06-111-18/+24
| | | | | | | | | | Move switching between pregenerated and built manpages from ebuilds to the eclass. This is going to make the maintenance easier — rather than having to switch to `build` on every version bump, then back to `pregenerated` we will just bump the current version in eclass after making the new manpage tarball. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* rebar.eclass: add whitespace to make the eclass more robustFlorian Schmaus2022-06-101-1/+1
| | | | Signed-off-by: Florian Schmaus <flow@gentoo.org>
* java-vm-2.eclass: add BDEPEND="app-arch/unzip"Florian Schmaus2022-06-101-0/+5
| | | | | | | | | | Thanks to David 'soap' Seifert for pointing out the missing whitespace when appending BDEPEND to DEPEND. Closes: https://bugs.gentoo.org/850415 Closes: https://github.com/gentoo/gentoo/pull/25804 Reported-by: Joonas Niilola <juippis@gentoo.org> Signed-off-by: Florian Schmaus <flow@gentoo.org>
* kernel-build.eclass: Enable py3.11Michał Górny2022-06-081-2/+3
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce DISTUTILS_USE_PEP517=no modeMichał Górny2022-06-081-1/+28
| | | | | | | | | | | | | | | | Introduce a new DISTUTILS_USE_PEP517 value "no" that stands for "no build system". This is primarily meant to replace the legacy distutils-r1 logic used for bootstrapping baseline PEP 517 packages. At the same time, it provides a convenient replacement for some of the uses of python-r1. In this mode, the eclass does not add PEP 517-specific dependencies and the default python_compile() is a no-op. However, it does set dependencies, REQUIRED_USE and enables sub-phase usage (with respect to DISTUTILS_OPTIONAL). It also permits using distutils_enable_{sphinx,tests}. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move python_optimize call to post-installMichał Górny2022-06-081-14/+18
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Future-proof python_install() for empty rootMichał Górny2022-06-081-1/+8
| | | | | | | Account for the possibility that ${BUILD_DIR}/install does not contain any files to merge, in preparation for DISTUTILS_USE_PEP517=no. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move venv creation to post-compileMichał Górny2022-06-081-27/+38
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* kernel-build.eclass: Use install directoryMartin Kletzander2022-06-081-1/+1
| | | | | | | | | | | Unfortunately commit ad3b55e32736 forgot to specify the install directory path, so fix that. See: https://github.com/gentoo/gentoo/pull/25789 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Martin Kletzander <nert.pinx@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25803 Signed-off-by: Sam James <sam@gentoo.org>
* udev.eclass: document when udev_reload should be calledMike Gilbert2022-06-071-2/+12
| | | | | Closes: https://bugs.gentoo.org/847436 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
* kernel-build.eclass: add missing || die for debug mvSam James2022-06-071-1/+3
| | | | | See: https://github.com/gentoo/gentoo/pull/25789 Signed-off-by: Sam James <sam@gentoo.org>
* kernel-build.eclass: Allow installation of vmlinuxMartin Kletzander2022-06-071-0/+5
| | | | | | | | | | | It is used by systemtap to reliably find kernel debuginfo. Thankfully the build path is one of the searched ones so we do not need to install it into /boot. There is a use flag for compiling the dist kernels with debuginfo, but it is not being installed afterwards. Signed-off-by: Martin Kletzander <nert.pinx@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/25789 Signed-off-by: Sam James <sam@gentoo.org>
* distutils-r1.eclass: Revert "Move venv/merge-root logic to post-phases"Michał Górny2022-06-071-73/+51
| | | | | | | Reverts: de2e1bee2462fccc445b845a889b006f888c6b1d Closes: https://bugs.gentoo.org/850418 Closes: https://bugs.gentoo.org/850433 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Revert "Introduce DISTUTILS_USE_PEP517=no mode"Michał Górny2022-06-071-29/+1
| | | | | Reverts: e897148019dc484622c8c6a44153dd45694d8a99 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Warn about setuptools legacy backendMichał Górny2022-06-071-1/+7
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Ban DISTUTILS_IN_SOURCE_BUILD in PEP517 modeMichał Górny2022-06-071-0/+2
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Add "_trial_temp" to forbidden package namesMichał Górny2022-06-071-1/+1
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: small docs format fixesArthur Zamarin2022-06-071-3/+6
| | | | | Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org> Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-any-r1.eclass: use python_has_version in examplesArthur Zamarin2022-06-071-5/+5
| | | | | | | python_has_version is preferred as it gives nicer output and safer defaults, instead of has_version. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Add explicit checks for incorrect phaseMichał Górny2022-06-071-0/+13
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Support python_domodule outside src_installMichał Górny2022-06-071-7/+22
| | | | | | | | Make it possible to use python_domodule() outside src_install(), in order to install files into the ${BUILD_DIR}/install tree used by distutils-r1. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Fix typo in python_moduleinto docMichał Górny2022-06-071-4/+4
| | | | | | | Fix python_moduleinto doc to mention python_domodule rather than python_doscript (copy-paste error, probably). Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Introduce DISTUTILS_USE_PEP517=no modeMichał Górny2022-06-071-1/+29
| | | | | | | | | | | | | | | | Introduce a new DISTUTILS_USE_PEP517 value "no" that stands for "no build system". This is primarily meant to replace the legacy distutils-r1 logic used for bootstrapping baseline PEP 517 packages. At the same time, it provides a convenient replacement for some of the uses of python-r1. In this mode, the eclass does not add PEP517-specific dependencies and does not export default python_compile() and python_install() implementations. However, it does set dependencies, REQUIRED_USE and enables sub-phase usage (with respect to DISTUTILS_OPTIONAL). It also permits using distutils_enable_{sphinx,tests}. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move venv/merge-root logic to post-phasesMichał Górny2022-06-071-51/+73
| | | | | | | | Move the PEP517 venv logic, install executable wrapping and root-merging logic all into post-phases. This will enable the ebuilds that do not use the standard phase implementations to use them. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Make *-nspkg.pth warning fatal for EAPI 9+Michał Górny2022-06-071-0/+4
| | | | | | | | | Now that we've essentially removed non-implicit namespace packages from Gentoo and setuptools upstream has deprecated their old solution, it's time to make this check fatal. Unfortunately, I did not think of it when adding PEP517 mode, so let's do that in EAPI 9. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Remove the obsolete pypy/share checkMichał Górny2022-06-071-12/+0
| | | | | | | | The PyPy 'share' directory check was necessary because of the historical prefix logic that we patched in Gentoo. All modern versions of PyPy use '/usr' as sys.prefix natively, so the check is no longer needed. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Move install QA checks to post-phase functionMichał Górny2022-06-071-23/+31
| | | | | | | | Perform the install QA check (the invalid package name check) in a post- phase function. This enables it to be performed even when distutils-r1_python_install is not used. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Call egg-info cleanup via post-test phaseMichał Górny2022-06-071-3/+12
| | | | Signed-off-by: Michał Górny <mgorny@gentoo.org>
* distutils-r1.eclass: Support internal post-python_* phase functionsMichał Górny2022-06-071-0/+6
| | | | | | | | | Support running additional post-python_* phase functions for internal usage. The goal is to replace some of the inline logic in distutils-r1_python_* functions that relies on the user calling them and additional calls to python_foreach_impl. Signed-off-by: Michał Górny <mgorny@gentoo.org>
* python-utils-r1.eclass: Strip stray *-pytest-*.pyc files in epytestMichał Górny2022-06-071-0/+5
| | | | | | | | | The test suites of pytest plugins cause additional *-pytest-*.pyc files to be created. Remove them in order to prevent them from being installed alongside the package. Closes: https://bugs.gentoo.org/847235 Signed-off-by: Michał Górny <mgorny@gentoo.org>
* toolchain.eclass: fix comment typoSam James2022-06-071-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: fix indentationSam James2022-06-071-1/+1
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: enhance src_test (print summary)Sam James2022-06-071-1/+10
| | | | | | Just like Fedora and opensuse do. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: allow forcefully disabling bootstrapping for developmentSam James2022-06-071-1/+7
| | | | | | | | | | Users should *absolutely not* do this. It's just useful for quickly testing eclass changes. The resultant compiler may not be safe to use. Especially so if unusual flags and environment is used. Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: don't force bash in src_compileSam James2022-06-071-2/+7
| | | | | See: 28053845221891a39248b91a0f45781d4414e8c9 Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: style cleanups, missing diesSam James2022-06-071-39/+47
| | | | Signed-off-by: Sam James <sam@gentoo.org>
* toolchain.eclass: only force Bash for < GCC 11Sam James2022-06-031-4/+9
| | | | | | | Chosen < 11 just because it's a reasonable enough place to drop, I suspect they're fine though. Signed-off-by: Sam James <sam@gentoo.org>