Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 165382 - emerge error: ValueError: ['dev-db/mysql', 'virtual/mysql']
Summary: emerge error: ValueError: ['dev-db/mysql', 'virtual/mysql']
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 162453
  Show dependency tree
 
Reported: 2007-02-05 01:18 UTC by Sebastian Bauer
Modified: 2007-02-05 23:22 UTC (History)
0 users

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


Attachments
automatically choose the non-virtual match (ValueError.patch,799 bytes, patch)
2007-02-05 06:34 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian Bauer 2007-02-05 01:18:15 UTC
i have problem with portage and builds related to virtual/mysql, emerge --config =dev-db/mysql-4.1.22-r1 and emerge -C virtual/mysql doesnt work, now i even cannt emerge virtual/mysql, please help 

the traceback looks like: 
emerge dev-lang/php 
Calculating dependencies \Traceback (most recent call last): 
File "/usr/bin/emerge", line 5278, in ? 
retval = emerge_main() 
File "/usr/bin/emerge", line 5273, in emerge_main 
myopts, myaction, myfiles, spinner) 
File "/usr/bin/emerge", line 4604, in action_build 
retval, favorites = mydepgraph.select_files(myfiles) 
File "/usr/bin/emerge", line 1482, in select_files 
if not self.validate_blockers(): 
File "/usr/bin/emerge", line 1808, in validate_blockers 
trees=dep_check_trees, myroot=myroot) 
File "/usr/lib/portage/pym/portage.py", line 4304, in dep_check 
mysplit2=dep_wordreduce(mysplit2,mysettings,mydbapi,mode,use_cache=use_cache) 
File "/usr/lib/portage/pym/portage.py", line 4347, in dep_wordreduce 
mydep=mydbapi.match(deplist[mypos],use_cache=use_cache) 
File "/usr/lib/portage/pym/portage.py", line 4752, in match 
result = dbapi.match(self, origdep, use_cache=use_cache) 
File "/usr/lib/portage/pym/portage.py", line 4705, in match 
mydep = dep_expand(origdep, mydb=self, settings=self.settings) 
File "/usr/lib/portage/pym/portage.py", line 4234, in dep_expand 
return prefix + cpv_expand( 
File "/usr/lib/portage/pym/portage.py", line 4438, in cpv_expand 
raise ValueError, matches 
ValueError: ['dev-db/mysql', 'virtual/mysql'] 


emerge --info: 
Portage 2.1.2-r7 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r3, 2.4.33grs-bipiv-ipv4-32 i686) 
================================================================= 
System uname: 2.4.33grs-bipiv-ipv4-32 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz 
Gentoo Base System version 1.6.14 
Timestamp of tree: Sun, 04 Feb 2007 15:00:01 +0000 
dev-lang/python: 2.4.3-r4 
dev-python/pycrypto: 2.0.1-r5 
sys-apps/sandbox: 1.2.17 
sys-devel/autoconf: 2.13, 2.61 
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.16.1-r2 
sys-devel/gcc-config: 1.3.13-r2 
sys-devel/libtool: 1.5.22 
virtual/os-headers: 2.6.11-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CBUILD="i686-pc-linux-gnu" 
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /var/bind" 
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo" 
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" 
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ ftp://mirror.ovh.net/gentoo-distfiles/" 
LANG="pl_PL" 
MAKEOPTS="-j4" 
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" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="alsa apache2 apm arts berkdb bitmap-fonts cli cracklib crypt cups dlloader dri eds emboss encode esd foomaticdb fortran gdbm gif gnome gpm gstreamer gtk2 iconv imlib ipv6 isdnlog jpeg kde libg++ libwww mad midi mikmod mmx motif mp3 mpeg mysql ncurses nls ogg opengl oss pam pcre perl png postfix pppd python qt3 qt4 quicktime readline reflection session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev vorbis x86 xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mga neomagic nsc nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo" 
Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Reproducible: Always

Steps to Reproduce:
Comment 1 Zac Medico gentoo-dev 2007-02-05 01:47:10 UTC
It seems that one of your installed packages has a mysql atom that's missing the category part.  This will probably help you identify the file containing the bad dependency string:

find /var/db/pkg -name "*DEPEND" | xargs egrep '(^mysql|[[:space:]]mysql)' | grep -v 'mysql?'

You can use a text editor to add the missing category, or just unmerge the package with the bad dependency string.
Comment 2 Sebastian Bauer 2007-02-05 01:59:12 UTC
yes hosting company(ovh) make wrong ebuild for his program
Comment 3 Zac Medico gentoo-dev 2007-02-05 06:34:45 UTC
Created attachment 109194 [details, diff]
automatically choose the non-virtual match

This patch will solve cases similar to the one that you've encountered.
Comment 4 Zac Medico gentoo-dev 2007-02-05 23:22:30 UTC
In svn r5897 I fixed it to show which package triggered the error.

This has been released in 2.1.2-r8.