Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142888 - empty FETCHCOMMAND causes IndexError: list index out of range
Summary: empty FETCHCOMMAND causes IndexError: list index out of range
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 147007
  Show dependency tree
 
Reported: 2006-08-05 08:15 UTC by Lukas Dlab
Modified: 2007-01-12 07:50 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 Lukas Dlab 2006-08-05 08:15:50 UTC
emerge -Du world
Calculating world dependencies... done!
>>> Emerging (1 of 15) sys-apps/man-pages-2.36 to /
>>> Downloading http://10.2.0.1/gentoo/distfiles/man-pages-2.36.tar.bz2
Traceback (most recent call last):
  File "/usr/bin/emerge", line 3524, in ?
    mydepgraph.merge(pkglist)
  File "/usr/bin/emerge", line 2056, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
  File "/usr/lib/portage/pym/portage.py", line 2944, in doebuild
    if need_distfiles and not fetch(fetchme, mysettings, listonly=listonly, fetchonly=fetchonly):
  File "/usr/lib/portage/pym/portage.py", line 2233, in fetch
    env=mysettings.environ(), **spawn_keywords)
  File "/usr/lib/portage/pym/portage_exec.py", line 33, in spawn_bash
    opt_name = os.path.basename(mycommand.split()[0])
IndexError: list index out of range

emerge --info
Portage 2.1-r1 (default-linux/x86/2006.0, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-lukage-v1 i686)
=================================================================
System uname: 2.6.16-lukage-v1 i686 AMD Athlon(tm) XP 1700+
Gentoo Base System version 1.6.15
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -pipe"
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=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://10.2.0.1/gentoo"
LINGUAS="en cs"
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="/usr/local/overlays/xgl-coffee"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 7zip X Xaw3d a52 aac aalib acl acpi alsa aotuv apache2 apm ares asf avi bash-completion berkdb bitmap-fonts bzip2 caps cddb cdparanoia cli crypt css cups curl djbfft dlloader dmx dri dts dv dvb dvd dvdr dvdread dxr3 eds emboss encode extrafilters fame ffmpeg flac font-server foomaticdb fortran gdbm ggi gif glut gnutls gpm gs gstreamer gtk gtk2 hal ieee1394 imlib ipv6 isdnlog jack jbig joystick jpeg jpeg2k kde lcms ldap libcaca libg++ libwww lzo mad matroska md5sum mikmod mjpeg mmx modplug motif mp3 mpeg mpi musepack musicbrainz mysql nas ncurses network nls nptl nsplugin ogg openal openexr opengl oss pam pccts pcre pdflib perl physfs png portaudio ppds pppd python qt qt3 qt4 quicktime readline real reflection rle samba scanner sdl sdl-sound session slang slp sndfile speex spell spl sse ssl svg svga symlink tcpd theora tiff timidity toolbar truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vidix visualization vorbis win32codecs wmf xinerama xml xml2 xorg xv xvid xvmc yv12 zlib elibc_glibc input_devices_evdev input_devices_keyboard input_devices_mouse kernel_linux linguas_en linguas_cs userland_GNU video_cards_nvidia video_cards_vesa video_cards_fbdev video_cards_v4l"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Marius Mauch (RETIRED) gentoo-dev 2006-08-05 09:39:20 UTC
What's the output of
emerge -v --info|grep COMMAND
?
Comment 2 Lukas Dlab 2006-08-05 12:16:50 UTC
(In reply to comment #1)
> What's the output of
> emerge -v --info|grep COMMAND
> ?
> 

emerge -v --info|grep COMMAND
FETCHCOMMAND=" "
RESUMECOMMAND="/usr/bin/wget -c -t 5 -T 60 --passive-ftp -P ${DISTDIR} ${URI}"

Now I know where the error is... missing fetchcommand...
Comment 3 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 08:50:31 UTC
Seems to be fixed
Comment 4 Zac Medico gentoo-dev 2007-01-12 07:50:25 UTC
This is fixed in svn r5273 and released in portage-2.1.2_rc4.