Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 270058 - provide set for kernel modules
Summary: provide set for kernel modules
Status: RESOLVED WORKSFORME
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-16 13:45 UTC by Martin von Gagern
Modified: 2009-05-16 15:14 UTC (History)
1 user (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 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.