Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 161995 - >=gentoolkit-0.2.2 - equery g broken with sys-apps/portage-2.1.2_rc4-r9
Summary: >=gentoolkit-0.2.2 - equery g broken with sys-apps/portage-2.1.2_rc4-r9
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2007-01-14 08:07 UTC by t35t0r
Modified: 2007-03-09 04:29 UTC (History)
0 users

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


Attachments
emerge --info (emerge_info.txt,3.12 KB, text/plain)
2007-01-14 08:08 UTC, t35t0r
Details
Patch for helpers.py (helpers.py.patch,730 bytes, patch)
2007-01-24 18:45 UTC, Paul Varner (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description t35t0r 2007-01-14 08:07:30 UTC
# equery g xterm
[ Searching for packages matching xterm... ]
* dependency graph for x11-terms/xterm-218
`-- x11-terms/xterm-218
 `-- x11-libs/libX11-1.1.1
Traceback (most recent call last):
  File "/usr/bin/equery", line 1737, in ?
    cmd.perform(local_opts)
  File "/usr/bin/equery", line 687, in perform
    self._graph(pkg, opts, stats, 0, [], "")
  File "/usr/bin/equery", line 719, in _graph
    pkgtbl = self._graph(pkg, opts, stats, level+1, pkgtbl, suffix)
  File "/usr/bin/equery", line 710, in _graph
    pkg = gentoolkit.find_best_match(x[0] + cpv)
  File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 60, in find_best_match
    cat,pkg,ver,rev = split_package_name(search_key)
  File "/usr/lib/gentoolkit/pym/gentoolkit/helpers.py", line 135, in split_package_name
    r = portage.catpkgsplit(name)
  File "/usr/lib/portage/pym/portage_versions.py", line 288, in catpkgsplit
    raise InvalidData("Invalid category in %s" %mydata )
portage_exception.InvalidData: Invalid category in >=x11-libs/xtrans-1.0.1

also breaks with gentoolkit-0.2.2
Comment 1 t35t0r 2007-01-14 08:08:34 UTC
Created attachment 106907 [details]
emerge --info

emerge --info
Comment 2 Paul Varner (RETIRED) gentoo-dev 2007-01-14 17:54:24 UTC
Unfortunately, equery depgraph needs to be rewritten.  In the meantime, you can get the information that you desire with app-portage/udept. After installing udept, the command 'dep -t xterm' will print the depgraph.

This will be fixed in gentoolkit-0.2.3
Comment 3 Tiger 2007-01-24 17:57:11 UTC
Portage 2.1.2-r1 (default-linux/amd64/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r1-Tiger x86_64)
=================================================================
System uname: 2.6.19-gentoo-r1-Tiger x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Gentoo Base System version 1.12.8
Timestamp of tree: Sun, 21 Jan 2007 10:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
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.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19
ACCEPT_KEYWORDS="amd64 ~amd64 ~x86"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo                     ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo                      http://ftp.club-internet.fr/pub/mirrors/gentoo                 http://gentoo.modulix.net/gentoo"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr fr_FR en"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY="/home/tiger/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac alsa amd64 apic bash-completion berkdb bitmap-fonts bzip2 cairo cdr cflush cli cmov cmp_legacy cr8legacy cracklib crypt cups cx16 cx8 dbus de dlloader dri dvd dvdr dvdread encode fbcon ffmpeg fid firefox flash fortran fpu ftp fxsr fxsr_opt gdbm gif gpm gtk gtk2 hal ht iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility lahf_lm libg++ lm logitech-mouse mca mce mozilla mp3 msr mtrr ncurses nls nptl nptlonly nx ogg opengl pae pam pat pcre pdf perl pge php png pni ppds pppd pse pse36 python qt qt3 qt4 readline reflection sep session spl ssl stc svm syscall tcltk tcpd threads tm truetype-fonts ts tsc ttp type1-fonts udev unicode usb vid vme wifi xcomposite xorg xvid zlib" ALSA_CARDS="hda-intel" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

========================================================
Gentool Kit version installed :
[ebuild   R   ] app-portage/gentoolkit-0.2.3_pre3  0 kB
========================================================

I have the same problem here.
Comment 4 Paul Varner (RETIRED) gentoo-dev 2007-01-24 18:45:58 UTC
Created attachment 108052 [details, diff]
Patch for helpers.py

This patch fixes the traceback.  To apply (assuming attachment is saved as /tmp/helpers.py.patch)

cd /usr/lib/gentoolkit/pym/gentoolkit
patch < /tmp/helpers.py.patch
Comment 5 Tiger 2007-02-05 19:40:30 UTC
Thanks a lot, it work here. (~amd64)
Comment 6 Tiger 2007-02-05 19:42:53 UTC
It works here on ~amd64, thank you very much.
Comment 7 Paul Varner (RETIRED) gentoo-dev 2007-03-09 04:29:49 UTC
Fixed in gentoolkit-0.2.3