Gentoo Archives: gentoo-user

From: Gregory Woodbury <redwolfe@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] A pair of bash scripts to rebuild pkgs after a kernel upgrade.
Date: Fri, 15 Jan 2016 17:16:50
Message-Id: CAJoOjx9fL6WSYfEw1z6hmhCXjzi6bNQxg7jZKzWSH-inUHgSpQ@mail.gmail.com
1 After upgrading the gentoo-sources kernel or linux-headers, there are
2 some packages that are dependent on the kernel config or on specific
3 kernel modules. The ebuild "inherit" for eclasses will have the classes
4 linux-info or linux-mod referenced for these packages. These scripts do
5 the work of finding these references and rebuild/reinstall them after a
6 kernel or linux-headers upgrade.
7
8 I am attaching them to this email. They are fairly robust bash scripts
9 and they have comments and explanations in them. They should be
10 used after "eselect kernel set N" so the rebuilds get the correct sources
11 and .configs to look at. There are some status update displays since
12 they should be run from a text console or terminal window.
13
14 The "rebuild-kern-set" is the main script that checks the setup and
15 runs the emerge
16 The "make-kern-set" does the work of scanning the pkg db to make a set
17 based on the "inherit"s of the ebuilds. It scans the db directly for speed and
18 efficiency rather than digging into the ebuilds with standard tools.
19
20 Comments welcome. Enjoy.
21
22
23
24 --
25 G.Wolfe Woodbury
26 redwolfe@×××××.com

Attachments

File name MIME type
rebuild-kern-set application/octet-stream
make-kern-set application/octet-stream