Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180399 - IndexError when parsing DEPEND with an extra space
Summary: IndexError when parsing DEPEND with an extra space
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 181949
  Show dependency tree
 
Reported: 2007-05-30 22:48 UTC by Jan Kundrát (RETIRED)
Modified: 2007-05-31 01:29 UTC (History)
0 users

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


Attachments
ebuild causing that backtrace (pfstools-1.6.1.ebuild,1.02 KB, text/plain)
2007-05-30 22:49 UTC, Jan Kundrát (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kundrát (RETIRED) gentoo-dev 2007-05-30 22:48:33 UTC
velbloud pfstools # ebuild pfstools-1.6.1.ebuild manifest
Traceback (most recent call last):
  File "/usr/bin/ebuild", line 139, in ?
    debug=debug, tree=mytree)
  File "/usr/lib/portage/pym/portage.py", line 3480, in doebuild
    myuse="all", myroot=myroot, trees=dep_check_trees)
  File "/usr/lib/portage/pym/portage.py", line 4346, in dep_check
    masklist=mymasks, matchall=(use=="all"), excludeall=useforce)
  File "/usr/lib/portage/pym/portage_dep.py", line 190, in use_reduce
    if head[0] == "!":
IndexError: string index out of range


velbloud pfstools # emerge --info
Portage 2.1.2.7 (hardened/x86/2.6, gcc-3.4.6, glibc-2.5-r2, 2.6.21-gentoo i686)
=================================================================
System uname: 2.6.21-gentoo i686 Genuine Intel(R) CPU           T2400  @ 1.83GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Wed, 30 May 2007 19:50:01 +0000
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
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, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe -ggdb"
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/splash /etc/terminfo"
CXXFLAGS="-O2 -march=prescott -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="buildpkg collision-protect distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.sh.cvut.cz/MIRRORS/gentoo"
LINGUAS="en cs"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa apache apache2 bash-completion berkdb bluetooth bzip2 cdparanoia crypt cscope css cups curl dbus doomsday dri dts dvb dvd dvdr dvdread encode exif fam fastcgi fbsplash ffmpeg flac gif gorg-404 gphoto2 hal hardened hdaps hpn iconv ieee1394 imlib ipv6 irda java jbig jpeg jpeg2k kde kdeenablefinal libcaca logrotate matroska midi mmx mp3 mpeg musepack ncurses nls nptl nptlonly nsplugin ogg opengl pam pcre pdf pic png ppds python qt3 quicktime readline rle samba slang smp speex spell sqlite sqlite3 sse sse2 sse3 ssl stream tga theora threads tiff truetype unicode urandom usb vcd vim vim-syntax vorbis wifi x86 xine xinerama xml xorg xosd xv 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 evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev fglrx"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jan Kundrát (RETIRED) gentoo-dev 2007-05-30 22:49:19 UTC
Created attachment 120732 [details]
ebuild causing that backtrace
Comment 2 Jan Kundrát (RETIRED) gentoo-dev 2007-05-30 22:52:55 UTC
Found the cause. If there's an extra space between use flag name and question mark in the DEPEND, it breaks.
Comment 3 Zac Medico gentoo-dev 2007-05-30 23:24:09 UTC
Thanks, this is fixed in svn r6679.
Comment 4 Zac Medico gentoo-dev 2007-05-31 01:29:20 UTC
This has been released in 2.1.2.9.