You are not logged in.

#1 2011-08-01 04:34:44

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Possible To Have Two Sets of Kernel Headers Installed?

I have two kernels installed on my machine (arch and ck-core2) and usually use core2 but sometimes use arch. I also run virtualbox so I can watch netflix but it complains that it doesn't have the correct modules, but I can't compile them since pacman will only let me have either linux-headers or kernel26-ck-core2-headers installed at one time. Is there a way to have both sets of headers installed at the same time?

Offline

#2 2011-08-01 09:54:35

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Possible To Have Two Sets of Kernel Headers Installed?

Bug with how kernel26-ck PKGBUILD is done. I have both kernel26-ice (now linux-ice) and kernel26-rt-ice installed. However, you'd need your own script, most likely, to compile the modules for all your kernels (I do it this way, check out nvidia-beta-all for an example of how this is done). Or you could boot successively into all of them and rerun the provided rc.d script...


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2011-08-01 19:05:09

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

Re: Possible To Have Two Sets of Kernel Headers Installed?

Not a bug, a feature.  Literally!  I added that to the provides array so users can run virtualbox without the stock kernel installed since it depends on 'kernel26-headers' and many ck users don't have both the ARCH kernel and the ck kernel...


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

Offline

#4 2011-08-02 00:36:32

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Possible To Have Two Sets of Kernel Headers Installed?

graysky wrote:

Not a bug, a feature.  Literally!  I added that to the provides array so users can run virtualbox without the stock kernel installed since it depends on 'kernel26-headers' and many ck users don't have both the ARCH kernel and the ck kernel...

Hmm, I don't actually think its a good idea to have a package provide something it doesn't have. While in the specific case of virtualbox it would work (since the script uses `uname -r`), if any other package actually depends on kernel26-headers (linux-headers in [testing]) having your package installed would prevent said package from working.

Those who want to uninstall the stock kernel should know what they're doing, perhaps you could leave the provides=('kernel26-headers') line commented out for that.

Of course, that's just my opinion. To the OP, you could just remove that provides line (presumably, I have not looked at the PKGBUILD).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#5 2011-08-02 04:41:21

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Possible To Have Two Sets of Kernel Headers Installed?

So, is there a way to have both of them installed? If I try to install the ck headers it says it conflicts with linux headers, but I can't remove linux-headers unless I remove virtualbox, which I don't want to do.

Last edited by brando56894 (2011-08-02 04:42:22)

Offline

#6 2011-08-02 06:02:44

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,358

Re: Possible To Have Two Sets of Kernel Headers Installed?

Remove the provides line in the kernel26-ck PKGBUILD. I'm assuming based on what graysky said that there's no conflict (a proper kernel-package PKGBUILD would not generate any file conflicts).


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2011-08-02 08:25:45

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

Re: Possible To Have Two Sets of Kernel Headers Installed?

Simply open the kernel26-ck-core2-headers.tar.xz package in a util like fileroller, edit the .PKGINFO file and remove the provides array, save and reisntall via pacman -U package.tar.xz - I will fix this moving forward as ngoonee suggested... but the modification will appear in the AUR for kernel26-ck and in the repo for linux-ck.


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

Offline

#8 2011-08-03 05:05:55

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: Possible To Have Two Sets of Kernel Headers Installed?

thanks!

Offline

Board footer

Powered by FluxBB