Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 51543 - emerge -DU doesn't calculate the right dependencies.
Summary: emerge -DU doesn't calculate the right dependencies.
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-05-20 01:31 UTC by Simone Gotti (RETIRED)
Modified: 2004-10-09 21:33 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 Simone Gotti (RETIRED) gentoo-dev 2004-05-20 01:31:36 UTC
Compiling e quite new system, if launched an "emerge -DUp kde" (emerge -Dup kde) but I've noticed that the package order doesn't respect the dependencies:

[ebuild     U ] sys-devel/automake-1.8.3 [1.7.2]
[ebuild  N    ] dev-perl/Locale-gettext-1.01-r1
[ebuild     U ] sys-apps/help2man-1.33.1 [1.29]
[ebuild  N    ] sys-apps/attr-2.4.7-r1
[ebuild     U ] sys-devel/m4-1.4-r1 [1.4]
[ebuild  N    ] sys-apps/acl-2.2.13-r2
[ebuild  N    ] sys-apps/coreutils-5.2.1
[ebuild     U ] sys-apps/debianutils-1.16.7-r4 [1.16.7-r1]
[ebuild     U ] app-shells/bash-2.05b-r9 [2.05b-r3]
[ebuild     U ] sys-libs/readline-4.3-r5 [4.3-r4]
[ebuild     U ] dev-libs/openssl-0.9.7d [0.9.6i-r2]
[ebuild     U ] dev-libs/expat-1.95.7 [1.95.6-r1]
[ebuild  N    ] dev-python/python-docs-2.3.4_rc1
[ebuild  N    ] dev-lang/python-2.3.4_rc1
[ebuild     U ] sys-devel/libperl-5.8.4 [5.8.0]
[ebuild     U ] dev-lang/perl-5.8.4 [5.8.0-r10]
[ebuild     U ] sys-devel/autoconf-2.59-r3 [2.57-r1]
[ebuild     U ] sys-devel/libtool-1.5.2-r5 [1.4.1-r10]
[ebuild     U ] sys-libs/ncurses-5.4-r1 [5.3-r1]
[ebuild     U ] sys-devel/gcc-config-1.3.5-r1 [1.3.1-r1]
[ebuild     U ] sys-apps/gawk-3.1.3-r1 [3.1.1-r1]
[ebuild     U ] sys-apps/miscfiles-1.3-r1 [1.3]
[ebuild     U ] sys-libs/cracklib-2.7-r9 [2.7-r6]
[ebuild     U ] sys-libs/pam-0.77-r1 [0.75-r11]
[ebuild     U ] sys-apps/shadow-4.0.4.1-r1 [4.0.3-r3]
[ebuild     U ] sys-apps/pam-login-3.14 [3.10]
[ebuild     U ] sys-apps/util-linux-2.12-r4 [2.11y]
[ebuild     U ] sys-apps/baselayout-1.9.3 [1.8.5.8]
[ebuild     U ] sys-libs/glibc-2.3.3_pre20040420 [2.3.1-r4]
[ebuild  N    ] media-libs/freetype-2.1.5-r1
[ebuild  N    ] media-sound/cdparanoia-3.9.8-r1
[ebuild  N    ] media-libs/libpng-1.2.5-r6
[ebuild  N    ] x11-base/opengl-update-1.6
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r1
[ebuild  N    ] media-libs/fontconfig-2.2.2
[ebuild  N    ] x11-base/xorg-x11-6.7.0
[ebuild  N    ] media-libs/libungif-4.1.0.1b
[ebuild     U ] sys-apps/file-4.09 [4.02]
[ebuild     U ] sys-apps/which-2.16 [2.14]
[ebuild  N    ] app-arch/rpm2targz-9.0-r2
[ebuild  N    ] sys-apps/utempter-0.5.5.4
[ebuild  N    ] x11-terms/xterm-184
[ebuild  N    ] media-libs/jpeg-6b-r3
[ebuild  N    ] media-libs/giflib-4.1.0-r3
[ebuild  N    ] media-libs/lcms-1.12
[ebuild  N    ] media-libs/libmng-1.0.5
[ebuild  N    ] media-libs/tiff-3.6.1-r1
[ebuild  N    ] net-print/cups-1.1.20-r1
[ebuild  N    ] x11-libs/qt-3.3.2
[ebuild  N    ] dev-util/pkgconfig-0.15.0
[ebuild  N    ] x11-libs/openmotif-2.1.30-r5
[ebuild  N    ] kde-base/kde-env-3-r2
[ebuild  N    ] sys-apps/eject-2.0.13
[ebuild     U ] sys-apps/tcp-wrappers-7.6-r8 [7.6-r4]
[ebuild  N    ] net-nds/openldap-2.1.30
[ebuild  N    ] app-text/ghostscript-7.07.1-r2
[ebuild  N    ] dev-lang/nasm-0.98.38
[ebuild  N    ] media-sound/lame-3.96
[ebuild  N    ] dev-libs/libxml2-2.6.9
[ebuild  N    ] dev-libs/libxslt-1.1.6
[ebuild  N    ] media-gfx/graphviz-1.10
[ebuild  N    ] app-doc/doxygen-1.3.6
[ebuild  N    ] app-text/sgml-common-0.6.3-r4
[ebuild  N    ] net-nds/portmap-5b-r8
[ebuild  N    ] app-admin/fam-2.7.0-r1
[ebuild  N    ] dev-libs/libpcre-4.4
[ebuild  N    ] media-libs/libmad-0.15.1b
[ebuild  N    ] media-libs/audiofile-0.2.6-r1
[ebuild  N    ] app-text/docbook-dsssl-stylesheets-1.77-r2
[ebuild  N    ] app-text/opensp-1.5-r1
[ebuild  N    ] app-text/openjade-1.3.2-r1
[ebuild  N    ] app-text/docbook-xsl-stylesheets-1.62.4
[ebuild  N    ] app-arch/unzip-5.50-r2
[ebuild  N    ] app-text/docbook-xml-dtd-4.1.2-r4
[ebuild  N    ] dev-util/gtk-doc-1.2
[ebuild  N    ] dev-libs/glib-2.4.1
[ebuild  N    ] media-libs/libogg-1.1
[ebuild  N    ] media-libs/libvorbis-1.0.1-r2
[ebuild  N    ] media-libs/libid3tag-0.15.1b
[ebuild  N    ] kde-base/arts-1.2.2
[ebuild  N    ] media-libs/libart_lgpl-2.3.16
[ebuild  N    ] kde-base/kdelibs-3.2.2-r1
[ebuild  N    ] kde-base/kdebase-3.2.2
[ebuild  N    ] dev-libs/fribidi-0.10.4
[ebuild  N    ] media-libs/t1lib-5.0.2
[ebuild  N    ] app-text/xpdf-3.00-r1
[ebuild  N    ] dev-perl/XML-Parser-2.34
[ebuild  N    ] dev-util/intltool-0.30
[ebuild  N    ] x11-libs/gtk+-1.2.10-r11
[ebuild  N    ] media-libs/imlib-1.9.14-r1
[ebuild  N    ] media-libs/glut-3.7.1
[ebuild  N    ] kde-base/kdegraphics-3.2.2
[ebuild  N    ] kde-base/kdeartwork-3.2.2
[ebuild  N    ] kde-base/kdeedu-3.2.2
[ebuild  N    ] media-gfx/xloadimage-4.1-r1
[ebuild  N    ] app-crypt/gnupg-1.2.4
[ebuild  N    ] kde-base/kdeutils-3.2.2
[ebuild  N    ] kde-base/kdetoys-3.2.2
[ebuild  N    ] media-libs/musicbrainz-2.0.2-r2
[ebuild  N    ] media-libs/svgalib-1.9.18-r1
[ebuild  N    ] media-libs/libsdl-1.2.7-r1
[ebuild  N    ] media-libs/libdvdcss-1.2.8
[ebuild  N    ] sys-libs/lib-compat-1.3
[ebuild  N    ] media-libs/divx4linux-20030428-r1
[ebuild  N    ] media-libs/win32codecs-20031001
[ebuild  N    ] media-libs/xvid-1.0.0_rc4
[ebuild  N    ] media-libs/libmikmod-3.1.11
[ebuild  N    ] dev-libs/libxml-1.8.17-r2
[ebuild  N    ] media-sound/xmms-1.2.10-r2
[ebuild  N    ] media-libs/flac-1.1.0-r1
[ebuild  N    ] media-libs/libfame-0.9.0-r1
[ebuild  N    ] media-libs/xine-lib-1_rc4-r1
[ebuild  N    ] media-libs/taglib-1.1
[ebuild  N    ] media-libs/gstreamer-0.8.1
[ebuild  N    ] kde-base/kdemultimedia-3.2.2-r1
[ebuild  N    ] kde-base/kdenetwork-3.2.2
[ebuild  N    ] kde-base/kdepim-3.2.2
[ebuild  N    ] kde-base/kdeaccessibility-3.2.2
[ebuild  N    ] kde-base/kdeadmin-3.2.2
[ebuild  N    ] kde-base/kdegames-3.2.2
[ebuild  N    ] kde-base/kdeaddons-3.2.2
[ebuild  N    ] kde-base/kde-3.2.2

