Gentoo Archives: gentoo-dev

From: Georgi Georgiev <chutz@×××.net>
To: gentoo-dev@g.o
Subject: [gentoo-dev] [RFC] A proposal regarding packages that provide kernel modules
Date: Tue, 16 Sep 2003 11:33:56
Message-Id: 20030916113351.GA27851%chutz@gg3.net
1 Installing packages that provide kernel modules in Gentoo is a real pain.
2 Several packages that are among the annoying ones are mplayer and svgalib. They
3 only provide a single module, but would require complete recompilation on a
4 kernel upgrade. Since they are not SLOTted, reverting to an older version of
5 the kernel requires another recompilation.
6
7 I want to suggest a different system in respect to installing kernel modules.
8
9 - Kernel modules are not to be recorded in /var/db/pkg/category/package/CONTENT
10 at all. This is the point that may be the most conflicting, but I personally
11 do not think that this would affect things a great deal. The
12 /lib/modules/<version> directories have plenty of files that are not recorded
13 anywhere anyway (files created by "make -C /usr/src/linux/ modules_install)
14
15 - Introduce new functions that can be included in ebuilds called something like
16 compile_modules() install_modules(). Also introduce a --modules (or similar)
17 switch to portage that will only execute those functions and thus effectively
18 only install the modules that a package provides.
19
20 - emerge --modules cannot be executed if a package is not emerged already.
21
22 - Emerging a package would, of course, also install the modules. (i.e. "emerge
23 --modules" is a subset of "emerge")
24
25 - Since emerge --modules can only be run on an already emerged package, and
26 since the files it installs are not recorded in CONTENTS there is no need to
27 touch the files in /var/db/pkg on an "emerge --modules".
28
29 - Emerging a package that provides kernel modules records the package to
30 /var/cache/edb/modules in a manner similar to world. This way the user can
31 simply "emerge --modules modules" and they can install modules to their new
32 kernel.
33
34 Expecting your comments and I hope we reach some kind of solution.
35
36 --
37 /\ Georgi Georgiev /\ Ignorance must certainly be bliss or there /\
38 \/ chutz@×××.net \/ wouldn't be so many people so resolutely \/
39 /\ +81(90)6266-1163 /\ pursuing it. /\
40
41 --
42 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] [RFC] A proposal regarding packages that provide kernel modules Chris Gianelloni <wolf31o2@g.o>
Re: [gentoo-dev] [RFC] A proposal regarding packages that provide kernel modules Thomas de Grenier de Latour <degrenier@×××××××××××.fr>