Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 152175

Summary: Problem with greedy behaviour on 'emerge -u' (f'up from #150361)
Product: Portage Development Reporter: Max Lorenz <meax>
Component: CoreAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=150361
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 147007    
Attachments: emerge -pud qt

Description Max Lorenz 2006-10-20 16:14:07 UTC
As per discussion on bug #150361:
(In reply to comment #22)
>> # emerge -pu qt
>> [ebuild  NS   ] x11-libs/qt-4.1.4-r2  USE="...
>> 
>> # emerge -pu qt:3
>> [ebuild     U ] x11-libs/qt-3.3.6-r4 [3.3.6-r3]

> Actually, it seems like it should have pulled in the qt:3 update with the first
> command.  Can you file a new bug with --debug output for the first command?

Comming right up. Thanks, Max


emerge --info
Portage 2.1.2_pre3-r5 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.3.6-r5, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.5
Last Sync: Fri, 20 Oct 2006 20:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: [Not Present]
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=athlon64 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="autoconfig collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow X a52 aac alsa apache2 bash-completion berkdb bitmap-fonts bzip2 cdr cli cracklib crypt curl dbus dlloader dri dvd dvdr elibc_glibc emboss encode fam ffmpeg firefox flac gdbm gif gpm gtk hal input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kdexdeltas kernel_linux lcms libg++ mad mikmod mmx mp3 mpeg musicbrainz ncurses nls nptl nptlonly offensive ogg opengl oss pam pcre perl png ppds pppd python qt3 quicktime readline reflection ruby sdl session spell spl sse sse2 ssl tcpd theora tiff truetype truetype-fonts type1-fonts udev usb userland_GNU video_cards_radeon vorbis win32codecs xine xml xorg xv zlib"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Max Lorenz 2006-10-20 16:15:06 UTC
Created attachment 100109 [details]
emerge -pud qt
Comment 2 Zac Medico gentoo-dev 2006-10-20 16:44:37 UTC
I see the problem.  The greedy code is currently only triggered when more that one slot of the give package is currently installed.
Comment 3 Zac Medico gentoo-dev 2006-10-20 18:27:14 UTC
This is fixed in svn r4772.
Comment 4 Zac Medico gentoo-dev 2006-10-22 14:27:32 UTC
This has been released in 2.1.2_pre3-r7.