Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 123677 - portage doesn't error out properly for invalid atoms in depends
Summary: portage doesn't error out properly for invalid atoms in depends
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 136244 137445
  Show dependency tree
 
Reported: 2006-02-21 23:42 UTC by Krzysztof Stasiorowski
Modified: 2006-06-20 18:07 UTC (History)
1 user (show)

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


Attachments
output of emerge -Ddupv world &> log (log.bz2,37.89 KB, application/octet-stream)
2006-02-22 00:13 UTC, Krzysztof Stasiorowski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Krzysztof Stasiorowski 2006-02-21 23:42:02 UTC
Hi, when I have installed dev-libs/libnotify , emerge -pvuD world couses TB:
emerge -pvuD world                                                                       

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

Calculating world dependencies /Traceback (most recent call last):
  File "/bin/emerge", line 3152, in ?
    if not mydepgraph.xcreate(myaction):
  File "/bin/emerge", line 1426, in xcreate
    if not self.select_dep(portage.root, mydep):
  File "/bin/emerge", line 1358, in select_dep
    if not self.create(myk,myparent,"--onlydeps" not in myopts,myuse=binpkguseflags):
  File "/bin/emerge", line 1037, in create
    if not self.select_dep("/",mydep["/"],myparent=mp,myuse=myuse):
  File "/bin/emerge", line 1236, in select_dep
    myeb_matches = portage.portdb.xmatch("match-visible",x)
  File "/usr/lib/portage/pym/portage.py", line 5086, in xmatch
    mydep=dep_expand(origdep,mydb=self)
  File "/usr/lib/portage/pym/portage.py", line 3330, in dep_expand
    return prefix+cpv_expand(mydep,mydb=mydb,use_cache=use_cache)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3513, in cpv_expand
    raise ValueError, matches
ValueError: ['dev-libs/libnotify', 'x11-libs/libnotify']

When I unmerge this package, all works ok
some information:
emerge info                                                                              
Portage 2.1_pre4-r1 (default-linux/amd64/2006.0, gcc-4.0.2, glibc-2.3.6-r2, 2.6.15-no3 x86_64)
=================================================================
System uname: 2.6.15-no3 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -msse3"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -msse3"
DISTDIR="/other/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks noinfo parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/                 ftp://gentoo.inode.at/source/                 ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo                 http://ftp6.uni-erlangen.de/pub/mirrors/gentoo                 http://gentoo.eliteitminds.com                 ftp://pandemonium.tiscali.de/pub/gentoo/                 http://pandemonium.tiscali.de/pub/gentoo/                  http://gentoo.prz.rzeszow.pl"
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LINGUAS="pl"
MAKEOPTS="-j2 -s"
PKGDIR="/other/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/other/portage"
PORTDIR_OVERLAY="/other/portage-r /other/zugaina-portage /other/gentopia /other/breakmygentoo /other/gentoo.de /other/fluidportage /other/portage-priv"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 3dnowex 7zip S3TC X a52 acpi alsa amuled avi bitmap-fonts bluetooth browserplugin bzip2 bzlib cdparanoia cdr cdrom chroot clamav codecs cpudetection crypt css cups dbus divx4linux dvd dvdr dvdread eds emboss encode exif ffmpeg firefox flac foomatic foomaticdb ftp gif gnome gnome-firefox gphoto2 gpm gstreamer gstreamer10 gtk gtk2 hal i8x0 imagemagick imlib ipv6 java jpeg jpeg2k kadu-modules kqemu lcms libclamav libnotify lirc lm_sensors lns lzo lzw lzw-tiff mad matroska mjpeg mozsvg mp3 mpeg mpeg4 mplayer ncurses nls no-old-linux nocardbus nptl nptlonly nsplugin nvidia objc ogg oggvorbis opengl operanom2 pam pam-console pam_console pdf pdflib perl png ppds python qt quicktime rar readline real remote rtc samba sblive sdl sms spell sse3 ssl stats subtitles svg tcpd tga tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales v4l v4l2 vorbis wmf xanim xine xml2 xosd xpm xscreensaver xv xvid zlib zvbi elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_pl userland_GNU video_cards_nvidia video_cards_v4l"
Unset:  ASFLAGS, CTARGET, LDFLAGS
Comment 1 Brian Harring (RETIRED) gentoo-dev 2006-02-21 23:52:57 UTC
@sven- you know if this ebuild appeared anywhere else?  Any other repos, say one of the overlays this dude's got?

