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.
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.
# module-rebuild -X add x11-drivers/xf86-input-mouse
** Please pass the fully qualified package. For example:
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]
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 <email@example.com> (28 Dec 2013)
# Replaced by 'emerge @module-rebuild' set in Portage itself.
# Removal in 30 days, see http://bugs.gentoo.org/410739