View previous topic :: View next topic |
Author |
Message |
guinux n00b
Joined: 28 Jul 2006 Posts: 13
|
Posted: Fri Aug 04, 2006 2:59 am Post subject: Is it safe to upgrade linux-headers per se? |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Fri Aug 04, 2006 3:14 am Post subject: |
|
|
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 |
|
|
guinux n00b
Joined: 28 Jul 2006 Posts: 13
|
Posted: Fri Aug 04, 2006 4:15 am Post subject: |
|
|
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 |
|
|
jmbsvicetto Moderator
Joined: 27 Apr 2005 Posts: 4735 Location: Angra do Heroísmo (PT)
|
Posted: Fri Aug 04, 2006 10:35 am Post subject: |
|
|
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. 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 |
|
|
guinux n00b
Joined: 28 Jul 2006 Posts: 13
|
Posted: Fri Aug 04, 2006 3:07 pm Post subject: |
|
|
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. 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 |
|
|
|
|
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
|
|