Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909182 - sys-kernel/vanilla-kernel with CONFIG_KERNEL_XZ requres app-arch/xz-utils[extra-filters]
Summary: sys-kernel/vanilla-kernel with CONFIG_KERNEL_XZ requres app-arch/xz-utils[ext...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Distribution Kernel Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-26 14:01 UTC by om3i
Modified: 2023-06-27 02:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
kernel build log (kernel_build.log.gz,175.55 KB, application/gzip)
2023-06-26 14:49 UTC, om3i
Details

Note You need to log in before you can comment on or make changes to this bug.
Description om3i 2023-06-26 14:01:59 UTC
Kernel build fails otherwise.

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-06-26 14:03:26 UTC
Please show the full build.log. e
Comment 2 om3i 2023-06-26 14:49:16 UTC
Created attachment 864644 [details]
kernel build log

I also noticed this in dmesg:
xz[31286]: segfault at 18 ip 00007f87a497c59e sp 00007ffcab7965f0 error 4 in liblzma.so.5.4.3[7f87a497c000+27000] likely on CPU 5 (core 5, socket 0)
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-06-26 18:03:04 UTC
That's with custom config, right?  Unfortunately, we can't detect what configs you use and dependencies conditionally to that.  Given that this is not used by default, I think forcing the dependency on everyone would be wrong.
Comment 4 Greg Kubaryk 2023-06-26 20:00:04 UTC
also xz-utils has IUSE=+extra-filters (it defaults on), so someone would have to have disabled it themselves to run into this
Comment 5 Ionen Wolkens gentoo-dev 2023-06-27 02:30:00 UTC
fwiw there'd be the option to have a IUSE to compress modules, in which case this can be automatically added to configs, depend on the right compressor and RDEPEND on kmod[lzma] and such too.

Albeit linux-mod-r1 also disregards dependencies for compression and assumes users still have dependencies they needed for their own kernel.
Comment 6 Ionen Wolkens gentoo-dev 2023-06-27 02:34:18 UTC
(In reply to Ionen Wolkens from comment #5)
> fwiw there'd be the option to have a IUSE to compress modules, in which case
> this can be automatically added to configs, depend on the right compressor
> and RDEPEND on kmod[lzma] and such too.
Aka similar to what has been done for signing recently. Albeit I have no interest in implementing this myself ftr, just saying if someone is interested.