Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
If I recompile, do I have to re-emerge everything again?
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
maverickmage
n00b
n00b


Joined: 27 Nov 2004
Posts: 60

PostPosted: Sat Oct 15, 2005 6:48 pm    Post subject: If I recompile, do I have to re-emerge everything again? Reply with quote

Sorry for the newbie question...
But what the title says...
Back to top
View user's profile Send private message
widremann
Veteran
Veteran


Joined: 14 Mar 2005
Posts: 1314

PostPosted: Sat Oct 15, 2005 6:53 pm    Post subject: Reply with quote

No.
Back to top
View user's profile Send private message
maverickmage
n00b
n00b


Joined: 27 Nov 2004
Posts: 60

PostPosted: Sat Oct 15, 2005 6:54 pm    Post subject: Reply with quote

thanks
Back to top
View user's profile Send private message
JSharku
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 189
Location: Belgium

PostPosted: Sun Oct 16, 2005 12:03 am    Post subject: Reply with quote

You shouldn't recompile everything no, but if you have done some major updates like glibc you should run revdep-rebuild which will determine what packages need to be recompiled, if any. See also 'man revdep-rebuild'.

Sharku
_________________
If only life were portage-driven:
Code:
USE="-bitch -in-laws nice gorgeous smart" emerge girlfriend
*sigh*
--
Open Source for Windows!
Back to top
View user's profile Send private message
extraketchup
n00b
n00b


Joined: 21 Jun 2004
Posts: 29
Location: Maine

PostPosted: Sun Oct 16, 2005 12:50 pm    Post subject: glibc Reply with quote

Quote:
You shouldn't recompile everything no, but if you have done some major updates like glibc you should run revdep-rebuild which will determine what packages need to be recompiled, if any.


Quick question about glibc (this may sound noobish) - would a package need recompiled if they dynamically link to glibc? I thought you would only need to recompile if using static links.

EK
_________________
There are more things in heaven and earth, Horatio, Than are dreamt of in your philosophy.
Back to top
View user's profile Send private message
JSharku
Apprentice
Apprentice


Joined: 09 Feb 2003
Posts: 189
Location: Belgium

PostPosted: Sun Oct 16, 2005 1:20 pm    Post subject: Reply with quote

It's the other way round. If you statically link to glibc it means that those portions of glibc (or any other lib it links to) that your program uses get compiled into its own binary. If you change glibc afterwards you still have the "original" portions inside your binary.

On the other hand if you use dynamic linking, there will be pointers to certain lib functions in the program, but the code to execute these functions is kept in the library. Now if you change your library, these functions might be moved around or modified or deleted or... so in that case the pointers to these functions need to be updated as well to reflect those changes. Mind you, it's not always necessary to recompile your program just because you updated a library, but that's why there's revdep-rebuild to find out if it's necessary.

Sharku
_________________
If only life were portage-driven:
Code:
USE="-bitch -in-laws nice gorgeous smart" emerge girlfriend
*sigh*
--
Open Source for Windows!
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