I normally run "emerge -puD world" to determine what things are going to need upgrading (I try to keep up-to-date on ~x86 so I can do bug reports). I've noticed that the output of this seems to be incorrect in terms of dependency listing. The claim is "These are the packages that I would merge, in order:" and, frankly, I don't believe it. When I run "emerge -puD world" I get: [ebuild U ] sys-libs/zlib-1.1.4-r1 [1.1.4] [ebuild U ] sys-libs/db-3.2.9-r2 [3.2.9-r1] [ebuild U ] sys-devel/gcc-3.2.2-r1 [3.2.2] [ebuild U ] x11-base/xfree-4.3.0 [4.2.99.4] [ebuild UD] sys-apps/baselayout-1.8.5.8 [1.8.6.2] [ebuild U ] sys-libs/glibc-2.3.2_pre1 [2.3.1-r3] [ebuild U ] sys-apps/grep-2.5.1-r1 [2.5-r1] [ebuild U ] app-text/docbook-xml-dtd-4.1.2-r3 [4.2] [ebuild U ] gnome-base/gnome-panel-1.4.2-r2 [2.2.0.1-r1] [ebuild U ] media-libs/xine-lib-1_beta6 [1_beta5-r1] [ebuild U ] app-emulation/wine-20030219 [20030115] [ebuild U ] net-www/mozilla-1.3_beta [1.2.1-r5] [ebuild U ] gnome-extra/libgtkhtml-2.2.0-r1 [2.2.0] [ebuild U ] media-libs/gst-plugins-0.6.0-r4 [0.6.0-r2] [ebuild U ] x11-libs/vte-0.10.25 [0.10.23] [ebuild U ] net-misc/ntp-4.1.1b-r5 [4.1.1b-r4] [ebuild U ] app-games/nethack-3.4.0-r7 [3.4.0-r6] [ebuild U ] media-video/vcdimager-0.7.13 [0.7.12] [ebuild U ] net-fs/samba-2.2.8_pre1 [2.2.7a] [ebuild UD] media-libs/xine-lib-0.9.13-r2 [1_beta5-r1] [ebuild N ] net-libs/gnet-1.1.5 [ebuild U ] net-news/pan-0.13.4 [0.13.3] When I run "emerge -pu world" I get: [ebuild UD] sys-apps/baselayout-1.8.5.8 [1.8.6.2] [ebuild U ] sys-devel/gcc-3.2.2-r1 [3.2.2] [ebuild U ] sys-libs/glibc-2.3.2_pre1 [2.3.1-r3] [ebuild U ] sys-libs/zlib-1.1.4-r1 [1.1.4] [ebuild U ] sys-apps/grep-2.5.1-r1 [2.5-r1] [ebuild U ] sys-libs/db-3.2.9-r2 [3.2.9-r1] [ebuild U ] x11-base/xfree-4.3.0 [4.2.99.4] [ebuild U ] media-libs/xine-lib-1_beta6 [1_beta5-r1] [ebuild U ] media-libs/gst-plugins-0.6.0-r4 [0.6.0-r2] [ebuild U ] net-misc/ntp-4.1.1b-r5 [4.1.1b-r4] [ebuild U ] app-games/nethack-3.4.0-r7 [3.4.0-r6] [ebuild U ] media-video/vcdimager-0.7.13 [0.7.12] [ebuild U ] net-fs/samba-2.2.8_pre1 [2.2.7a] [ebuild U ] x11-libs/vte-0.10.25 [0.10.23] [ebuild U ] app-emulation/wine-20030219 [20030115] [ebuild U ] net-www/mozilla-1.3_beta [1.2.1-r5] [ebuild N ] net-libs/gnet-1.1.5 [ebuild U ] net-news/pan-0.13.4 [0.13.3] Note that in the "deep" listing "baselayout" is (apparently) not going to be emerged before gcc. This would suggest that it isn't a dependency of gcc. However: When I run "emerge -puD gcc" I get: [ebuild U ] sys-libs/zlib-1.1.4-r1 [1.1.4] [ebuild U ] sys-libs/db-3.2.9-r2 [3.2.9-r1] [ebuild U ] x11-base/xfree-4.3.0 [4.2.99.4] [ebuild UD] sys-apps/baselayout-1.8.5.8 [1.8.6.2] [ebuild U ] sys-libs/glibc-2.3.2_pre1 [2.3.1-r3] [ebuild U ] sys-devel/gcc-3.2.2-r1 [3.2.2] Ooops. It appears that baselayout *is* a dependency. So why did "emerge -puD world" not put it *before* gcc in the list? And finally, when I run "emerge -pu gcc" I get: [ebuild UD] sys-apps/baselayout-1.8.5.8 [1.8.6.2] [ebuild U ] sys-libs/glibc-2.3.2_pre1 [2.3.1-r3] [ebuild U ] sys-libs/zlib-1.1.4-r1 [1.1.4] [ebuild U ] sys-devel/gcc-3.2.2-r1 [3.2.2] So, yes, it is a non-deep dependency as well (no idea why - baselayout didn't get downgraded why I did the portage upgrade, and doesn't appear to listed explicitly by version in any ebuild.) Oh, and glibc is even worse - it is listed after gcc in both of the "world" listings, but is listed as being a required update on both "gcc" listings. I'm confused. I know all about weak-ordering in dependency tree's, so I don't expect a deterministic ordering (though that would be nice - perhaps the ordering could be stabilised by a seconday lexical ordering?). I do expect that if "baselayout" or "glibc" is required to be updated by an ebuild that it should appear before that package in the "world" listing. If I take off the "-p" then the emerge actually does what it says it will do: this is disturbing since "emerge -uD world" emerges gcc without upgrading glibc, whereas "emerge -uD gcc" does glibc first.
there is something wrong with the -p Calculating dependencies ...done! [ebuild N ] x11-libs/openmotif-2.2.2-r1 [ebuild N ] media-libs/libogg-1.0 [ebuild N ] media-libs/libvorbis-1.0-r1 [ebuild N ] dev-java/java-config-0.2.7 [ebuild N ] dev-java/blackdown-jdk-1.3.1-r7 [ebuild N ] kde-base/kde-env-3-r2 [ebuild N ] dev-util/intltool-0.25 [ebuild N ] x11-libs/gtk+-1.2.10-r9 [ebuild N ] dev-lang/nasm-0.98.34 [ebuild N ] media-sound/lame-3.93.1-r1 [ebuild N ] x11-libs/qt-3.1.0-r3 [ebuild N ] kde-base/arts-1.1.0 [ebuild N ] kde-base/kdelibs-3.1-r2 [ebuild N ] kde-base/kdebase-3.1-r1 [ebuild N ] kde-base/kdeartwork-3.1 [ebuild N ] kde-base/kdenetwork-3.1 [ebuild N ] kde-base/kdepim-3.1 [ebuild N ] dev-util/pkgconfig-0.14.0 [ebuild U ] dev-libs/glib-2.2.1 [1.2.10-r5] [ebuild N ] media-video/xanim-2.80.1-r4 [ebuild N ] media-sound/mpg123-0.59r-r1 [ebuild N ] kde-base/kdemultimedia-3.1 [ebuild N ] kde-base/kdetoys-3.1 [ebuild N ] kde-base/kdeutils-3.1 [ebuild N ] kde-base/kdegames-3.1 [ebuild N ] media-libs/t1lib-1.3.1 [ebuild N ] app-text/xpdf-2.01-r1 [ebuild N ] media-libs/glut-3.7.1 [ebuild N ] media-libs/giflib-4.1.0-r3 [ebuild N ] media-libs/imlib-1.9.14-r1 [ebuild N ] kde-base/kdegraphics-3.1 [ebuild N ] media-libs/svgalib-1.4.3-r4 [ebuild N ] media-libs/libsdl-1.2.5-r1 [ebuild N ] media-sound/esound-0.2.29 [ebuild N ] gnome-base/ORBit-0.5.17 [ebuild N ] gnome-base/gnome-libs-1.4.2 [ebuild N ] media-libs/gdk-pixbuf-0.21.0 [ebuild N ] dev-libs/libxml-1.8.17-r2 [ebuild N ] gnome-base/libglade-0.17-r6 [ebuild N ] app-text/openjade-1.3.1-r6 [ebuild N ] app-text/docbook-sgml-dtd-3.0-r1 [ebuild N ] app-text/docbook-xml-simple-dtd-4.1.2.4 [ebuild N ] app-text/docbook-sgml-dtd-3.1-r1 [ebuild N ] app-text/docbook-sgml-dtd-4.1-r1 [ebuild N ] dev-perl/SGMLSpm-1.03-r4 [ebuild N ] app-text/docbook-xsl-stylesheets-1.57.0 [ebuild N ] app-text/docbook-xml-dtd-4.1.2-r3 [ebuild N ] app-text/docbook-dsssl-stylesheets-1.77-r1 [ebuild N ] app-text/docbook-sgml-dtd-4.0-r1 [ebuild N ] app-text/docbook-sgml-utils-0.6.11-r2 [ebuild N ] app-text/scrollkeeper-0.3.11-r1 [ebuild N ] dev-util/indent-2.2.6 [ebuild N ] gnome-base/oaf-0.6.10 [ebuild N ] dev-util/guile-1.4.1 [ebuild N ] gnome-base/gconf-1.0.8-r3 [ebuild N ] gnome-base/gnome-mime-data-2.2.0 [ebuild N ] gnome-base/gnome-common-1.2.4-r3 [ebuild N ] gnome-base/gnome-vfs-1.0.5-r3 [ebuild N ] gnome-base/control-center-1.4.0.5-r1 [ebuild N ] gnome-base/gnome-panel-1.4.2-r2 [ebuild N ] media-libs/libmikmod-3.1.10 [ebuild N ] media-sound/xmms-1.2.7-r15 [ebuild N ] kde-base/kdeaddons-3.1 [ebuild N ] app-arch/rpm-4.0.4-r4 [ebuild N ] kde-base/kdeadmin-3.1 [ebuild N ] kde-base/kdeedu-3.1-r1 [ebuild N ] kde-base/kde-3.1 ... and my system starts emerging qt first :)
its not emerging out of order ... its just not updating
actually its showing ones that have been merged and out of order
(In reply to comment #0) > The claim is > "These are the packages that I would merge, in order:" > and, frankly, I don't believe it. That means 'in order of merging', not 'in order of dependency'.
*** This bug has been marked as a duplicate of 16365 ***