public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [RFC] A proposal regarding packages that provide kernel modules
@ 2003-09-16 11:33 Georgi Georgiev
  2003-09-16 13:15 ` Chris Gianelloni
  2003-09-16 15:12 ` Thomas de Grenier de Latour
  0 siblings, 2 replies; 10+ messages in thread
From: Georgi Georgiev @ 2003-09-16 11:33 UTC (permalink / raw
  To: gentoo-dev

Installing packages that provide kernel modules in Gentoo is a real pain.
Several packages that are among the annoying ones are mplayer and svgalib. They
only provide a single module, but would require complete recompilation on a
kernel upgrade. Since they are not SLOTted, reverting to an older version of
the kernel requires another recompilation.

I want to suggest a different system in respect to installing kernel modules.

- Kernel modules are not to be recorded in /var/db/pkg/category/package/CONTENT
  at all. This is the point that may be the most conflicting, but I personally
  do not think that this would affect things a great deal. The
  /lib/modules/<version> directories have plenty of files that are not recorded
  anywhere anyway (files created by "make -C /usr/src/linux/ modules_install)

- Introduce new functions that can be included in ebuilds called something like
  compile_modules() install_modules(). Also introduce a --modules (or similar)
  switch to portage that will only execute those functions and thus effectively
  only install the modules that a package provides.

- emerge --modules cannot be executed if a package is not emerged already.

- Emerging a package would, of course, also install the modules. (i.e. "emerge
  --modules" is a subset of "emerge")

- Since emerge --modules can only be run on an already emerged package, and
  since the files it installs are not recorded in CONTENTS there is no need to
  touch the files in /var/db/pkg on an "emerge --modules".

- Emerging a package that provides kernel modules records the package to
  /var/cache/edb/modules in a manner similar to world. This way the user can
  simply "emerge --modules modules" and they can install modules to their new
  kernel.

Expecting your comments and I hope we reach some kind of solution.

-- 
/\   Georgi Georgiev   /\ Ignorance must certainly be bliss or there   /\
\/    chutz@gg3.net    \/ wouldn't be so many people so resolutely     \/
/\  +81(90)6266-1163   /\ pursuing it.                                 /\

--
gentoo-dev@gentoo.org mailing list


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2003-09-18  3:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-16 11:33 [gentoo-dev] [RFC] A proposal regarding packages that provide kernel modules Georgi Georgiev
2003-09-16 13:15 ` Chris Gianelloni
2003-09-16 15:13   ` Thomas de Grenier de Latour
2003-09-16 21:31     ` Thomas de Grenier de Latour
2003-09-17 22:50       ` Mark Francis
2003-09-17 23:09         ` Thomas de Grenier de Latour
2003-09-18  1:58         ` Georgi Georgiev
2003-09-18  3:33           ` Mark Francis
2003-09-16 15:12 ` Thomas de Grenier de Latour
2003-09-16 15:16   ` Thomas de Grenier de Latour

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox