Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux-headers: why are they upgraded? glibc independent?!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
aharel
n00b
n00b


Joined: 16 Nov 2011
Posts: 16

PostPosted: Mon May 06, 2013 9:57 am    Post subject: linux-headers: why are they upgraded? glibc independent?! Reply with quote

Searching for information about linux-headers upgrades, I found that
1. it's OK to upgrade the headers without upgrading the kernel, because the developers put lots of work to ensure backward compatibility. Old programs only use the old, backward compatible stuff anyway.
2. one probably has to rebuild the packages that depend on linux-headers, in particular glibc. And that's really important so just rebuild glibc with no further thought.

BUT
1. This begs the question: what's the upside of upgrading the headers while using an old kernel? Why are the developers working so hard? If new programs try to use the new stuff, how will this work? Are there compiler directives that will support new headers with almost-as-good functionality from the old kernels?
2. But "equery depends linux-headers" does not report glibc as one of the packages that depend on linux-headers. So is this hint of "always rebuild glibc" outdated?
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Mon May 06, 2013 11:40 pm    Post subject: Re: linux-headers: why are they upgraded? glibc independent? Reply with quote

aharel wrote:
upgrade the headers without upgrading the kernel

That certainly doesn't sound safe to me. I wouldn't recommend it.

It's pointless to upgrade just the headers. Glibc must be recompiled, to use the new headers.
Back to top
View user's profile Send private message
Josef.95
Advocate
Advocate


Joined: 03 Sep 2007
Posts: 2189
Location: Germany

PostPosted: Tue May 07, 2013 2:43 am    Post subject: Reply with quote

aharel wrote:
2. But "equery depends linux-headers" does not report glibc as one of the packages that depend on linux-headers. So is this hint of "always rebuild glibc" outdated?

glibc depends on Virtial-Package --> virtual/os-headers
See
Code:
equery depends os-headers
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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