I was trying module-rebuild today for the first time. Running module-rebuild list showed this: Fredric ~ # module-rebuild list ** Packages which I will emerge are: =media-video/ati-drivers-8.14.13-r5 =media-video/ati-drivers-8.18.6 =media-video/ati-drivers-8.18.6-r1 =media-video/ati-drivers-8.18.8 =media-video/ati-drivers-8.18.8-r1 =media-video/ati-drivers-extra-8.14.13 =x11-drivers/ati-drivers-8.14.13-r5 =x11-drivers/ati-drivers-8.19.10 =x11-drivers/ati-drivers-8.14.13-r6 =x11-apps/ati-drivers-extra-8.14.13 =sys-fs/fuse-2.4.1-r1 =x11-drivers/ati-drivers-8.20.8 =x11-drivers/ati-drivers-8.21.7 =media-libs/svgalib-1.9.21-r1 =app-misc/lirc-0.8.0 =x11-drivers/ati-drivers-8.14.13-r7 And running module-rebuild -X rebuild: Fredric ~ # module-rebuild -X rebuild ** Preparing to merge modules: ** Packages which I will emerge are: media-video/ati-drivers media-video/ati-drivers media-video/ati-drivers media-video/ati-drivers media-video/ati-drivers media-video/ati-drivers-extra x11-drivers/ati-drivers x11-drivers/ati-drivers x11-drivers/ati-drivers x11-apps/ati-drivers-extra sys-fs/fuse x11-drivers/ati-drivers x11-drivers/ati-drivers media-libs/svgalib app-misc/lirc x11-drivers/ati-drivers 5 4 3 2 1 Calculating dependencies emerge: there are no ebuilds to satisfy "media-video/ati-drivers". It lists ati-drivers 11 times while I only have the last one installed and none was installed after my installation of module-rebuild module-rebuild version is 0.5 Is this a bug in module-rebuild or moduledb?
it looks as though the moduledb is pushing a lot of "interesting" things! Can you please attach your /var/lib/module-rebuild/moduledb, please also check that its the only file in the directory.
Created attachment 81300 [details] /var/lib/module-rebuild/moduledb there was also a file called moduledbe, will post it too
Created attachment 81301 [details] /var/lib/module-rebuild/moduledbe
Ok, removing those files made module-rebuild to rebuild its database so it only contained ati-drivers, thats weird because first time I ran it, it didnt build that database, or there wasnt a message telling me that. But still what did it make add all the other ati-drivers to the list? And also another question shouldnt this prog also check if there are modules which I havent updated to the latest kernel? svgalib fuse and lirc was built against the old one but I had updated ati-drivers to the new but forgot to update the other. module-rebuild was installed after the kernel-update so it didnt know it should add the other modules to the list.Do you understand what I mean?
(In reply to comment #4) > Ok, removing those files made module-rebuild to rebuild its database so it only > contained ati-drivers, thats weird because first time I ran it, it didnt build > that database, or there wasnt a message telling me that. But still what did it > make add all the other ati-drivers to the list? I don't recall exactly when I added that feature, but its mostly maintained outside of module-rebuild anyways through the linux-mod eclass. > And also another question shouldnt this prog also check if there are modules > which I havent updated to the latest kernel? svgalib fuse and lirc was built > against the old one but I had updated ati-drivers to the new but forgot to > update the other. That would mean module-rebuild tracking between a load of different sources, and in honesty is outside of the scope of the app. It's an idea, but I dont think its going to be feasible. My recommendation is just "module-rebuild rebuild" at the end of every time you re-build a kernel in /usr/src/linux > module-rebuild was installed after the kernel-update so it > didnt know it should add the other modules to the list.Do you understand what > I mean? Yes. I do. That shouldn't matter though since that moduledb is maintained primarily outside of module-rebuild (ie the eclasses) and as such it should just be "aware" from the get-go. However, not every module uses linux-mod, and we're still working on porting them. Something else worth noting is moduledbe is a left over file from an old bug, however I've never had closure that its fixed except that I've not seen it re-occur. You can safely delete this file. Hopefully this fixes your issues, and any regression has been resolved. For now, I would like to close the bug as FIXED, but please take a note and feel free to re-open if you still have any issues. ANy questions are welcome. Thanks.