Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Is it safe to upgrade linux-headers per se?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
guinux
n00b
n00b


Joined: 28 Jul 2006
Posts: 13

PostPosted: Fri Aug 04, 2006 2:59 am    Post subject: Is it safe to upgrade linux-headers per se? Reply with quote

For example, I have linux-headers-2.4.21-r1 and I could upgrade to linux-headers-2.6.11-r2
But, what about applications ( like glibc ) that were compiled against 2.4.21 header? Will they notice the change and how could they react to that change? I mean, linux headers provide functions declarations to the OS libraries, modules, etc and then
some other system libraries like glibc is complied against those declaration. So, is it safe to upgrade?
Any comments regarding linux's header usage and meaning will be appreciated =)

Best Regards,

Guillermo
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Fri Aug 04, 2006 3:14 am    Post subject: Reply with quote

Hi.

Well, until you update glibc, it won't have any effect on your system. The linux-headers are only used to compile glibc.
Having said that, going from a 2.4 kernel to a 2.6 kernel, can be very stressful. When did you last update your system? What profile are you running - /etc/make.profile?
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
guinux
n00b
n00b


Joined: 28 Jul 2006
Posts: 13

PostPosted: Fri Aug 04, 2006 4:15 am    Post subject: Reply with quote

jmbsvicetto wrote:
Hi.

Well, until you update glibc, it won't have any effect on your system. The linux-headers are only used to compile glibc.
Having said that, going from a 2.4 kernel to a 2.6 kernel, can be very stressful. When did you last update your system? What profile are you running - /etc/make.profile?


I'm using default-linux/x86/2006.0 profile since I chose to use 2.6 kernel
So... glibc is the only package that could be affected by linux-headers?
Then, Should I upgrade glibc and linux-headers at the same time?
Back to top
View user's profile Send private message
jmbsvicetto
Moderator
Moderator


Joined: 27 Apr 2005
Posts: 4735
Location: Angra do Heroísmo (PT)

PostPosted: Fri Aug 04, 2006 10:35 am    Post subject: Reply with quote

That's weird. How are you using linux-hearders-2.4* with the 2006.0 profile?
As I said, linux-headers are only used to build glibc. However, all your system is built against glibc. :wink: When you emerge a new version of linux-headers, you should emerge glibc again. Then you need to emerge binutils and gcc. To do it properly you should do:
Code:
# emerge -av linux-headers glibc binutils binutils-config gcc gcc-config
# emerge -av glibc binutils gcc

Then you would need to rebuild your system and world. I like to use emwrap.sh for this.
_________________
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Back to top
View user's profile Send private message
guinux
n00b
n00b


Joined: 28 Jul 2006
Posts: 13

PostPosted: Fri Aug 04, 2006 3:07 pm    Post subject: Reply with quote

jmbsvicetto wrote:
That's weird. How are you using linux-hearders-2.4* with the 2006.0 profile?
As I said, linux-headers are only used to build glibc. However, all your system is built against glibc. :wink: When you emerge a new version of linux-headers, you should emerge glibc again. Then you need to emerge binutils and gcc. To do it properly you should do:
Code:
# emerge -av linux-headers glibc binutils binutils-config gcc gcc-config
# emerge -av glibc binutils gcc

Then you would need to rebuild your system and world. I like to use emwrap.sh for this.


Well, I've installed 2004.3 release and used kernel-2.6.x
Then, when portage v2.1 was stable I've upgrade to 2006.0 ( doing that with the symlink stuff )
So here I am, using linux.header-2.4 with 2006.0 profile =)
It seems too much compile time for rebuilding my system and world...
I rather wait to 2006.1 to be release and re-install from scratch.

Thanks a lot for your help, I now have a clearer picture about linux's headers and the system.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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