public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] emerge depclean gcc
@ 2010-10-21 12:18 fajfusio
  2010-10-21 13:24 ` Michael Hampicke
  2010-10-21 14:17 ` Paul Hartman
  0 siblings, 2 replies; 5+ messages in thread
From: fajfusio @ 2010-10-21 12:18 UTC (permalink / raw
  To: gentoo-user

Hi
I have upgraded my gentoo recently.
New version of gcc-4.4.3-r2 has been emerged.
Now I have 2 versions of gcc:
gcc-4.3.4
gcc-4.4.3-r2

There are still many packages compiled with the old version of gcc and
now I don't want to rebuild them all with a new version.
emerge --depclean wants to unemerge my old version of gcc.

May I just unmerge my old gcc ?
Is it save ?





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge depclean gcc
  2010-10-21 12:18 [gentoo-user] emerge depclean gcc fajfusio
@ 2010-10-21 13:24 ` Michael Hampicke
  2010-10-23 11:59   ` daid kahl
  2010-10-21 14:17 ` Paul Hartman
  1 sibling, 1 reply; 5+ messages in thread
From: Michael Hampicke @ 2010-10-21 13:24 UTC (permalink / raw
  To: gentoo-user


> May I just unmerge my old gcc ?
> Is it save ?

Yes it's save to unmerge your old gcc.
You could also - using quickpkg - create a binary package of your old
gcc before unmerging (for backup puropses).



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge depclean gcc
  2010-10-21 12:18 [gentoo-user] emerge depclean gcc fajfusio
  2010-10-21 13:24 ` Michael Hampicke
@ 2010-10-21 14:17 ` Paul Hartman
  2010-10-22  9:30   ` fajfusio
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Hartman @ 2010-10-21 14:17 UTC (permalink / raw
  To: gentoo-user

2010/10/21  <fajfusio@wp.pl>:
> Hi
> I have upgraded my gentoo recently.
> New version of gcc-4.4.3-r2 has been emerged.
> Now I have 2 versions of gcc:
> gcc-4.3.4
> gcc-4.4.3-r2
>
> There are still many packages compiled with the old version of gcc and
> now I don't want to rebuild them all with a new version.
> emerge --depclean wants to unemerge my old version of gcc.
>
> May I just unmerge my old gcc ?
> Is it save ?

use gcc-config to select the new gcc as your default compiler

env-update

source /etc/profile

fix_libtool_files.sh 4.3.4

emerge --oneshot libtool

then unmerge the old version of gcc

revdep-rebuild just to be safe

I think that should be all that's needed. I don't think there's any
reason to recompile world or anything like this.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge depclean gcc
  2010-10-21 14:17 ` Paul Hartman
@ 2010-10-22  9:30   ` fajfusio
  0 siblings, 0 replies; 5+ messages in thread
From: fajfusio @ 2010-10-22  9:30 UTC (permalink / raw
  To: gentoo-user

Thank you for help.
Everything went smoothly.

To be on a save side I would like to unemerge old version of gcc with
--depclean switch. How can I revert my previous --noreplace operation 
cleanly
besides emerge --unemerge =gcc-4.3.4.


Dnia 21-10-2010 o godz. 16:17 Paul Hartman napisał(a):
> 2010/10/21  <fajfusio@wp.pl>:
> > Hi
> > I have upgraded my gentoo recently.
> > New version of gcc-4.4.3-r2 has been emerged.
> > Now I have 2 versions of gcc:
> > gcc-4.3.4
> > gcc-4.4.3-r2
> >
> > There are still many packages compiled with the old version of gcc and
> > now I don't want to rebuild them all with a new version.
> > emerge --depclean wants to unemerge my old version of gcc.
> >
> > May I just unmerge my old gcc ?
> > Is it save ?
> 
> use gcc-config to select the new gcc as your default compiler
> 
> env-update
> 
> source /etc/profile
> 
> fix_libtool_files.sh 4.3.4
> 
> emerge --oneshot libtool
> 
> then unmerge the old version of gcc
> 
> revdep-rebuild just to be safe
> 
> I think that should be all that's needed. I don't think there's any
> reason to recompile world or anything like this.





^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-user] emerge depclean gcc
  2010-10-21 13:24 ` Michael Hampicke
@ 2010-10-23 11:59   ` daid kahl
  0 siblings, 0 replies; 5+ messages in thread
From: daid kahl @ 2010-10-23 11:59 UTC (permalink / raw
  To: gentoo-user

2010/10/21 Michael Hampicke <gentoo-user@hadt.biz>:
>
>> May I just unmerge my old gcc ?
>> Is it save ?
>
> Yes it's save to unmerge your old gcc.
> You could also - using quickpkg - create a binary package of your old
> gcc before unmerging (for backup puropses).
>

From the strictly Gentoo side of things, it's safe (following
instructions already posted).

However, for myself, I use tons of third party physics software, among
other things.  A lot of it is not very recent, and sometimes they are
picky about which gcc compiles is (and sometimes I need a shell script
to switch the gcc for execution of those programs and switch back
afterward...joy!)

So if you do a lot of compiling of external programs that are not as
well maintained and updated, there's not a lot of reason to *unmerge*
an old gcc.  There are two reasons to actually remove gcc's in my
opinion: revdep-rebuild wants to reinstall all of them, you need the
disk space.

I have 10 options under gcc-config.  I'm not at all recommending this
to everyone, but just making the point that, depending on what other
things you have going on, it's a good idea to check any third party
stuff, at the very least, before just removing it, since there's not
much harm in keeping a few extra gccs around for rainy days.

~daid



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-10-23 12:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-21 12:18 [gentoo-user] emerge depclean gcc fajfusio
2010-10-21 13:24 ` Michael Hampicke
2010-10-23 11:59   ` daid kahl
2010-10-21 14:17 ` Paul Hartman
2010-10-22  9:30   ` fajfusio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox