Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 358781 - emerge -e world improvemenmt
Summary: emerge -e world improvemenmt
Status: RESOLVED DUPLICATE of bug 283422
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-14 03:32 UTC by David Carlos Manuelda
Modified: 2011-03-14 05:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2011-03-14 03:32:00 UTC
One of the main reasons for emerging -e world is a major change of gcc and/or glibc, but currently, gcc and glibc are not the first packages to be emerged (with its primary deps).
What I suggest is to force glibc and gcc to be built as soon as possible to gain benefits from recompiling all, and avoiding recompile them manually prior to emptytree.
For example, what's desired for example:
emerge -e world

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

Calculating dependencies... done!
[ebuild   R    ] ( gcc main deps)
[ebuild   R    ] ( glibc main deps - linux-headers specially)
[ebuild   R    ] sys-libs/glibc-XXXX
[ebuild   R    ] sys-devel/gcc-XXXX
(all the rest packages).

In my case, I ran emptytree rebuild, and glibc and gcc were emerged after almost 500 packages! So I had to rebuild again.

Reproducible: Always

Steps to Reproduce:
1. emerge -e world

Actual Results:  
glibc and gcc are emerged in random order (tipically near the last ones)

Expected Results:  
glibc, gcc, linux-headers and friends to be emerged as soon as possible.

using portage-2.2.0_alpha26
Comment 1 David Carlos Manuelda 2011-03-14 03:32:43 UTC
I forgot to add, that they will be built anyway, so a change in its order will not harm anyone, but will benefit.
Comment 2 Zac Medico gentoo-dev 2011-03-14 03:59:09 UTC
I gets messy hardcoding logic like this into the merge order calculations. We already have some special code for glibc version changes, since it's needed to avoid broken systems (bug #303567).

Note that you can get similar results like this:

  emerge gcc glibc && emerge -e world --exclude gcc --exclude glibc
Comment 3 SpanKY gentoo-dev 2011-03-14 04:57:06 UTC
how is this any different from Bug 283422 which you already filed ?
Comment 4 Zac Medico gentoo-dev 2011-03-14 05:19:04 UTC

*** This bug has been marked as a duplicate of bug 283422 ***