Was planning on pulling this in as a workaround for now given it's
a nasty bug but it's been merged upstream now too. Not doing
straight-to-stable as might introduce performance regressions so let's
give it a (small) amount of soaking time first.
KDE-bug: https://bugs.kde.org/show_bug.cgi?id=488326
Signed-off-by: Sam James <sam@gentoo.org>
We're about to drop ~ia64 support entirely anyway but also this pkg
is only useful for specific kernel versions. It's likely the intersection
of people on such kernels & ia64 is the empty set.
(Need to do this because of linux-mod-r1 adding a dep on pahole in
82f9bef4ed and this is a better option
than bothering to test pahole on ia64, sorry.)
Signed-off-by: Sam James <sam@gentoo.org>
This is a Lawrence Berkeley National Laboratory (LBNL) variant of the
BSD license with an additional clause granting LBNL the right to use any
enhancements you make public or otherwise provide to them.
Bug: https://bugs.gentoo.org/939071
Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
Needed to propagate the fix for sys-kernel/gentoo-kernel and pahole
so external kernel modules can be loaded. Do as we did for g-k-bin just
to be safe although not clear if needed here.
Signed-off-by: Sam James <sam@gentoo.org>
Needed to propagate the fix for sys-kernel/gentoo-kernel-bin and pahole
so external kernel modules can be loaded.
Signed-off-by: Sam James <sam@gentoo.org>
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>