The change was introduced in this commit: https://gitweb.gentoo.org/repo/gentoo.git/commit/eclass/kernel-install.eclass?id=8fbafcbda119ea44a75bfd8b29cf8631d5aff80e The following part RDEPEND+=" sys-apps/kmod[lzma] " imposes kmod[lzma] dependency even for users that did not opt into compressed modules or that have a kernel configuration with no module support. As one of those users, my attempt to undo this dependency was to change the above RDEPEND to the following: RDEPEND+=" modules-compress? ( sys-apps/kmod[lzma] ) " I can certainly make a pull request, but I wanted to know if this is really the right kind of patch. Currently, kmod is in the @system set for all users, so it should be present on all gentoo systems, unless someone has overridden it with /etc/portage/profile/packages. Reproducible: Always
I don't see why we can't make that conditional.
(In reply to Sam James from comment #1) > I don't see why we can't make that conditional. i.e. PR is welcome :)
Both kmod and xz-utils are @system. The dependency is necessary because you may enable USE=modules-compress on any package providing kernel modules (via linux-mod-r1), and you'd be able to end up with compressed modules that you can't load. On the other hand, we can't enforce the dep there because there's no requirement that USE=modules-compress would use xz compression rather than the two other algorithms supported — this is only characteristic of sys-kernel/gentoo-kernel*.