Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 310325 - sys-kernel/module-rebuild-0.6 ignores -X command line flag to use package name rather than exact version
Summary: sys-kernel/module-rebuild-0.6 ignores -X command line flag to use package nam...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
Depends on: 410739
Blocks:
  Show dependency tree
 
Reported: 2010-03-20 07:52 UTC by Eric Westbrook
Modified: 2014-01-09 19:15 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 Eric Westbrook 2010-03-20 07:52:57 UTC
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.
Comment 1 Doktor Notor 2010-03-20 10:48:53 UTC
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.
Comment 2 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-02-27 16:57:16 UTC
Is this still valid on 0.7?
Comment 3 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-23 13:19:24 UTC
Please try 0.7, thank you in advance.
Comment 4 Mike Pagano gentoo-dev 2014-01-09 19:15:48 UTC
# 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