Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149576 - TypeError: unsubscriptable object when emerging certain ebuilds using ~cat/pkg
Summary: TypeError: unsubscriptable object when emerging certain ebuilds using ~cat/pkg
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
: 149585 (view as bug list)
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-09-29 19:36 UTC by Ryan Hill (RETIRED)
Modified: 2006-10-01 13:31 UTC (History)
1 user (show)

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


Attachments
don't try to call best_match_to_list() on "blocks" nodes (blocks.patch,1.40 KB, patch)
2006-09-29 21:09 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2006-09-29 19:36:20 UTC
i've found that Portage 2.1.2_pre1-r4 will give you a traceback when emerging some ebuilds using the ~ syntax.

eg:
# emerge -av ~kde-base/libkpgp-3.5.4

These are the packages that would be merged, in order:

Calculating dependencies \

!!! Problem in '~kde-base/libkpgp-3.5.4' dependencies.
!!! unsubscriptable object exceptions
Traceback (most recent call last):
  File "/usr/bin/emerge", line 4105, in ?
    emerge_main()
  File "/usr/bin/emerge", line 4100, in emerge_main
    myopts, myaction, myfiles, spinner)
  File "/usr/bin/emerge", line 3497, in action_build
    retval, favorites = mydepgraph.select_files(myfiles)
  File "/usr/bin/emerge", line 955, in select_files
    self.mysd = self.select_dep(myroot, mykey, arg=raw_args[i])
  File "/usr/bin/emerge", line 1222, in select_dep
    myuse=selected_pkg[-1], rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 829, in create
    myuse=myuse, parent_arg=arg):
  File "/usr/bin/emerge", line 1215, in select_dep
    rev_dep=rev_deps, arg=arg):
  File "/usr/bin/emerge", line 719, in create
    arg = portage.best_match_to_list(mykey, self.args_keys)
  File "/usr/lib/portage/pym/portage_dep.py", line 282, in best_match_to_list
    for x in match_to_list(mypkg, mylist):
  File "/usr/lib/portage/pym/portage_dep.py", line 269, in match_to_list
    if match_from_list(x, [mypkg]):
  File "/usr/lib/portage/pym/portage_dep.py", line 339, in match_from_list
    if xs[0:2] != mycpv_cps[0:2]:
TypeError: unsubscriptable object


examples of packages that trigger this:

  ~net-irc/irssi-0.8.10-r3
  ~kde-base/kopete-3.5.4
  ~kde-base/kwalletmanager-3.5.4-r2
  (looks like all of kde-* actually)

examples of packages that work:

  ~net-irc/bnc-2.9.4
  ~media-libs/libpng-1.2.12-r1
  ~sys-apps/sysvinit-2.86-r5
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-09-29 19:36:46 UTC
Portage 2.1.2_pre1-r4 (default-linux/x86/2006.1/desktop, gcc-pre20060927, glibc-2.4-r3, 2.6.18-rc7 i686)
=================================================================
System uname: 2.6.18-rc7 i686 Genuine Intel(R) CPU           T2300  @ 1.66GHz
Gentoo Base System version 1.12.5
Last Sync: Sat, 30 Sep 2006 00:00:08 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
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.17.50.0.5
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -frename-registers -fno-ident -mfpmath=sse"
CHOST="i686-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/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe -frename-registers -fno-ident -mfpmath=sse -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache cvs digest distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/"
LDFLAGS="-Wl,-O1"
LINGUAS=""
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/dirtyepic/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi alsa bash-completion berkdb bzip2 caps cdparanoia cdr crypt cscope curl dri dts dvd dvdr dvdread elibc_glibc encode exif expat fam ffmpeg fftw flac gdbm gif gmp gnutls gtk hal imap imlib input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_synaptics java jikes jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux mad mbox mmap mmx mp3 mpeg ncurses nptl nsplugin ogg opengl oss pam pcmcia pdf perl pic png python qt3 qt4 quicktime readline ruby sdl session sndfile spell sqlite sse sse2 ssl startup-notification svg tcpd theora threads truetype urandom usb userland_GNU vcd video_cards_fglrx video_cards_radeon vorbis win32codecs wxwindows xine xml xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Zac Medico gentoo-dev 2006-09-29 21:09:28 UTC
Created attachment 98425 [details, diff]
don't try to call best_match_to_list() on "blocks" nodes

This is fixed in svn r4566.
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2006-09-29 23:57:10 UTC
*** Bug 149585 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2006-10-01 13:31:53 UTC
This has been released in 2.1.2_pre2-r1.