Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 270058

Summary: provide set for kernel modules
Product: Portage Development Reporter: Martin von Gagern <Martin.vGagern>
Component: Enhancement/Feature RequestsAssignee: Portage team <dev-portage>
Status: RESOLVED WORKSFORME    
Severity: enhancement CC: gentoo-bugs
Priority: High    
Version: 2.2   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Martin von Gagern 2009-05-16 13:45:15 UTC
It would be nice to have a set of all packages which install kernel modules.

Rationale: so you can type things like this:
cd /usr/src/linux && cp /boot/config .config && make oldconfing && make && \
emerge -1 @kernel-modules && make firmware_install modules_install install

My simple approach to this would be to walk all installed packages and see which one place files in /lib/modules. Grepping CONTENTS files would be feasible, but I guess there is a much nicer way using the portage python API.
Comment 1 Allen Brooker (AllenJB) 2009-05-16 13:55:34 UTC
This already exists as the @module-rebuild set.
Comment 2 Martin von Gagern 2009-05-16 15:14:15 UTC
(In reply to comment #1)
> This already exists as the @module-rebuild set.

Thanks a lot! I somehow missed that in the portage documentation. Probably because it's no python class by itself, but simply an application of the OwnerSet class, which I hadn't considered closely enough. Sorry for the noise.