Like you can see, Automake want't to be installed before any other package, BUT it nees Autoconf >= 2.58, but autoconf is going to be emerged some packages after.

In fact this report an error:

# emerge -DUn kde
>>> --upgradeonly implies --update... adding --update to options.
Calculating dependencies ...done!
>>> emerge (1 of 122) sys-devel/automake-1.8.3 to /
>>> md5 src_uri ;-) automake-1.8.3.tar.bz2
>>> md5 src_uri ;-) automake-1.7.9.tar.bz2
>>> md5 src_uri ;-) automake-1.6.3.tar.bz2
>>> md5 src_uri ;-) automake-1.5.tar.gz
>>> md5 src_uri ;-) automake-1.4-p6.tar.gz
>>> Unpacking source...
>>> Unpacking automake-1.8.3.tar.bz2 to /var/tmp/portage/automake-1.8.3/work
>>> Unpacking automake-1.7.9.tar.bz2 to /var/tmp/portage/automake-1.8.3/work
>>> Unpacking automake-1.6.3.tar.bz2 to /var/tmp/portage/automake-1.8.3/work
>>> Unpacking automake-1.5.tar.gz to /var/tmp/portage/automake-1.8.3/work
>>> Unpacking automake-1.4-p6.tar.gz to /var/tmp/portage/automake-1.8.3/work
 * Applying automake-1.5-target_hook.patch...                                        [ ok ]
 * Applying automake-1.7.9-infopage-namechange.patch...                              [ ok ]
 * Applying automake-1.8.2-infopage-namechange.patch...                              [ ok ]
>>> Source unpacked.
checking build system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for perl... /usr/bin/perl
checking for tex... no
checking whether autoconf is installed... yes
checking whether autoconf works... yes
checking whether autoconf is recent enough... no
configure: error: Autoconf 2.58 or better is required.

!!! ERROR: sys-devel/automake-1.8.3 failed.
!!! Function src_compile, Line 108, Exitcode 1
!!! configure 1.8x failed

While using "emerge -Dn" (without the upgrade option) works well but of  course it doesn't update the packages.

Bye!


Reproducible: Always
Steps to Reproduce:
1. emerge -DUp kde (because it has a lot of deps)
2. look at the wrong emerge order
3. emerge -DUn kde 

Actual Results:  
The packages are emerge in the wrong deps order => in my case Automake reports 
an error because it needs Autoconf >= 2.58, but autoconf is going to be 
emerged some packages after. 

Expected Results:  
I was expecting the right emerge order. 

Portage 2.0.50-r6 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.1-r4, 2.6.6-mm3) 
================================================================= 
System uname: 2.6.6-mm3 i686 
Gentoo Base System version 1.4.2.8 
Autoconf: sys-devel/autoconf-2.57-r1 
Automake: sys-devel/automake-1.7.2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-mcpu=i686 -O3 -pipe" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/kde/cvs/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-mcpu=i686 -O3 -pipe" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs buildpkg ccache sandbox" 
GENTOO_MIRRORS="http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/" 
MAKEOPTS="-j1" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="3dnow X acl acpi acpi4linux apm arts atm avi berkdb bluetooth breakme 
cups dga doc dvd dvdr encode fbcon foomaticdb gdbm gif gmp-java gpm gstreamer 
imlib ipv6 jpeg kakasi kde ldap libg++ mad mikmod mmx motif mpeg ncurses nls 
oggvorbis opengl oss pam pdflib perl png ppds python qt readline sdl slang 
spell sse ssl svga tcpd truetype usb x86 xml xml2 xmms xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-10-09 21:33:07 UTC
No longer supported.