Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
When emerging packages relying on /usr/src/linux (Tips)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 520
Location: The Maldives

PostPosted: Wed Apr 19, 2006 7:39 am    Post subject: When emerging packages relying on /usr/src/linux (Tips) Reply with quote

I have had this occuring to me at times over again.

When rebooting your newly compiled kernel or want to reboot with a different kernel, the /usr/src/linux link is pointing at that other kernel source tree.

That is bad when compiling nvidia kernels, glibc or what kernel-dependent you are emergeing. This is my solution to guarrantee this will never happend:

Code:
/etc/conf.d/local.start:
rm /usr/src/linux
ln -s /usr/src/linux-`uname -r`


This can ofcourse be modified to suit your gentoo-rX kernel with appropriate syntax for 'uname'.

Thought it could be handy.
Back to top
View user's profile Send private message
orionrobots
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 289
Location: London, Uk

PostPosted: Wed Apr 19, 2006 12:58 pm    Post subject: Reply with quote

Thats also probably just as handy with any other linux were you may have more than one set of kernel sources. Thanks for that tip.
_________________
Danny Staple, curator of http://orionrobots.co.uk
Adopt an unanswered post initiative https://forums.gentoo.org/search.php?search_id=unanswered
Back to top
View user's profile Send private message
kuku
Tux's lil' helper
Tux's lil' helper


Joined: 23 Dec 2004
Posts: 142

PostPosted: Wed Apr 19, 2006 8:04 pm    Post subject: Reply with quote

it doesnt work when I got enabled in the kernel config
Code:
Local version - append to kernel release   

[/code]
Back to top
View user's profile Send private message
monkey89
Guru
Guru


Joined: 08 Mar 2004
Posts: 596

PostPosted: Wed Apr 19, 2006 9:34 pm    Post subject: Reply with quote

I think you can also set USE="symlink" and the link will automatically be updated when you emerge a new set of kernel sources.

-Monkey
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 520
Location: The Maldives

PostPosted: Thu Apr 20, 2006 10:09 am    Post subject: Reply with quote

kuku wrote:
it doesnt work when I got enabled in the kernel config
Code:
Local version - append to kernel release   

[/code]


well, the gentoo vanilla is also named differently which I am using in another machine. So I think you should be cool with uname syntaxes there too (not -r though, or?) I am not all sure here and am not an expert in filtering and uname:ing so I wont say it will work definitely. :)


Last edited by patrix_neo on Thu Apr 20, 2006 11:51 am; edited 1 time in total
Back to top
View user's profile Send private message
patrix_neo
Guru
Guru


Joined: 08 Jan 2004
Posts: 520
Location: The Maldives

PostPosted: Thu Apr 20, 2006 11:35 am    Post subject: Reply with quote

monkey89 wrote:
I think you can also set USE="symlink" and the link will automatically be updated when you emerge a new set of kernel sources.

-Monkey


Ah, didnt know that. Still, if you rely on kernels outside the emerge tree you can always use this one. Like me (kernel.org tree kernel)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum