Without this, if CONFIG_DEBUG_INFO_BTF_MODULES is enabled, as it is
by default since 49e0de80b0, while g-k-bin
will seem to install fine, it's installed incorrectly.
It also leads to external modules later not being loadable with relocation
errors from unhandled BTF:
```
[ 1648.352993] module: x86/modules: Invalid relocation target, existing value is nonzero for type 1, loc 00000000bc2721ed, val ffffffffc11e7850
```
Thanks-to: Ionen Wolkens <ionen@gentoo.org>
Reported-by: Sebastian Engel <sighunter@gmx.de>
Signed-off-by: Sam James <sam@gentoo.org>
If the kernel is built with CONFIG_DEBUG_INFO_BTF_MODULES, external
kernel module builds will try to call `pahole` to generate BTF and
fail if it's not present.
pahole is a small dependency and we're likely to enable BTF by default
in more configurations going forward, so do it unconditionally.
The alternatives aren't great anyway, we would have to instead:
* RDEPEND in g-k-bin
* BDEPEND in g-k-bin and break the binpkg case
* Use an ewarn in the eclass if pahole isn't installed + config option is set
so this is the best option available to us.
Thanks-to: Ionen Wolkens <ionen@gentoo.org>
Reported-by: Sebastian Engel <sighunter@gmx.de>
Signed-off-by: Sam James <sam@gentoo.org>
We use a runtime dependency, because jaraco-test is a module that exists
to abstract the unittest logic of multiple of jaraco's own packages into
one shared package.
In particular, it contains several two-line functions for performing
"import test.support", apparently across multiple versions of python, on
the theory that it's better to depend on a new package and chain
multiple functions together on one line via `or` than use a try/except.
The expected usage is that some other package has a USE=test dependency
on jaraco-test, and jaraco-test has a runtime dependency on the stdlib
testsuite since it exposes it.
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Copy of the stdlib, and the stdlib tests, from pre-3.12
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Copy of the stdlib, and the stdlib tests, from pre-3.12
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Add a virtual package that corresponds to the Python `test` stdlib
package. It enforces either Python versions that install the `test`
package unconditionally, or the corresponding dev-python/python-tests
packages.
Signed-off-by: Michał Górny <mgorny@gentoo.org>
They aren't needed to run setup.py (whether via gpep517 or otherwise).
They are only used by the runtime code. The distinction between
dependency types is sometimes seen as a bit academic, but it matters for
--buildpkgonly. This is especially useful as one of the runtime-only
dependencies will, in turn, depend on python[tk], and moving it out of
DEPEND means the package can be test-compiled with --buildpkgonly,
without rebuilding and reinstalling python.
Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>