Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 112423 - sys-kernel/module-rebuild-0.5 does not appear to handle portage updates/moves
Summary: sys-kernel/module-rebuild-0.5 does not appear to handle portage updates/moves
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Kernel Miscellaneous
URL:
Whiteboard:
Keywords:
: 112639 (view as bug list)
Depends on: 410739
Blocks:
  Show dependency tree
 
Reported: 2005-11-13 08:34 UTC by Mike Auty (RETIRED)
Modified: 2014-01-09 19: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 Mike Auty (RETIRED) gentoo-dev 2005-11-13 08:34:47 UTC
I had the ati-drivers installed, which until recently had been in the
media-video category.  They recently got moved to x11-drivers (and the apps to
x11-apps).  Unfortunately this left them in the module-rebuild list twice
because the media-video versions were never unmerged, and module-rebuild didn't
detect the moves/updates from portage.

I'm not entirely certain how portage handles moves (although I've seen the move
resolution system in action at the end of a sync), and I'm sure it will be
difficult to implement, but at the moment module-rebuild stops on packages it
can't find so I would call this a bug.

Reproducible: Always
Steps to Reproduce:
1. Wait for a driver to get moved/renamed in portage and updated.
2. Update world (so that the new package is inserted and the old one not removed)
3. Try to module-rebuild rebuild.

Actual Results:  
It fails unable to find the old (moved) driver.

Expected Results:  
Not had the old (moved) driver listed, or at the very least built the remaining
drivers and then a large message saying it failed on certain packages.

This bug is being posted from a machine other than the one that exhibited the
problem.  If the emerge info is necessary, please ask for it and I'll be happy
to post it from the original machine.
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2005-11-13 09:25:48 UTC
About the only thing I can do with this is remove it from the moduledb if the
package doesnt exist in portage anymore (this will include moves) and flag a
warning about it.

would this solve your issues?
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-15 13:31:58 UTC
*** Bug 112639 has been marked as a duplicate of this bug. ***
Comment 3 Mike Auty (RETIRED) gentoo-dev 2005-11-15 18:26:47 UTC
Hi, sorry I forgot to get back to you.  Yep, this would cure it easily in the
short term, and for the long term fix, I can't think of a way to could do it.

Actually, would it be possible to maintain the list in /etc/portage, and thus
have portage update it automatically?  I haven't checked portage's update
routines, but if they change *all* files in there, perhaps we could abuse this.
 Unfortunately it would be abuse, since the system was never designed to do
that, but perhaps getting ferringb to check it'd be ok? Then  we could go for
that (assuming it all works)?  Does that sound reasonable?
Comment 4 John Mylchreest (RETIRED) gentoo-dev 2005-11-22 14:21:08 UTC
I cant see of anyway to safely use the updates tbh. I'll have to mull over this
and check it out when I come back from my holidays!
Comment 5 Antti Mäkelä 2006-04-19 03:33:11 UTC
I also noticed this problem:

# module-rebuild list
** Packages which I will emerge are:
        =net-wireless/madwifi-driver-0.1485.20060325
        =net-wireless/madwifi-ng-0.1502.20060414

...when madwifi-driver was renamed to madwifi-ng. I had to delete madwifi-driver manually.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2008-10-31 22:56:02 UTC
This is fixed in portage-2.2, where the current existence of module-rebuild is replaced with:

  emerge @module-rebuild

leaving this bug open until portage-2.2 is stable and we have released a transitionary module-rebuild package
Comment 7 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2013-02-27 16:59:53 UTC
Is this fixed in 0.7?
Comment 8 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-06-23 13:20:15 UTC
Please try 0.7, thank you.
Comment 9 Mike Pagano gentoo-dev 2014-01-09 19:14:15 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