Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-16 Thread Alex Schuster
Jarry writes:

 On 15-Nov-11 20:36, Andrey Moshbear wrote:
 On Tue, Nov 15, 2011 at 13:58, Jarrymr.ja...@gmail.com  wrote:
 today I upgraded gcc from 4.4.5 to the last stable version
 But at the and I noticed gcc 4.4 has not been unmerged
 and my world file is somehow larger. To my surprise,
 it contains these lines:

 sys-devel/gcc
 sys-devel/gcc:4.4

 Because your forgot the -1 / --oneshot flag when manually upgrading gcc.
 
 Hm, I always thought --oneshot was not necessary when
 doing update. Even Gentoo GCC Upgrade Guide says just
 emerge -u gcc (or emerge -uav gcc in DE-version).
 The option --oneshot is used there only for libtool.
 
 And I'm pretty sure I've never used --oneshot when
 updating any packages, yet they have never been added
 to world-file...

Nope. Just try again with a small package, as I just did, emerge -u will
add it to the world file. This has not always been the case, but it has
been changed at least some years ago. I'm using the newest portage, but
I believe the stable portage works the same.

Wonko



Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-16 Thread Dale

Alex Schuster wrote:

Jarry writes:


On 15-Nov-11 20:36, Andrey Moshbear wrote:

On Tue, Nov 15, 2011 at 13:58, Jarrymr.ja...@gmail.com   wrote:

today I upgraded gcc from 4.4.5 to the last stable version
But at the and I noticed gcc 4.4 has not been unmerged
and my world file is somehow larger. To my surprise,
it contains these lines:

sys-devel/gcc
sys-devel/gcc:4.4

Because your forgot the -1 / --oneshot flag when manually upgrading gcc.

Hm, I always thought --oneshot was not necessary when
doing update. Even Gentoo GCC Upgrade Guide says just
emerge -u gcc (or emerge -uav gcc in DE-version).
The option --oneshot is used there only for libtool.

And I'm pretty sure I've never used --oneshot when
updating any packages, yet they have never been added
to world-file...

Nope. Just try again with a small package, as I just did, emerge -u will
add it to the world file. This has not always been the case, but it has
been changed at least some years ago. I'm using the newest portage, but
I believe the stable portage works the same.

Wonko





I tested this and it does add it to the world file.

root@fireball / # emerge -uv kwrite

These are the packages that would be merged, in order:

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

 * kde-base/kwrite

 Recording kde-base/kwrite in world favorites file...
 Jobs: 0 of 0 complete   Load avg: 0.76, 
0.39, 0.30

 Auto-cleaning packages...

 No outdated packages were found on your system.
root@fireball / #

Then this:

root@fireball / # cat /var/lib/portage/world | grep kwrite
kde-base/kwrite
root@fireball / #

Is this a bug?  Just because you update a package doesn't mean you want 
it in the world file.


Maybe a I need to set --oneshot in make.conf and just use -n when I 
really want something in the world file.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-16 Thread Mark Knecht
On Wed, Nov 16, 2011 at 11:26 AM, Dale rdalek1...@gmail.com wrote:
SNIP

 root@fireball / # cat /var/lib/portage/world | grep kwrite
 kde-base/kwrite
 root@fireball / #

 Is this a bug?  Just because you update a package doesn't mean you want it
 in the world file.

 Maybe a I need to set --oneshot in make.conf and just use -n when I really
 want something in the world file.

You must use --oneshot or -1 to stop it from doing that.

HTH,
Mark



Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-15 Thread Andrey Moshbear
On Tue, Nov 15, 2011 at 13:58, Jarry mr.ja...@gmail.com wrote:
 Hi,
 today I upgraded gcc from 4.4.5 to the last stable version
 4.5.3-r1. I followed Gentoo GCC Upgrade Guide:

 # emerge -uav gcc
 # gcc-config 2
 # env-update  source /etc/profile
 # emerge --oneshot libtool

 # emerge --depclean
 # revdep-rebuild

 But at the and I noticed gcc 4.4 has not been unmerged
 and my world file is somehow larger. To my surprise,
 it contains these lines:

 sys-devel/gcc
 sys-devel/gcc:4.4

 I did full backup before, so I compared world-file before
 and after gcc-upgrade just to find out, these two lines
 have been really inserted now, during gcc-upgrade. And my
 question is: what does it mean? Does my system need now
 both gcc 4.4 and 4.5? Why is actually gcc in world-file,
 when it is part of system?


Because your forgot the -1 / --oneshot flag when manually upgrading gcc.
However, in system, multiple gcc slots do  not exist, so if you need gcc:4.4 for
backwards compatibility or gcc:4.6 for forwards compatibility, it'll show up in
your world file.



Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-15 Thread Jarry

On 15-Nov-11 20:36, Andrey Moshbear wrote:

On Tue, Nov 15, 2011 at 13:58, Jarrymr.ja...@gmail.com  wrote:

today I upgraded gcc from 4.4.5 to the last stable version
But at the and I noticed gcc 4.4 has not been unmerged
and my world file is somehow larger. To my surprise,
it contains these lines:

sys-devel/gcc
sys-devel/gcc:4.4



Because your forgot the -1 / --oneshot flag when manually upgrading gcc.


Hm, I always thought --oneshot was not necessary when
doing update. Even Gentoo GCC Upgrade Guide says just
emerge -u gcc (or emerge -uav gcc in DE-version).
The option --oneshot is used there only for libtool.

And I'm pretty sure I've never used --oneshot when
updating any packages, yet they have never been added
to world-file...

Jarry






--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] Upgrading gcc: both 4.4 and 4.5 needed?

2011-11-15 Thread Dale

Jarry wrote:

On 15-Nov-11 20:36, Andrey Moshbear wrote:

On Tue, Nov 15, 2011 at 13:58, Jarrymr.ja...@gmail.com  wrote:

today I upgraded gcc from 4.4.5 to the last stable version
But at the and I noticed gcc 4.4 has not been unmerged
and my world file is somehow larger. To my surprise,
it contains these lines:

sys-devel/gcc
sys-devel/gcc:4.4



Because your forgot the -1 / --oneshot flag when manually upgrading gcc.


Hm, I always thought --oneshot was not necessary when
doing update. Even Gentoo GCC Upgrade Guide says just
emerge -u gcc (or emerge -uav gcc in DE-version).
The option --oneshot is used there only for libtool.

And I'm pretty sure I've never used --oneshot when
updating any packages, yet they have never been added
to world-file...

Jarry




I think you are correct.  When you use the -u option, it shouldn't add 
anything to the world file.  Than again, weird things happen from time 
to time.  Take the two entries out and see what emerge says to a emerge 
-uavDN world which should catch about everything.  Then see what -a 
--depclean says.  If it tries to remove the older version then that may 
be why it was added.


Dale

:-)  :-)

--
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!