Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to keep 2 versions of gcc without --depclean removing 1
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
Pilpel
n00b
n00b


Joined: 06 Aug 2005
Posts: 35

PostPosted: Fri Apr 03, 2009 11:10 am    Post subject: How to keep 2 versions of gcc without --depclean removing 1 Reply with quote

Hi,
I'm using two versions of gcc. Whenever I do a emerge -a --depclean, emerge wants to remove the older gcc version (as it should). How can I overide this behavior so that emerge --depclean removes all the redundant packages except for gcc?
Thanks,
- Pilpel
Back to top
View user's profile Send private message
Paczesiowa
Guru
Guru


Joined: 06 Mar 2006
Posts: 593
Location: Oborniki Śląskie, Poland

PostPosted: Fri Apr 03, 2009 11:37 am    Post subject: Reply with quote

add both gcc slots to world file
Back to top
View user's profile Send private message
Letharion
Veteran
Veteran


Joined: 13 Jun 2005
Posts: 1344
Location: Sweden

PostPosted: Fri Apr 03, 2009 11:41 am    Post subject: Reply with quote

Which means that in /var/lib/portage/world you would put something like:
dev-java/sun-jdk
dev-java/sun-jdk:1.4
Back to top
View user's profile Send private message
Pilpel
n00b
n00b


Joined: 06 Aug 2005
Posts: 35

PostPosted: Fri Apr 03, 2009 11:56 am    Post subject: Reply with quote

Thanks!

- Pilpel
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