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

Bug 38783

Summary: portage-2.0.50_pre16 throws exception while calculating dependencies
Product: Gentoo Linux Reporter: Owen Gunden <ogunden>
Component: [OLD] Core systemAssignee: Portage team <dev-portage>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Owen Gunden 2004-01-19 23:44:08 UTC
After updating to the portage-2.0.50_pre16 I consistently get the following error whenever I'm trying to calculate dependencies.  It looks like it may have something to do with some ocaml packages I have.

# emerge -Dupv world

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

Calculating world dependencies -Traceback (most recent call last):
  File "/usr/bin/emerge", line 2340, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1085, in xcreate
    if not self.create(myk):
  File "/usr/bin/emerge", line 785, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/usr/bin/emerge", line 919, in select_dep
    myeb=portage.portdb.xmatch("bestmatch-visible",x)
  File "/usr/lib/portage/pym/portage.py", line 4568, in xmatch
    mydep=dep_expand(origdep,self)
  File "/usr/lib/portage/pym/portage.py", line 3041, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/portage/pym/portage.py", line 2985, in cpv_expand
    raise ValueError, matches
ValueError: ['app-xemacs/ocaml', 'dev-lang/ocaml']

Reproducible: Always
Steps to Reproduce:
1. update to portage-2.0.50_pre16
2. emerge -Dupv world

Actual Results:  
portage threw a python exception

Expected Results:  
duh

# emerge info

Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0,
2.6.1-gentoo)
=================================================================
System uname: 2.6.1-gentoo i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -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/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/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.phauna.org/gentoo-portage"
USE="3dnow X aalib alsa apache2 avi berkdb bonobo cdr crypt cups dga directfb
dvd encode esd fbcon foomaticdb gdbm gif glut gnome gtk gtk2 gtkhtml guile imap
imlib java jpeg libg++ libwww mad maildir mikmod mmx motif mozcalendar mozilla
moznocompose moznoirc mozsvg mozxmlterm mpeg ncurses nptl oggvorbis opengl pam
pdflib perl plotutils png ppds python quicktime readline ruby samba scanner sdl
slang spell ssl svga tcltk tcpd tetex tiff truetype usb x86 xml2 xmms xv zlib"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-01-20 01:30:22 UTC
ValueError: ['app-xemacs/ocaml', 'dev-lang/ocaml']

Make sure you only have the full category listed in your
world file and not just 'ocaml' and if you don't have it
by itself, submit 'emerge -dDup world 2>&1 | bzip2 -9 - > log.bz2'
Comment 2 Owen Gunden 2004-01-20 09:03:03 UTC
I have the full category listed in my world file.

But!  After looking at the output of emerge -dDup world, I discovered that the problem was in a couple of ebuilds residing in my portage overlay.  They were depending on ocaml without qualifying it as dev-lang/ocaml.  (Apparently this used to work, with older versions of portage.)  After fixing these two, the problem is solved.

If you still want the info, I can post it but it's no longer relevant after fixing those two problems.

Sorry to waste time!
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-01-21 08:44:39 UTC
bad ebuild error