Gentoo Archives: gentoo-dev

From: Markus Nigbur <pYrania@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] kernelmod-rebuild-0.1
Date: Thu, 04 Dec 2003 08:13:00
Message-Id: 20031204151243.37ae0e9f.pYrania@gentoo.org
In Reply to: [gentoo-dev] kernelmod-rebuild-0.1 by Paul Varner
1 On Wed, 03 Dec 2003 00:42:54 -0600
2 Paul Varner <gentoo-dev@××××××××××××.org> wrote:
3
4 > [Also posted to gentoo-user and forum]
5 >
6 > In order to scratch an itch that I've been having with either a new
7 > kernel install or a recompilation of a kernel with a new config and
8 > forgetting packages that installed kernel modules, I've created
9 > kernelmod-rebuild to assist in the process of rebuilding packages.
10 >
11 > This script is based on revdep-rebuild (i.e. I started with it and
12 > changed it to do what I want) but instead of looking for broken
13 > library dependencies, it looks for packages that have installed kernel
14 > modules.
15 >
16 > What this script does is locate the packages that have installed
17 > modules into /lib/modules, determines which ebuilds to rebuild based
18 > on that list and rebuilds them.
19 >
20 > What this script doesn't do is locate the packages such as vmware that
21 > installed modules outside of the emerge process (since portage is
22 > unaware of those modules). Unfortunately, you will still have to
23 > remember to rerun the configuration process for those packages.
24 >
25 > Here is the usage statement from the script
26 >
27 > garath root # kernelmod-rebuild --help
28 > Usage: /usr/bin/kernelmod-rebuild [OPTIONS] [--] [EMERGE_OPTIONS]
29 >
30 > Rebuild packages that have installed kernel modules
31 >
32 > -X, --package-names recompile based on package names, not exact
33 > versions-q, --quiet be less verbose
34 >
35 > Calls emerge, all other options are used for it (e. g. -p, --pretend).
36 > Here is a sample run of the script on my system:
37 >
38 > garath root # kernelmod-rebuild --package-names --quiet --pretend
39 > --verbose
40 >
41 > Finding packages which install kernel modules...
42 > Packages will be recompiled.
43 >
44 > Collecting list of packages to rebuild... done.
45 >
46 > Cleaning list of packages to rebuild... done.
47 >
48 > Evaluating package order... done.
49 >
50 > All prepared. Starting rebuild...
51 >
52 > These are the packages that I would merge, in order:
53 >
54 > Calculating dependencies ...done!
55 > [ebuild R ] media-sound/alsa-driver-0.9.8 -oss
56 > [ebuild R ] media-video/nvidia-kernel-1.0.4496-r3
57
58 mhmm..
59
60 pyrania@powerix pyrania $ qpkg -f /lib/modules
61 media-libs/svgalib *
62 media-video/nvidia-kernel *
63 sys-apps/i2c *
64 x11-base/xfree-drm *
65
66 --
67 Markus Nigbur
68 Gentoo Developer
69 http://www.gentoo.org

Replies

Subject Author
Re: [gentoo-dev] kernelmod-rebuild-0.1 Paul Varner <gentoo-dev@××××××××××××.org>