Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236036 - app-portage/eix-0.12.4: -u option report bad update
Summary: app-portage/eix-0.12.4: -u option report bad update
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Martin Väth
URL:
Whiteboard:
Keywords:
: 260598 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-28 15:38 UTC by Seblu
Modified: 2009-02-28 10:37 UTC (History)
3 users (show)

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 Seblu 2008-08-28 15:38:14 UTC
eix -cu report updatable ebuild which can't do.

This false update is when application depends on a slot. An example :
$ equery d lucene                                                                           
[ Searching for packages depending on lucene... ]
dev-util/eclipse-sdk-3.2.1-r3 (dev-java/lucene:1)

so lucene:1 depends of eclipse.

eix -cu
[U] dev-java/lucene (1.4.3-r3(1)@13.04.2008 -> 1.4.3-r3 2.1.0 2.1.0-r1): High-performance, full-featured text search engine written entirely in Java

and eix -cu propose to update to lucene:2.1

eix man page says:
Only match packages which have at least one slotted version installed which is not  the best  version within that slot.  This means that you should either upgrade or downgrade that package.


So i think they is a bug.

Reproducible: Always

Steps to Reproduce:
1.use eclipse
2.eix -cu
3.

Actual Results:  
$ eix -cu                                                                                   
[U] dev-java/lucene (1.4.3-r3(1)@13.04.2008 -> 1.4.3-r3 2.1.0 2.1.0-r1): High-performance, full-featured text search engine written entirely in Java
[U] dev-java/tomcat-servlet-api (4.1.36(2.3)@04.05.2008 -> 3 4.1.36 5.5.26 6.0.18): Tomcat's Servlet API 2.5/JSP API 2.1 implementation
[U] java-virtuals/servlet-api (2.3(2.3)@02.05.2008 -> 2.2 2.3 2.5): Virtual for servlet api
Found 3 matches.

Expected Results:  
nothing

$ emerge --info                                                                              
Portage 2.1.4.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r7 i686)
=================================================================
System uname: 2.6.25-gentoo-r7 i686 Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz
Timestamp of tree: Wed, 27 Aug 2008 17:30:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
ALSA_CARDS="hda-intel"
ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol"
ANT_HOME="/usr/share/ant"
APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias"
ARCH="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe -funroll-loops -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CLASSPATH="."
CLEAN_DELAY="5"
COLORFGBG="15;default;0"
COLORTERM="rxvt-xpm"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CVS_RSH="ssh"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe -funroll-loops -mfpmath=sse"
DBUS_SESSION_BUS_ADDRESS="unix:abstract=/tmp/dbus-G9DyatDEbg,guid=6c0db707783a87c585062d3f48b08822"
DESKTOP_SESSION="kde-3.5"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
DM_CONTROL="/var/run/xdmctl"
EDITOR="vim"
ELIBC="glibc"
EMERGE_DEFAULT_OPTS="--verbose"
EMERGE_WARNING_DELAY="10"
FEATURES="collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 -T 60 --no-passive-ftp ${URI} -P ${DISTDIR}"
GCC_SPECS=""
GDK_USE_XFT="1"
GENERATION="2"
GENTOO_MIRRORS="http://mirror.qubenet.net/mirror/gentoo/ http://mirror.ovh.net/gentoo-distfiles/ http://ftp.club-internet.fr/pub/mirrors/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
GS_LIB="/home/seblu/.fonts"
GTK2_RC_FILES="/home/seblu/.gtkrc-2.0-kde:/home/seblu/.kde3.5/share/config/gtkrc-2.0"
GTK_RC_FILES="/etc/gtk/gtkrc:/home/seblu/.gtkrc:/home/seblu/.kde3.5/share/config/gtkrc"
HOME="/home/seblu"
INFOPATH="/usr/share/info:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/info:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/info:/usr/share/info/emacs-22"
INPUT_DEVICES="mouse keyboard"
JAVAC="/etc/java-config-2/current-system-vm/bin/javac"
JAVA_HOME="/etc/java-config-2/current-system-vm"
JDK_HOME="/etc/java-config-2/current-system-vm"
KDEDIR="/usr/kde/3.5"
KDEDIRS="/usr:/usr/local:/usr/kde/3.5"
KDE_FULL_SESSION="true"
KDE_IS_PRELINKED="1"
KDE_MULTIHEAD="false"
KDE_SESSION_UID="18136"
KERNEL="linux"
LANG="en_US.utf8"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LC_CTYPE="fr_FR.utf8"
LC_MESSAGES="en_US.utf8"
LC_MONETARY="fr_FR.utf8"
LC_NUMERIC="fr_FR.utf8"
LC_TIME="fr_FR.utf8"
LDPATH="/usr/kde/3.5/lib:"
LESS="-R -M --shift 5"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="seblu"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.svgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.pdf=00;32:*.ps=00;32:*.txt=00;32:*.patch=00;32:*.diff=00;32:*.log=00;32:*.tex=00;32:*.doc=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:"
MAKEOPTS="-j8"
MANPATH="/etc/java-config-2/current-system-vm/man:/usr/local/share/man:/usr/share/man:/usr/share/binutils-data/i686-pc-linux-gnu/2.18/man:/usr/share/gcc-data/i686-pc-linux-gnu/4.1.2/man:/opt/sun-jdk-1.4.2.18/man:/etc/java-config/system-vm/man/:/usr/kde/3.5/share/man:/usr/qt/3/doc/man:/opt/opera/share/man"
NAME="Seblu"
OLDPWD="/home/seblu/perso"
OPENGL_PROFILE="nvidia"
PAGER="most"
PATH="/home/seblu/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/usr/qt/3/bin"
PKGDIR="/usr/portage/packages"
PKG_CONFIG_PATH="/usr/qt/3/lib/pkgconfig"
PORTAGE_ARCHLIST="ppc s390 amd64 x86 ppc64 x86-fbsd m68k arm sparc sh mips ia64 alpha hppa sparc-fbsd"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_BIN_PATH="/usr/lib/portage/bin"
PORTAGE_CONFIGROOT="/"
PORTAGE_DEBUG="0"
PORTAGE_DEPCACHEDIR="/var/cache/edb/dep"
PORTAGE_ELOG_CLASSES="log warn error"
PORTAGE_ELOG_MAILFROM="portage@localhost"
PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}"
PORTAGE_ELOG_MAILURI="root"
PORTAGE_ELOG_SYSTEM="save_summary echo"
PORTAGE_GID="250"
PORTAGE_INST_GID="0"
PORTAGE_INST_UID="0"
PORTAGE_IUSE="^(alpha|alsa_cards_aoa|alsa_cards_aoa-fabric-layout|alsa_cards_aoa-onyx|alsa_cards_aoa-soundbus|alsa_cards_aoa-soundbus-i2s|alsa_cards_aoa-tas|alsa_cards_aoa-toonie|alsa_cards_armaaci|alsa_cards_at91-soc|alsa_cards_at91-soc-eti-b1-wm8731|alsa_cards_au1x00|alsa_cards_harmony|alsa_cards_powermac|alsa_cards_pxa2xx-i2sound|alsa_cards_pxa2xx-soc|alsa_cards_pxa2xx-soc-corgi|alsa_cards_pxa2xx-soc-poodle|alsa_cards_pxa2xx-soc-spitz|alsa_cards_pxa2xx-soc-tosa|alsa_cards_sa11xx-uda1341ts|alsa_cards_sun-amd7930|alsa_cards_sun-cs4231|alsa_cards_sun-dbri|altivec|amd64|aqua|arm|bmp|bmpx|bootstrap|build|coreaudio|crosscompile_opts_.*|elibc_.*|elibc_Darwin|elibc_DragonFly|elibc_FreeBSD|elibc_NetBSD|elibc_OpenBSD|elibc_glibc|elibc_uclibc|emul-linux-x86|hppa|ia64|ibm|infopipe|kernel_.*|kernel_Darwin|kernel_FreeBSD|kernel_linux|m68k|mips|mplayer-bin|multilib|n32|n64|pam_console|pbbuttonsd|ppc|ppc64|ppcsha1|s390|selinux|sh|sparc|sparc-fbsd|uclibc|ultra1|userland_.*|userland_BSD|userland_Darwin|userland_GNU|video_cards_impact|video_cards_newport|video_cards_sunbw2|video_cards_suncg14|video_cards_suncg3|video_cards_suncg6|video_cards_sunffb|video_cards_sunleo|video_cards_suntcx|vis|x86|x86-fbsd|xmms)$"
PORTAGE_NICENESS="6"
PORTAGE_PYM_PATH="/usr/lib/portage/pym"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_RSYNC_RETRIES="3"
PORTAGE_TMPDIR="/var/tmp"
PORTAGE_TMPFS="/dev/shm"
PORTAGE_USE="elibc_glibc kernel_linux userland_GNU x86"
PORTAGE_WORKDIR_MODE="0700"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="   "
PRELINK_PATH_MASK="/lib/modules:/usr/lib/locale:/usr/lib/wine:/usr/lib/valgrind:*.la:*.png:*.py:*.pl:*.pm:*.sh:*.xml:*.xslt:*.a:*.js:/usr/lib/klibc"
PWD="/home/seblu"
PYTHONPATH="/usr/lib/portage/pym"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --no-passive-ftp ${URI} -P ${DISTDIR}"
ROOT="/"
ROOTPATH="/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/opt/sun-jdk-1.4.2.18/bin:/opt/sun-jdk-1.4.2.18/jre/bin:/opt/sun-jdk-1.4.2.18/jre/javaws:/usr/qt/3/bin"
RPMDIR="/usr/portage/rpm"
SESSION_MANAGER="local/raptor:/tmp/.ICE-unix/5983"
SHELL="/bin/zsh"
SHLVL="2"
SSH_AGENT_PID="5939"
SSH_AUTH_SOCK="/tmp/ssh-Xzgkgb5938/agent.5938"
STAGE1_USE="nptl nptlonly unicode"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="rxvt-unicode"
USE="X a52 aac acl acpi alsa bash-completion berkdb branding bzip2 cairo cddb cdparanoia cdr cli cracklib crypt cups dbus dga dts dvd dvdr dvdread emacs encode exif ffmpeg firefox flac fortran ftp gdbm gif gimp gpm graphviz hal hddtemp iconv ieee1394 imagemagick imap ipod isdnlog java javascript jpeg jpeg2k kde kdm lame lm_sensors lzo mad midi mime mmap mmx mng motif mozilla mp3 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pam pcre pdf perl pic png posix pppd python qt3 qt4 quicktime raw rdesktop readline real reflection samba session spell spl sqlite sqlite3 sse sse2 ssl subversion svg tcpd threads tiff truetype unicode usb vcd vim-syntax vorbis win32codecs wmf x264 x86 xattr xcomposite xine xml xorg xpm xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
USER="seblu"
USERLAND="GNU"
USE_EXPAND="ALSA_CARDS ALSA_PCM_PLUGINS APACHE2_MODULES APACHE2_MPMS CAMERAS CROSSCOMPILE_OPTS DVB_CARDS ELIBC FCDSL_CARDS FOO2ZJS_DEVICES FRITZCAPI_CARDS INPUT_DEVICES KERNEL LCD_DEVICES LINGUAS LIRC_DEVICES MISDN_CARDS USERLAND VIDEO_CARDS"
USE_EXPAND_HIDDEN="CROSSCOMPILE_OPTS ELIBC KERNEL USERLAND"
USE_ORDER="env:pkg:conf:defaults:pkginternal:env.d"
VIDEO_CARDS="nvidia"
VMHANDLE="sun-jdk-1.4"
WINDOWID="67108877"
XCURSOR_THEME="ComixCursors-Black-Small"
XDG_CONFIG_DIRS="/usr/kde/3.5/etc/xdg"
XDG_DATA_DIRS="/usr/share:/usr/kde/3.5/share:/usr/local/share"
XDM_MANAGED="/var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic"
_="/usr/bin/emerge"
Comment 1 Emil Beinroth 2008-08-28 21:30:21 UTC
The problem is the manual page. It should mention that -u is affected by UPGRADE_TO_HIGHEST_SLOT, which defaults to true.
Comment 2 Martin Väth 2008-08-29 17:43:41 UTC
manpage is fixed in new svn trunk (>=eix-0.13.5)
Comment 3 Seblu 2008-09-21 21:48:19 UTC
(In reply to comment #1)
> The problem is the manual page. It should mention that -u is affected by
> UPGRADE_TO_HIGHEST_SLOT, which defaults to true.
> 

after some time with this variable set, i think it's not a good solution.

For example, if i want the last version of totod, i run emerge -va totod. After in world file totod is present without slot information. If a new slot is released, eix don't see it (of course).

So i think it's not a fix of the precedent bug or can you saus me why i can the same behaviour with eix -cu and emerge -NDua world.
Comment 4 Emil Beinroth 2008-09-21 22:13:25 UTC
eix does not (nor will it ever) do any dependency checking whatsoever. It does not care about the fact that lucene may be installed as a dependency of eclipse-sdk and that eclipse-sdk only pulls in lucene:1.

eix only sees that lucene-someversion:1 and eclipse-sdk-someversion:0 are installed. If there is a higher version of one of the packages available, that packages will be shown with [U] (upgrade available).

The variable we talked about, does change that "update available"-behaviour so that only upgrades inside a slot will be displayed.

As you see, we really can't "fix" this problem.
Comment 5 Martin Väth 2008-09-21 22:27:09 UTC
As Emil already remarked, eix -uc will never be a replacement for
emerge -NaDu @world @system.

As a "workaround", if you are really annoyed by an update being displayed regularly, although you know that you don't want it, you might want to put the corresponding slot into /etc/portage/package.mask. However, this has the drawback that portage will not upgrade the slot later even if another package could use the new slot (and even if you have long forgotten that you have put the slot into package.mask).
Comment 6 Emil Beinroth 2008-09-28 13:15:16 UTC
IMHO, closing as CANTFIX would be appropriate.
Comment 7 Martin Väth 2008-10-20 18:13:06 UTC
In >=eix-0.14.2 you will be able to specify exceptions to
UPGRADE_TO_HIGHEST_SLOT in /etc/portage/package.slot_upgrade_{allow,forbid}.
So this will provide a "manual" workaround without any undesired side effects.
Comment 8 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-10-31 15:57:52 UTC
Martin, can this be closed now?
Comment 9 Martin Väth 2008-10-31 16:38:06 UTC
(In reply to comment #8)
> Martin, can this be closed now?

I guess so, since eix-0.14.2 is in the tree since today...

Comment 10 Martin Väth 2009-02-28 10:37:34 UTC
*** Bug 260598 has been marked as a duplicate of this bug. ***