FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-07-2012, 07:52 PM
Neil Bothwick
 
Default GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

On Fri, 07 Sep 2012 19:26:40 +0200, Michael Hampicke wrote:

> Well, then this simple little command should help you refresh your
> memory. It shows every install and uninstall of gcc on your system.
>
> With 8 years of emerge.log you are good to go
>
> genlop -ul | grep 'sys-devel/gcc-[0-9]'

And this week's prize for unnecessary use of pipes and grep goes to...

genlop -u sys-devel/gcc

:P


--
Neil Bothwick

BING But It's Not Google
 
Old 09-07-2012, 09:14 PM
Michael Hampicke
 
Default GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

Am 07.09.2012 21:52, schrieb Neil Bothwick:
> On Fri, 07 Sep 2012 19:26:40 +0200, Michael Hampicke wrote:
>
>> Well, then this simple little command should help you refresh your
>> memory. It shows every install and uninstall of gcc on your system.
>>
>> With 8 years of emerge.log you are good to go
>>
>> genlop -ul | grep 'sys-devel/gcc-[0-9]'
>
> And this week's prize for unnecessary use of pipes and grep goes to...
>
> genlop -u sys-devel/gcc
>
> :P
>
>

Nope, we not only need the time when gcc was unmerged (-u), but also
when it was merged (-l). When there's little time difference between
merge and unmerge we can assume, that portage auto-cleaned the old
version of gcc. If you combine -u and -l you need to grep (to be exact
sys-devel/gcc-[0-9], because of sys-devel/gcc-config and
sys-devel/gcc-apple).

Yeehaw cowboy
 
Old 09-07-2012, 10:59 PM
Neil Bothwick
 
Default GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

On Fri, 07 Sep 2012 23:14:05 +0200, Michael Hampicke wrote:

> >> genlop -ul | grep 'sys-devel/gcc-[0-9]'
> >
> > And this week's prize for unnecessary use of pipes and grep goes to...
> >
> > genlop -u sys-devel/gcc

> Nope, we not only need the time when gcc was unmerged (-u), but also
> when it was merged (-l). When there's little time difference between
> merge and unmerge we can assume, that portage auto-cleaned the old
> version of gcc. If you combine -u and -l you need to grep (to be exact
> sys-devel/gcc-[0-9], because of sys-devel/gcc-config and
> sys-devel/gcc-apple).

genlop, unlike qlop, does exact matching by default, so gcc mtches only
gcc, not gcc-config (use -s if you want that). When you give a package
name all merges are shown by default (-l is to show the full
history), so the command I gave does what you want, like this

Thu Jun 21 01:45:05 2012 <<< sys-devel/gcc-4.5.3-r2
Thu Jun 21 01:45:33 2012 >>> sys-devel/gcc-4.5.3-r2
Mon Jul 16 10:30:01 2012 <<< sys-devel/gcc-4.5.3-r2
Mon Jul 16 10:30:32 2012 >>> sys-devel/gcc-4.5.4
Thu Sep 6 11:24:27 2012 <<< sys-devel/gcc-4.6.3
Thu Sep 6 11:24:45 2012 >>> sys-devel/gcc-4.6.3
Thu Sep 6 11:26:15 2012 <<< sys-devel/gcc-4.5.4
Thu Sep 6 11:26:43 2012 >>> sys-devel/gcc-4.5.4

Except it is coloured by default when outputting to a terminal, merges in
green, unmerges in red. Using -l and then grep is saying "show me
everything, oh no, cut out anything that's not gcc" rather than "show me
all gcc merges and unmerges".


--
Neil Bothwick

There's no place like http://www.home.com
 
Old 09-07-2012, 11:32 PM
Michael Hampicke
 
Default GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

2012/9/8 Neil Bothwick <neil@digimed.co.uk>

On Fri, 07 Sep 2012 23:14:05 +0200, Michael Hampicke wrote:



> >> genlop -ul | grep 'sys-devel/gcc-[0-9]'

> >

> > And this week's prize for unnecessary use of pipes and grep goes to...

> >

> > genlop -u sys-devel/gcc



> Nope, we not only need the time when gcc was unmerged (-u), but also

> when it was merged (-l). When there's little time difference between

> merge and unmerge we can assume, that portage auto-cleaned the old

> version of gcc. If you combine -u and -l you need to grep (to be exact

> sys-devel/gcc-[0-9], because of sys-devel/gcc-config and

> sys-devel/gcc-apple).



genlop, unlike qlop, does exact matching by default, so gcc mtches only

gcc, not gcc-config (use -s if you want that). When you give a package

name all merges are shown by default (-l is to show the full

history), so the command I gave does what you want, like this



* * *Thu Jun 21 01:45:05 2012 <<< sys-devel/gcc-4.5.3-r2

* * *Thu Jun 21 01:45:33 2012 >>> sys-devel/gcc-4.5.3-r2

* * *Mon Jul 16 10:30:01 2012 <<< sys-devel/gcc-4.5.3-r2

* * *Mon Jul 16 10:30:32 2012 >>> sys-devel/gcc-4.5.4

* * *Thu Sep *6 11:24:27 2012 <<< sys-devel/gcc-4.6.3

* * *Thu Sep *6 11:24:45 2012 >>> sys-devel/gcc-4.6.3

* * *Thu Sep *6 11:26:15 2012 <<< sys-devel/gcc-4.5.4

* * *Thu Sep *6 11:26:43 2012 >>> sys-devel/gcc-4.5.4



Except it is coloured by default when outputting to a terminal, merges in

green, unmerges in red. Using -l and then grep is saying "show me

everything, oh no, cut out anything that's not gcc" rather than "show me

all gcc merges and unmerges".


I tried your command before answering you - so I don't look like a fool And I am 100% certain that genlop -u <package> only showed unmerges when I tested it on my workstation (that's the reason I added -l | grep). However, just now I tested it again on my notebook, and it works like you described it (and like how you would expect it to work). Have to try it again on my WS on monday.

Anyhoo, my point was to show the OP how he could check for himself that portage always unmerges older packages when upgrading to newer versions in the same slot - and for that, both solutions work.

Going to bed now
 
Old 09-08-2012, 03:06 PM
James Cloos
 
Default GCC upgrade from 4.5.3 to 4.5.4 automatically removes 4.5.3???? Wtf???

If you want gcc's minor versions in their own slots, then you want the
mutislot use flag:

:; euses multislot
sys-devel/gcc:multislot - Allow for SLOTs to include minor version (3.3.4 instead of just 3.3)

-JimC
--
James Cloos <cloos@jhcloos.com> OpenPGP: 1024D/ED7DAEA6
 

Thread Tools




All times are GMT. The time now is 11:42 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org