* [gentoo-user] How to get rid of old gcc?
@ 2013-01-10 16:59 Jarry
2013-01-10 18:06 ` Paul Hartman
0 siblings, 1 reply; 6+ messages in thread
From: Jarry @ 2013-01-10 16:59 UTC (permalink / raw
To: gentoo-user
Hi Gentoo users,
I just updated gcc from 4.5.4 to 4.6.3, switched compiler
version, rebuilt libtool, but "emerge --depclean" still
does not want to remove old gcc. "equery list gcc" shows
both are still installed:
[IP-] [ ] sys-devel/gcc-4.5.4:4.5
[IP-] [ ] sys-devel/gcc-4.6.3:4.6
So how can I now remove the old gcc? I checked again
"Gentoo GCC Upgrade Guide", but did not find a single
word about it...
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to get rid of old gcc?
2013-01-10 16:59 [gentoo-user] How to get rid of old gcc? Jarry
@ 2013-01-10 18:06 ` Paul Hartman
2013-01-10 18:21 ` Florian Philipp
0 siblings, 1 reply; 6+ messages in thread
From: Paul Hartman @ 2013-01-10 18:06 UTC (permalink / raw
To: gentoo-user
On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@gmail.com> wrote:
> Hi Gentoo users,
>
> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
> version, rebuilt libtool, but "emerge --depclean" still
> does not want to remove old gcc. "equery list gcc" shows
> both are still installed:
>
> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
>
> So how can I now remove the old gcc? I checked again
> "Gentoo GCC Upgrade Guide", but did not find a single
> word about it...
If they are in slots, the newer version won't necessarily obsolete the
older version.
You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
dependencies on that slotted version.
You can use "emerge -C gcc:4.5" to remove only that slot's version of gcc.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to get rid of old gcc?
2013-01-10 18:06 ` Paul Hartman
@ 2013-01-10 18:21 ` Florian Philipp
2013-01-10 18:39 ` Jarry
0 siblings, 1 reply; 6+ messages in thread
From: Florian Philipp @ 2013-01-10 18:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1168 bytes --]
Am 10.01.2013 19:06, schrieb Paul Hartman:
> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@gmail.com> wrote:
>> Hi Gentoo users,
>>
>> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
>> version, rebuilt libtool, but "emerge --depclean" still
>> does not want to remove old gcc. "equery list gcc" shows
>> both are still installed:
>>
>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
>>
>> So how can I now remove the old gcc? I checked again
>> "Gentoo GCC Upgrade Guide", but did not find a single
>> word about it...
>
> If they are in slots, the newer version won't necessarily obsolete the
> older version.
>
> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
> dependencies on that slotted version.
>
> You can use "emerge -C gcc:4.5" to remove only that slot's version of gcc.
>
Even better:
emerge -av --depclean gcc:4.5
This will unmerge the gcc slot if and only if there is no dependency.
My guess is you have sys-devel/gcc:4.5 in your world file and not just
sys-devel/gcc and that's the reason why depclean won't clean it up.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to get rid of old gcc?
2013-01-10 18:21 ` Florian Philipp
@ 2013-01-10 18:39 ` Jarry
2013-01-10 18:54 ` Florian Philipp
0 siblings, 1 reply; 6+ messages in thread
From: Jarry @ 2013-01-10 18:39 UTC (permalink / raw
To: gentoo-user
On 10-Jan-13 19:21, Florian Philipp wrote:
> Am 10.01.2013 19:06, schrieb Paul Hartman:
>> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@gmail.com> wrote:
>>>
>>> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
>>> version, rebuilt libtool, but "emerge --depclean" still
>>> does not want to remove old gcc. "equery list gcc" shows
>>> both are still installed:
>>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
>>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
>>
>> If they are in slots, the newer version won't necessarily obsolete the
>> older version.
>>
>> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
>> dependencies on that slotted version.
>>
>> You can use "emerge -C gcc:4.5" to remove only that slot's version of gcc.
>
> Even better:
> emerge -av --depclean gcc:4.5
>
> This will unmerge the gcc slot if and only if there is no dependency.
>
> My guess is you have sys-devel/gcc:4.5 in your world file and not just
> sys-devel/gcc and that's the reason why depclean won't clean it up.
Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
/var/lib/portage/world, but how did this happen? I have never
put it there! I did not install gcc, I think it came as part
of stage3 (system), so why is it suddenly in my world-file?
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to get rid of old gcc?
2013-01-10 18:39 ` Jarry
@ 2013-01-10 18:54 ` Florian Philipp
2013-01-10 19:36 ` Jarry
0 siblings, 1 reply; 6+ messages in thread
From: Florian Philipp @ 2013-01-10 18:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1634 bytes --]
Am 10.01.2013 19:39, schrieb Jarry:
> On 10-Jan-13 19:21, Florian Philipp wrote:
>> Am 10.01.2013 19:06, schrieb Paul Hartman:
>>> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@gmail.com> wrote:
>>>>
>>>> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
>>>> version, rebuilt libtool, but "emerge --depclean" still
>>>> does not want to remove old gcc. "equery list gcc" shows
>>>> both are still installed:
>>>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
>>>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
>>>
>>> If they are in slots, the newer version won't necessarily obsolete the
>>> older version.
>>>
>>> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
>>> dependencies on that slotted version.
>>>
>>> You can use "emerge -C gcc:4.5" to remove only that slot's version of
>>> gcc.
>>
>> Even better:
>> emerge -av --depclean gcc:4.5
>>
>> This will unmerge the gcc slot if and only if there is no dependency.
>>
>> My guess is you have sys-devel/gcc:4.5 in your world file and not just
>> sys-devel/gcc and that's the reason why depclean won't clean it up.
>
> Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
> /var/lib/portage/world, but how did this happen? I have never
> put it there! I did not install gcc, I think it came as part
> of stage3 (system), so why is it suddenly in my world-file?
>
> Jarry
The only thing that comes to mind is that you once did something like
`emerge -avu gcc:4.5`. The behavior of -u/--update changed some time ago
so that it now adds packages to world if -1/--oneshot is not specified.
Regards,
Florian Philipp
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] How to get rid of old gcc?
2013-01-10 18:54 ` Florian Philipp
@ 2013-01-10 19:36 ` Jarry
0 siblings, 0 replies; 6+ messages in thread
From: Jarry @ 2013-01-10 19:36 UTC (permalink / raw
To: gentoo-user
On 10-Jan-13 19:54, Florian Philipp wrote:
> Am 10.01.2013 19:39, schrieb Jarry:
>> On 10-Jan-13 19:21, Florian Philipp wrote:
>>> Am 10.01.2013 19:06, schrieb Paul Hartman:
>>>> On Thu, Jan 10, 2013 at 10:59 AM, Jarry <mr.jarry@gmail.com> wrote:
>>>>>
>>>>> I just updated gcc from 4.5.4 to 4.6.3, switched compiler
>>>>> version, rebuilt libtool, but "emerge --depclean" still
>>>>> does not want to remove old gcc. "equery list gcc" shows
>>>>> both are still installed:
>>>>> [IP-] [ ] sys-devel/gcc-4.5.4:4.5
>>>>> [IP-] [ ] sys-devel/gcc-4.6.3:4.6
>>>>
>>>> If they are in slots, the newer version won't necessarily obsolete the
>>>> older version.
>>>>
>>>> You can use "emerge --depclean -p -v gcc:4.5" to view any remaining
>>>> dependencies on that slotted version.
>>>>
>>>> You can use "emerge -C gcc:4.5" to remove only that slot's version of
>>>> gcc.
>>>
>>> Even better:
>>> emerge -av --depclean gcc:4.5
>>>
>>> This will unmerge the gcc slot if and only if there is no dependency.
>>>
>>> My guess is you have sys-devel/gcc:4.5 in your world file and not just
>>> sys-devel/gcc and that's the reason why depclean won't clean it up.
>>
>> Well, I have *both* sys-devel/gcc *and* sys-devel/gcc:4.5 in
>> /var/lib/portage/world, but how did this happen? I have never
>> put it there! I did not install gcc, I think it came as part
>> of stage3 (system), so why is it suddenly in my world-file?
>
> The only thing that comes to mind is that you once did something like
> `emerge -avu gcc:4.5`. The behavior of -u/--update changed some time ago
> so that it now adds packages to world if -1/--oneshot is not specified.
Maybe time to update "Gentoo GCC Upgrade Guide". There is nothing
about this. I just followed it and did only "emerge -u gcc"...
Anyway my problem is now solved. Thanks to all who replied.
Jarry
--
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-01-10 19:39 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-10 16:59 [gentoo-user] How to get rid of old gcc? Jarry
2013-01-10 18:06 ` Paul Hartman
2013-01-10 18:21 ` Florian Philipp
2013-01-10 18:39 ` Jarry
2013-01-10 18:54 ` Florian Philipp
2013-01-10 19:36 ` Jarry
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox