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

Bug 82947

Summary: inconsistent update behaviour
Product: Portage Development Reporter: Patrick Lauer <patrick>
Component: Core - DependenciesAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal CC: ian, seemant
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Patrick Lauer gentoo-dev 2005-02-22 05:26:37 UTC
from the output of esync this morning:

[ U] sys-apps/setserial (2.17-r3):  Configure your serial ports with it

As you can see it correctly caught that setserial had an upgraded
version available.  However:

tong root # emerge -Dup world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
tong root # emerge -Dup system

These are the packages that I would merge, in order:

Calculating system dependencies ...done!


Now, emerge -p depclean did actually want to remove it:

 sys-apps/setserial
    selected: 2.17-r2
   protected: none
     omitted: none



Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
not all installed packages get updated

Expected Results:  
All installed packages should be updated by emerge -u / -uD

Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.4.3,
glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686)
=================================================================
System uname: 2.6.10-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb  9 2005,
07:53:15)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.4.3-r4, 1.5.10-r4
virtual/os-headers:  2.4.21-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -funroll-loops  -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /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="-O2 -march=pentium4 -funroll-loops  -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://mirrors.tds.net/gentoo
http://cudlug.cudenver.edu/gentoo/ http://mirror.datapipe.net/gentoo
http://gentoo.osuosl.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://seemant/gentoo-portage"
USE="x86 X apm avi berkdb bitmap-fonts crypt cups emacs emboss encode
esd f77 fam font-server foomaticdb fortran gdbm gif gnome gpm gtk gtk2
guile imlib jpeg libg++ libwww mad mikmod mmx motif mpeg ncurses
oggvorbis opengl oss pam pdflib perl png python quicktime readline samba
sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype
truetype-fonts type1-fonts userlocales xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 1 Ciaran McCreesh 2005-02-22 05:31:56 UTC
setserial is no longer in system, so it's no longer part of the world target, so it's ignored by -uD world.
Comment 2 Patrick Lauer gentoo-dev 2005-02-22 05:54:50 UTC
<seemant> on my own box: emerge -Dup --tree world:
<seemant> [nomerge      ] app-text/a2ps-4.13c-r2
<seemant> [ebuild  N    ]  dev-util/yacc-1.9.1-r2
<seemant> and *why* does yacc show up?
<seemant> DEPEND=">=sys-devel/automake-1.6
<seemant>     >=sys-devel/autoconf-2.57
<seemant>     >=dev-util/gperf-2.7.2
<seemant>     || ( >=dev-util/yacc-1.9.1 sys-dev/bison )
<seemant> in DEPEND, mind you
<seemant> NOT in RDEPEND
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-02-22 06:38:10 UTC
And this is related how? 

world target == whatever you have specifically installed + system packages
If a package is removed from "system packages" it won't be automagically added to "whatever you have specifically installed".


From emerge's man page:
--deep (-D)
    When  used in conjunction with --update, this flag forces emerge
    to consider the entire dependency tree of packages,  instead  of
    checking only the immediate dependencies of the packages.

It does not make any mention of any separation between build time dependencies and runtime dependencies. If you want to request that as a feature, then open a new bug.
Comment 4 Christian Hartmann (RETIRED) gentoo-dev 2005-02-24 05:35:39 UTC
Different package; same problem:

200501-19 [N] imlib2: Buffer overflows in image decoding ( media-libs/imlib2 )

# emerge -pv imlib2
[ebuild     U ] media-libs/imlib2-1.2.0 [1.1.2] +X +doc* +gif +jpeg +mmx +nls +png +tiff* 869 kB

# emerge -upvD world
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
Total size of downloads: 0 kB

# equery depends imlib2
[ Searching for packages depending on imlib2... ]
media-video/ffmpeg-0.4.7

# equery depends ffmpeg
[ Searching for packages depending on ffmpeg... ]
media-video/transcode-0.6.11
media-video/avifile-0.7.41.20041001-r1
net-libs/openh323-1.13.2-r2

# equery depends openh323
[ Searching for packages depending on openh323... ]
net-im/gnomemeeting-1.00

# grep gnomemeeting /var/lib/portage/world
net-im/gnomemeeting

# emerge -upvD gnomemeeting
These are the packages that I would merge, in order:
Calculating world dependencies ...done!
Total size of downloads: 0 kB

# emerge --info
Portage 2.0.51-r15 (default-linux/x86/2004.2, gcc-3.4.3, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r7 i686)
Comment 5 Jason Stubbs (RETIRED) gentoo-dev 2005-02-24 06:01:44 UTC
`emerge -uDvp --newuse world` and you will likely see a lot of packages wanting to be recompiled. One of them will be media-video/ffmpeg with the imlib USE flag no longer being set.

If that's not the case, file a new bug. Please stop reopening this one and posting completely irrelevant information.
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2005-02-28 04:55:06 UTC
As per last comment