I would like to add packages to module-rebuild's list for rebuilding after a kernel update. I find that I have had to update x11-drivers/xf86-input-mouse and x11-drivers/xf86-input-keyboard on occasion previously after a kernel update. But module-rebuild seems to ignore the advertised -X flag and asks for a specific version. Reproducible: Always Steps to Reproduce: 1. emerge -tav sys-kernel/module-rebuild # (0.5 or 0.6, same result) 2. module-rebuild -X add x11-drivers/xf86-input-mouse 3. Receive error asking for specific version. Actual Results: # module-rebuild -X add x11-drivers/xf86-input-mouse ** Please pass the fully qualified package. For example: ** media-video/nvidia-kernel-1.0.7174 Expected Results: The package should have been added without version. The "usage" text claims this should work: # module-rebuild -h /usr/sbin/module-rebuild: illegal option -- - module-rebuild [options] action [category/package] Version: 0.5 Where options are: -X - Emerge based on package names, not exact versions. -C - Disable all coloured output. -P foo - Specify package manager: portage(default) or paludis Where action is one of: add - Add package to moduledb. del - Delete a package from moduledb. toggle - Toggle auto-rebuild of Package. list - List packages to auto-rebuild. rebuild - Rebuild packages. populate - Populate the database with any packages which currently install drivers into the running kernel.
AFAICT, -X should *not* be used for adding stuff to the DB but merely for the rebuild action; i.e. - for cases when the version in the DB is already gone from the tree.
Is this still valid on 0.7?
Please try 0.7, thank you in advance.
# Samuli Suominen <ssuominen@gentoo.org> (28 Dec 2013) # Replaced by 'emerge @module-rebuild' set in Portage itself. # Removal in 30 days, see http://bugs.gentoo.org/410739 sys-kernel/module-rebuild