Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129931 - `portageq match` fails when more than one package is found with same short name
Summary: `portageq match` fails when more than one package is found with same short name
Status: RESOLVED DUPLICATE of bug 131160
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Other
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-14 05:19 UTC by Nathan Sullivan
Modified: 2006-05-02 11:11 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nathan Sullivan 2006-04-14 05:19:33 UTC
if 2 packages, eg. dev-php/php and dev-lang/php exist, and you attempt to 'quickpkg php', it fails non-sanely with the following:

nsys-home1-gt / # quickpkg linux-headers
Traceback (most recent call last):
  File "/usr/bin/portageq", line 285, in ?
    main()
  File "/usr/bin/portageq", line 280, in main
    function(sys.argv[2:])
  File "/usr/bin/portageq", line 138, in match
    print string.join(portage.db[argv[0]]["vartree"].dbapi.match(argv[1]),"\n")
  File "/usr/lib/portage/pym/portage.py", line 4443, in match
    mydep=dep_expand(origdep,mydb=self,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3336, in dep_expand
    return prefix+cpv_expand(mydep,mydb=mydb,use_cache=use_cache)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3525, in cpv_expand
    raise ValueError, matches
ValueError: ['cross-powerpc-unknown-linux-gnu/linux-headers', 'sys-kernel/linux-headers']
 * Could not find anything to match 'linux-headers'; skipping
 * No packages found
nsys-home1-gt / #

in my test case, some additional ebuilds are in my overlay added by crossdev, same scenario anyways...

Portage 2.1_pre7-r5 (default-linux/x86/2006.0, gcc-4.0.3, glibc-2.4-r1, 2.6.15-ck3-r1 i686)
=================================================================
System uname: 2.6.15-ck3-r1 i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5-r2, 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-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer nostrip sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.pacific.net.au/linux/Gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://ftp.cc.swin.edu.au/gentoo-portage"
USE="alsa apache2 apm avi bash-completion berkdb bitmap-fonts bzip2 calendar cli crypt ctype cups curl dba debug dhcp divx4linux dri dv dvb dvd dvdread eds eix emboss encode esd exif expat extraengine fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gpm gstreamer hash imap imlib innodb isdnlog jabber jpeg kerberos ldap libclamav libg++ libwww logrotate mad maildir mcal memlimit mhash mikmod mmx motif mp3 mpeg mysql mysqli ncurses nls nptl nptlonly ogg opengl pam pcntl pcre pdflib perl pic pie png posix postgres pppd python quicktime radius readline samba sdl session simplexml snmp soap sockets spamassassin spell spl sqlite ssl tcpd tidy tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l vhosts vorbis wddx x86 xml xml2 xmlrpc xmms xsl xv xvid zaptel zlib dvb_cards_usb-vp7045 elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 SpanKY gentoo-dev 2006-04-15 00:24:45 UTC
not a bug in quickpkg ... portageq is failing

output from portage-2.1_pre7-r5:
# portageq match / linux-headers
Traceback (most recent call last):
  File "/usr/bin/portageq", line 285, in ?
    main()
  File "/usr/bin/portageq", line 280, in main
    function(sys.argv[2:])
  File "/usr/bin/portageq", line 138, in match
    print string.join(portage.db[argv[0]]["vartree"].dbapi.match(argv[1]),"\n")
  File "/usr/lib/portage/pym/portage.py", line 4443, in match
    mydep=dep_expand(origdep,mydb=self,use_cache=use_cache)
  File "/usr/lib/portage/pym/portage.py", line 3336, in dep_expand
    return prefix+cpv_expand(mydep,mydb=mydb,use_cache=use_cache)+postfix
  File "/usr/lib/portage/pym/portage.py", line 3525, in cpv_expand
    raise ValueError, matches
ValueError: ['cross-arm-gentoo-linux-uclibc/linux-headers', 'cross-sparc-gentoo-linux-uclibc/linux-headers', 'cross-sh4eb-gentoo-linux-uclibc/linux-headers', 'cross-i686-gentoo-linux-uclibc/linux-headers', 'cross-ia64-gentoo-linux-uclibc/linux-headers', 'cross-bfin-elf/linux-headers', 'cross-cris-gentoo-linux-uclibc/linux-headers', 'cross-armeb-gentoo-linux-uclibc/linux-headers', 'cross-armeb-softfloat-linux-uclibc/linux-headers', 'cross-m68k-gentoo-linux-uclibc/linux-headers', 'cross-sh4-unknown-linux-gnu/linux-headers', 'cross-bfin-uclinux/linux-headers', 'cross-hppa-gentoo-linux-uclibc/linux-headers', 'cross-s390-gentoo-linux-uclibc/linux-headers', 'cross-x86_64-gentoo-linux-uclibc/linux-headers', 'cross-powerpc-softfloat-linux-uclibc/linux-headers', 'cross-sh4-gentoo-linux-uclibc/linux-headers', 'cross-arm-unknown-linux-gnu/linux-headers', 'cross-powerpc-gentoo-linux-uclibc/linux-headers', 'sys-kernel/linux-headers', 'cross-arm-softfloat-linux-uclibc/linux-headers', 'cross-alpha-gentoo-linux-uclibc/linux-headers']
Comment 2 Simon Stelling (RETIRED) gentoo-dev 2006-05-02 11:11:41 UTC
fixed

*** This bug has been marked as a duplicate of 131160 ***