You are not logged in.

#1 2012-01-28 15:26:11

RomaHagen
Member
Registered: 2011-09-21
Posts: 14

linux and linux-headers packages

Hi,

shouldn't linux-headers package has linux as it's depency? Currently I must roll back to the old kernel and that's why I should also manually track linux-headers package. As I understand there is litte if not sense at all in having headers different to the currently running kernel. You cannot have several parallely linux-headers packages (in order to build modules for different kernel versions) anyway.

I thought I'll ask here, before submitting a bug report.

Regards
Roman

Offline

#2 2012-01-28 16:14:33

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,700
Website

Re: linux and linux-headers packages

I don't think so... one can use headers for a different kernel for the purpose of compiling modules for example.  In this situation, the main kernel package isn't needed.  Dunno what to tell you about that roll back scenario.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2012-01-28 19:04:47

RomaHagen
Member
Registered: 2011-09-21
Posts: 14

Re: linux and linux-headers packages

graysky wrote:

one can use headers for a different kernel for the purpose of compiling modules for example.

Exactly this I mention in my first post.  The point is there cannot be two linux-headers on the system simaltenously, so installing the other one will smash the one that corresponds to your running kernel. Then you need to reinstall it once you've done with compiling modules.

But you are probably right, if there was a dependency the kernel would be downgraded also, which the user definitely did not want.

However, in this case it would be perfect to be able to have several linux-headers on the system. Is this possible?

Offline

#4 2012-01-29 16:08:17

computerquip
Member
Registered: 2009-08-11
Posts: 19

Re: linux and linux-headers packages

Actually, that's not right. I have three different sets of Linux headers for ck1-kx, lqx, and the default. Each time each of my kernels upgrade, I recompile the fglrx module against each one with their own headers. Looking in /lib/modules/ seems to ascertain this.

Also, there is a chance that using default headers for a non-default kernel could result in wrong behavior or info. For instance, compiling the fglrx module against linux-headers for the ck1 kernel does not work. I'm guessing not having the dependency simply means that you're able building modules for a kernel you may not have? I can see where this might be useful for those hosting a module for others without requiring the use of the corresponding kernel.

Last edited by computerquip (2012-01-29 16:12:07)

Offline

#5 2012-01-29 16:19:42

RomaHagen
Member
Registered: 2011-09-21
Posts: 14

Re: linux and linux-headers packages

computerquip wrote:

Actually, that's not right. I have three different sets of Linux headers for ck1-kx, lqx, and the default.

What I was talking about is that you are not able to have several default linux-headers on the machine. This contradicts a bit with the idea of compiling modules for a different from running kernel.

Offline

#6 2012-01-29 17:39:02

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: linux and linux-headers packages

If you build your own kernel package called linux-foo, you should have linux-foo-headers which install to the proper location as well: /usr/src/linux-$(uname -r)

Offline

Board footer

Powered by FluxBB