On Wed, 03 Dec 2003 00:42:54 -0600
Paul Varner <[EMAIL PROTECTED]> wrote:

> [Also posted to gentoo-user and forum]
> 
> In order to scratch an itch that I've been having with either a new
> kernel install or a recompilation of a kernel with a new config and
> forgetting packages that installed kernel modules, I've created
> kernelmod-rebuild to assist in the process of rebuilding packages.
> 
> This script is based on revdep-rebuild (i.e. I started with it and
> changed it to do what I want) but instead of looking for broken
> library dependencies, it looks for packages that have installed kernel
> modules.
> 
> What this script does is locate the packages that have installed
> modules into /lib/modules, determines which ebuilds to rebuild based
> on that list and rebuilds them.
> 
> What this script doesn't do is locate the packages such as vmware that
> installed modules outside of the emerge process (since portage is
> unaware of those modules). Unfortunately, you will still have to
> remember to rerun the configuration process for those packages.
> 
> Here is the usage statement from the script
> 
> garath root # kernelmod-rebuild --help
> Usage: /usr/bin/kernelmod-rebuild [OPTIONS] [--] [EMERGE_OPTIONS]
> 
> Rebuild packages that have installed kernel modules
> 
>   -X, --package-names  recompile based on package names, not exact
>   versions-q, --quiet          be less verbose
> 
> Calls emerge, all other options are used for it (e. g. -p, --pretend).
> Here is a sample run of the script on my system:
> 
> garath root # kernelmod-rebuild --package-names --quiet --pretend
> --verbose
> 
> Finding packages which install kernel modules...
> Packages will be recompiled.
> 
> Collecting list of packages to rebuild... done.
> 
> Cleaning list of packages to rebuild... done.
> 
> Evaluating package order... done.
> 
> All prepared. Starting rebuild...
> 
> These are the packages that I would merge, in order:
> 
> Calculating dependencies ...done!
> [ebuild   R   ] media-sound/alsa-driver-0.9.8  -oss
> [ebuild   R   ] media-video/nvidia-kernel-1.0.4496-r3

mhmm..

[EMAIL PROTECTED] pyrania $ qpkg -f /lib/modules
media-libs/svgalib *
media-video/nvidia-kernel *
sys-apps/i2c *
x11-base/xfree-drm *

-- 
Markus Nigbur
Gentoo Developer
http://www.gentoo.org

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to