Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850130 - linux-mod.eclass: module compression support (was: x11-drivers/nvidia-drivers-515.48.07 no module compression)
Summary: linux-mod.eclass: module compression support (was: x11-drivers/nvidia-drivers...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 850133 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-06-06 18:20 UTC by Andrea Postiglione
Modified: 2022-06-11 18:59 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrea Postiglione 2022-06-06 18:20:49 UTC
the ebuild despite I have the config CONFIG_MODULE_COMPRESS_XZ = y does not compress the module in .xz
Comment 1 Ionen Wolkens gentoo-dev 2022-06-08 14:25:10 UTC
Modules are handled by the linux-mod eclass, and lack of compression applies to any out-of-tree modules using it.

If support were to be added, I'd say it'd have to be there rather than nvidia-drivers.
Comment 2 Mike Pagano gentoo-dev 2022-06-08 22:46:21 UTC
Is there any reason someone would have CONFIG_MODULE_COMPRESS_XZ set and *not* want an out of tree module compressed?

Is it ok to just compress all out of tree modules if CONFIG_MODULE_COMPRESS_XZ is set?  Is that a reasonable assumption ?
Comment 3 Ionen Wolkens gentoo-dev 2022-06-08 23:02:58 UTC
*** Bug 850133 has been marked as a duplicate of this bug. ***
Comment 4 Larry the Git Cow gentoo-dev 2022-06-11 18:59:54 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eee74b9fca1b5237299ee08fd041997e7271304a

commit eee74b9fca1b5237299ee08fd041997e7271304a
Author:     Mike Pagano <mpagano@gentoo.org>
AuthorDate: 2022-06-11 18:59:34 +0000
Commit:     Mike Pagano <mpagano@gentoo.org>
CommitDate: 2022-06-11 18:59:34 +0000

    linux-mod.eclass: Support module compression
    
    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>

 eclass/linux-mod.eclass | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)