Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39225 - ambiguous names with --clean cause uncaught ValueError
Summary: ambiguous names with --clean cause uncaught ValueError
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All All
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-23 20:38 UTC by Jeff Ames
Modified: 2004-02-08 17:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch to catch ValueError exception in unmerge (emerge.valueerror.patch,538 bytes, patch)
2004-01-23 20:39 UTC, Jeff Ames
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Ames 2004-01-23 20:38:36 UTC
# emerge -Cp libnet

>>> These are the packages that I would unmerge:
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2201, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 1646, in unmerge
    mymatch=localtree.dep_match(x)
  File "/usr/lib/portage/pym/portage.py", line 4074, in dep_match
    mymatch=self.dbapi.match(mydep)
  File "/usr/lib/portage/pym/portage.py", line 3981, in match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/portage/pym/portage.py", line 3167, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3111, in cpv_expand
    raise ValueError, matches
ValueError: ['dev-perl/libnet', 'net-libs/libnet']

The attached patch adds an except ValueError to the localtree.dep_match
call in emerge (in unmerge()), to catch this (AFAICT).
Comment 1 Jeff Ames 2004-01-23 20:39:23 UTC
Created attachment 24325 [details, diff]
patch to catch ValueError exception in unmerge
Comment 2 Jeff Ames 2004-01-23 20:42:07 UTC
sorry, forgot my info....

# emerge info
Portage 2.0.50_pre19 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.4.22)
=================================================================
System uname: 2.4.22 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
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=pentium3 -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/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium3 -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.gentoo.org/gentoo-portage"
USE="X aalib acpi acpi4linux alsa apache2 auctex avi berkdb bonobo canna cdr cjk crypt cups dga directfb dvd encode ethereal fbcon foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml i8x0 imap imlib java jpeg libg++ libwww mad mikmod motif mozilla mpeg mysql ncurses nls oggvorbis opengl oss pam pcmcia pdflib perl plotutils png python qt quicktime readline samba sdl slang spell sse ssl svga tcltk tcpd tetex tiff truetype usb wmf wxwindows x86 xinerama xml xml2 xmms xv zlib video_cards_i830"
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2004-02-08 17:55:36 UTC
supposed to be fixed in 2.0.50 which is stable now. If this bug is not fixed please reopen.