[ltp] Debian, laptop kernel, and dependencies

d.lj linux-thinkpad@linux-thinkpad.org
Sun, 6 Jul 2003 23:43:46 +0200 (CEST)


[Kacper Wysocki]->[RE: [ltp] Debian, laptop kernel, and dependencies]->[03-...

 |>Not exactly a thinkpad related question, but I am using 2.4.21 + the
 |>linux-laptop patches on my Debian unstable t40p.  The problem I've run into
 |>is that I'm trying to use apt-get to install alsa, but the alsa-modules
 |>package depends on the kernel-image package...
 |>
 |>The following packages have unmet dependencies:
 |>  alsa-modules-2.4.21: Depends: kernel-image-2.4.21 but it is not installable
 |>
 |>What is the proper way to handle this?  I suppose there should be a way to
 |>tell the package system that I have the kernel-image package installed, or a
 |>way to create a fake kernel-image package and install it (I think I did this
 |>when I installed the Sun Java SDK).

$ cd /usr/src/linux (symlink to your real kernel source)
$ make-kpkg kernel_image

this puts a kernel_image-2.x.xx.Custom.xx.deb in /usr/src that you can
install with dpkg

then
$ apt-get install alsa-source
answer the config questions
$ cd /usr/src
$ tar jxvf alsa-source.tar.bz2
$ cd linux
$ make-kpkg modules

this puts alsa-modules-your.kernel.version.deb in /usr/src, again dpkg
..


 |Since you aren't using the debian precompiled kernel image, you will probably
 |not be able to use the alsa-modules package either. Kernel modules have to be
 |compiled against the configured source identically corresponding to the kernel
 |you intend to run them with, otherwise unresolved symbols almost always occur
 |at module insertion time.
 |
 |I'd recommend you download and compile your alsa-modules from alsa-project.org
 |or CVS.
 |
 |Yes, it's possible to create a placeholder package with apt and dpkg. The fine
 |people on irc.debian.org #debian work magic with apt- if you're looking for
 |the quick answer I suggest you go talk to them, as I don't remember the
 |commands off-hand. I have an aversion to this method, because I find it
 |creates problems down the road when one decides to run apt-get upgrade.
 |-
 |
 |I don't want to seem a dummy asking this, but I've had no luck googling for it
 |these past few days: what is the URL to the linux-laptop kernel patch
 |collection?
 |
 |Cheers,
 |Kacper Wysocki
 |
 |

-- 
x          Þ          ¥          .          o          R          G