Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49514 - etcat -v ant fails with traceback and a minor etcat problem
Summary: etcat -v ant fails with traceback and a minor etcat problem
Status: RESOLVED WONTFIX
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Tools (show other bugs)
Hardware: All All
: High normal
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-30 09:34 UTC by Voltron Rex
Modified: 2004-08-21 13:43 UTC (History)
1 user (show)

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 Voltron Rex 2004-04-30 09:34:06 UTC
etcat isn't working like it should. 

First, when I use "etcat -f ant" I get this answer, which doesn't help at all:

[ Results for search key           : ant ]
[ Candidate applications found : 2 ]

 Only printing found installed programs.

It does work if I use ACCEPT_KEYWORDS="~x86". The ant version I have is the newest masked one (it's necessary for me to use the latest right now). In my opinion, whether masked or not etcat -f should tell me what's up.

The serious problem is this:
gem ant # etcat -v ant
[ Results for search key           : ant ]
[ Candidate applications found : 7 ]

 Only printing found installed programs.

Traceback (most recent call last):
  File "/usr/bin/etcat", line 670, in ?
    main()
  File "/usr/bin/etcat", line 666, in main
    function(query, matches)
  File "/usr/bin/etcat", line 251, in versions
    matches = gentoolkit.sort_package_list(matches)
  File "/usr/lib/gentoolkit/pym/gentoolkit.py", line 294, in sort_package_list
    pkglist.sort(Package.compare_version)
TypeError: comparison function must return int


This occurs whether I set ACCEPT_KEYWORDS or not.

gentoolkit version is 0.2.0_pre8. 
emerge info:
Portage 2.0.50-r6 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.4.20-gentoo-r16)
=================================================================
System uname: 2.4.20-gentoo-r16 i686 AMD Athlon(TM) XP 1800+
Gentoo Base System version 1.4.9
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dfx 3dnow X acpi apache2 apm arts avi cdr crypt dga directfb dvd emacs encode gdbm gif gphoto2 gtk gtk2 gtkhtml imlib java jpeg kerberos mad mikmod mmx motif mozilla mpeg mpeg4 ncurses nls oggvorbis opengl oss pam pda pdflib plotutils png quicktime readline sdl spell sse ssl svga tcltk tcpd truetype usb x86 xml xml2 xmms xv zlib"
Comment 1 Gregorio Guidi (RETIRED) gentoo-dev 2004-04-30 15:29:09 UTC
Second part is fixed in bug 46114. First part is bug 44848.
Comment 2 Marius Mauch (RETIRED) gentoo-dev 2004-08-21 13:43:36 UTC
this tool is deprecated