@krzysztof- Please do two things;
1) list where the overlays came from, especially any that hold libnotify
2) retry it with PORTDIR_OVERLAY=''
Comment 2 Brian Harring (RETIRED) gentoo-dev 2006-02-21 23:58:08 UTC
@krzysztof: run /usr/lib/portage/bin/emaint -c all
No errors returned from it, attach the log from
emerge -Ddupv world &> log

please.  libnotify somewhere lacks a category, betting your world file, but could just as easily be the deps from an ebuild in your overlay.
Comment 3 Krzysztof Stasiorowski 2006-02-22 00:05:36 UTC
Sorry, I havn't spot that it is in unnoficial repo.
Comment 4 Krzysztof Stasiorowski 2006-02-22 00:08:31 UTC
But anyway it's like this:
#eix libnotify                                                                            
* dev-libs/libnotify
     Available versions:  0.2.2[3]  0.2.2[4]  0.3.2[3]  0.3.2[4]
     Installed:           0.3.2
     Homepage:            http://www.galago-project.org
     Description:         Notifications library

* x11-libs/libnotify
     Available versions:  0.3.2
     Installed:           none
     Homepage:            http://www.galago-project.org/
     Description:         Notifications library

Comment 5 Brian Harring (RETIRED) gentoo-dev 2006-02-22 00:12:16 UTC
@krzysztof: please append the data I asked for.

Portage *should* puke over invalid data, but it should do so in a clean manner.  This isn't clean. :)
Comment 6 Krzysztof Stasiorowski 2006-02-22 00:13:18 UTC
Created attachment 80403 [details]
output of emerge -Ddupv world &> log
Comment 7 Krzysztof Stasiorowski 2006-02-22 00:14:44 UTC
It's bzipped log file (quite big as a plain text :))
Comment 8 Brian Harring (RETIRED) gentoo-dev 2006-02-22 00:28:56 UTC
gnome-base/gnome-session-2.13.91 is the culprit .  Whatever repo is providing that, notify them to fix their ebuild please ;)
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-03-19 05:47:37 UTC
*** Bug 126793 has been marked as a duplicate of this bug. ***
Comment 10 Farid 2006-06-13 17:47:10 UTC
(In reply to comment #9)
> *** Bug 126793 has been marked as a duplicate of this bug. ***
> 

Shouldn't this bug be upgraded to "major"? To me it's a major problem not to be able to do "emerge -u world" now when portage 2.1 is marked as stable.

When will it be fixed?
Comment 11 Zac Medico gentoo-dev 2006-06-13 18:06:11 UTC
(In reply to comment #10)
> Shouldn't this bug be upgraded to "major"? To me it's a major problem not to be
> able to do "emerge -u world" now when portage 2.1 is marked as stable.
> 
> When will it be fixed?
> 

Well, it's not a regression.  The previous stable version of portage had the same problem.  It shouldn't be to hard to get a better error message here, so I'll give it a try...

Anyway, it's probably an ebuild in your overlay that's causing it.  Just do a recursive grep of your overlay for the bad atom (libnotify, for example) and that should help you find the bad ebuild.

Comment 12 Zac Medico gentoo-dev 2006-06-14 03:09:34 UTC
This is fixed in svn r3509.
Comment 13 Farid 2006-06-14 03:43:02 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Shouldn't this bug be upgraded to "major"? To me it's a major problem not to be
> > able to do "emerge -u world" now when portage 2.1 is marked as stable.
> > 
> > When will it be fixed?
> > 
> 
> Well, it's not a regression.  The previous stable version of portage had the
> same problem.  It shouldn't be to hard to get a better error message here, so
> I'll give it a try...
> 
> Anyway, it's probably an ebuild in your overlay that's causing it.  Just do a
> recursive grep of your overlay for the bad atom (libnotify, for example) and
> that should help you find the bad ebuild.
> 


I have ldcpp installed on my system. It is an ebuild that is not in portage yet, since it is not considered stable. I downloaded the ebuild myself. I have had it this way for more than 6 months, and it has worked normally with the old portage.
It's only with the new 2.1 that I get this everytime I do emerge -udp world:
"Parent:    None
Depstring: net-p2p/dcpp
Candidates: ['net-p2p/dcpp']
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3400, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 1397, in xcreate
    if not self.select_dep(portage.root, mydep, raise_on_missing=True):
  File "/usr/bin/emerge", line 1251, in select_dep
    raise ValueError
ValueError"


I just noticed one minute ago that you replied that it has been fixed. I hope it's the same problem that I am having :-) Thanks for the help.
Comment 14 Zac Medico gentoo-dev 2006-06-16 10:00:55 UTC
This has been released in 2.1.1_pre1.