Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105234 - esearch has problems with portage-2.1 cache
Summary: esearch has problems with portage-2.1 cache
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage Tools Team
URL:
Whiteboard:
Keywords:
: 105238 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-09-08 03:20 UTC by Marcin Kryczek (RETIRED)
Modified: 2006-06-11 08:17 UTC (History)
2 users (show)

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


Attachments
105234-fix-2.1-cache.patch (105234-fix-2.1-cache.patch,1.17 KB, patch)
2006-06-07 13:09 UTC, samLT
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marcin Kryczek (RETIRED) gentoo-dev 2005-09-08 03:20:32 UTC
with portage-2.1 it's impossible to view/edit search results.
here's traceback log:

<aye@CogES>~: esearch -e mutt
Traceback (most recent call last):
  File "/usr/bin/esearch", line 312, in ?
    searchEbuilds("%s/%s/" % (portdir, pkg[1]), True, searchdef)
  File "/usr/bin/esearch", line 85, in searchEbuilds
    pkgs[-1].append(path + "/" + file)
AttributeError: 'tuple' object has no attribute 'append'
Comment 1 Brian Harring (RETIRED) gentoo-dev 2005-09-08 03:27:05 UTC
2.1 is an alpha release, basically shaking out env bugs...
conversion of the return results to a list should address it, although I'd
expect the thing is complaining from one of the (pkg|cat)split changes.
Comment 2 Brian Harring (RETIRED) gentoo-dev 2005-09-08 03:55:26 UTC
*** Bug 105238 has been marked as a duplicate of this bug. ***
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-09-08 04:18:21 UTC
This is a bug in esearch. 
Comment 4 Jason Stubbs (RETIRED) gentoo-dev 2005-09-08 04:21:09 UTC
Err.. I didn't change that. 
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-25 20:44:23 UTC
Fixed in esearch-0.7.1-r3
Comment 6 samLT 2006-06-07 13:09:11 UTC
there is something wrong with the 105234-fix-2.1-cache.patch :

esearch -e mutt
Traceback (most recent call last):
  File "/usr/bin/esearch", line 316, in ?
    searchEbuilds("%s/%s/" % (portdir, pkg[1]), True, searchdef)
  File "/usr/bin/esearch", line 87, in searchEbuilds
    defebuild = (searchdef, pkgs[-1][3])
IndexError: list index out of range


That seems normal since before the patch one 'pkg' in 'pkgs' is like this:
['mutt', '1.5.11', 'r1', '/usr/portage/mail-client/mutt//mutt-1.5.11-r1.ebuild']

but now it's like :
[['mutt', '1.5.11', 'r1'], '/usr/portage/mail-client/mutt//mutt-1.5.11-r1.ebuild']

if I don't take the line 88 : pkgs.sort(pkgcmp) into account I can make the thing to work with the new patch, but.. without this sort it's kind of a mess.. e.g.:

[ N] mail-client/mutt (1.5.11-r1):  a small but very powerful text-based mail client
 Portage [1] mutt-1.5.11-r1
 Portage [2] mutt-1.5.8-r2
 Portage [3] mutt-1.5.10-r1
 Portage [4] mutt-1.5.11
 Portage [5] mutt-1.5.8-r1
 Portage [6] mutt-1.5.9
 Portage [7] mutt-1.5.11-r30
 Portage [8] mutt-1.4.2.1


Comment 7 samLT 2006-06-07 13:09:46 UTC
Created attachment 88622 [details, diff]
105234-fix-2.1-cache.patch
Comment 8 samLT 2006-06-07 13:14:32 UTC
by the way, I have sys-apps/portage-2.1_rc4-r3, and I didn't have that problem, what's wrong?
Comment 9 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-06-11 07:00:52 UTC
not fixed
Comment 10 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-06-11 07:31:32 UTC
please upgrade to 2.1 stable and see if you can reproduce, because I cannot.
Comment 11 Jose daLuz 2006-06-11 08:17:52 UTC
I'm running portage 2.1 and esearch 0.7.1-r3:

esearch -e ^portage$
Traceback (most recent call last):
  File "/usr/bin/esearch", line 316, in ?
    searchEbuilds("%s/%s/" % (portdir, pkg[1]), True, searchdef)
  File "/usr/bin/esearch", line 87, in searchEbuilds
    defebuild = (searchdef, pkgs[-1][3])
IndexError: list index out of range

Portage 2.1 (default-linux/amd64/2006.0, gcc-4.1.1/amd64-vanilla, glibc-2.4-r3, 2.6.16-ck11 x86_64)
=================================================================
System uname: 2.6.16-ck11 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.1
ccache version 2.4 [enabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r2
dev-util/confcache:  0.4.2-r1
sys-apps/sandbox:    1.2.18.1
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-r1, 2.16.93, 2.17.50.0.2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -ggdb"
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/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=k8 -O2 -pipe -ggdb -ffriend-injection"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig ccache confcache distlocks fixpackages parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://distro.ibiblio.org/pub/linux/distributions/gentoo/ http://gentoo.osuosl.org/ "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/var/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=120"
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="/usr/local/gentopia /usr/local/bmg-main /usr/local/xgl-coffee /usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="amd64 X aac alsa avi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli crypt cups dbus debug dri dvd dvdr eds emboss encode esd firefox flac foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog java jpeg kde kdehiddenvisibility ldap lzw lzw-tiff mad mono mp3 mpeg ncurses nls nptl nptlonly ogg opengl pam pcre pdflib perl pic png pppd python qt quicktime readline reflection ruby samba sdl session spell spl sqlite ssl tcpd theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales vorbis xml xml2 xorg xpm xv zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux linguas_en userland_GNU video_cards_vesa video_cards_nvidia"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS