vboxvideo isn't getting added asutomatically to the moduledb, however if "module-rebuild populate" is run, it does get added, but its a one-shot: It gets removed the next time its rebuilt.
Created attachment 241829 [details, diff] Explicity call linux-mod_pkg_postinst in pkg_postinst Found the problem. This package has its own pkg_postinst function which overrode the one in linux-mod.eclass. Calling linux-mod_pkg_postinst explicitly in pkg_postinst fixes the problem.
Any reason the ebuild is not fixed yet? I understand that it's very simple.
I think this is the right assignment. If not, please reassign as appropriate.
Is this still a problem? I've never used "module-rebuild" myself.
This is now handled via emerge @module-rebuild (for most people, that's portage-specific) but yes it's still a problem. The call to linux-mod_pkg_postinst is the right idea, but it should probably be within the "if use dri" block in pkg_postinst, same as the linux-mod_* calls that are already in src_compile & src_install.
sys-kernel/module-rebuild has been treecleaned, see bug #410739 for reference. Can you please close this bug as RESOLVED WONTFIX if is is only regarding the old module-rebuild and not reproducible with `emerge @module-rebuild`?
This is still a problem, and the fix is very simple. Add a call to linux-mod_pkg_postinst within the "if use dri" block in pkg_postinst.
(In reply to Ben Kohler from comment #7) > This is still a problem, and the fix is very simple. Add a call to > linux-mod_pkg_postinst within the "if use dri" block in pkg_postinst. patches welcome :-)
--- xf86-video-virtualbox-4.3.6.ebuild 2014-02-04 11:01:44.456505467 -0600 +++ xf86-video-virtualbox-4.3.6-r1.ebuild 2014-02-04 11:18:34.855199900 -0600 @@ -158,5 +158,6 @@ elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}" fi elog "" + linux-mod_pkg_postinst fi }
I was wrong, this does not affect the @module-rebuild set. Maybe it did at one time, or maybe I was wrong all along, not sure.