Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 22969 - emerge -pu world fails with "IndexError: list index out of range"
Summary: emerge -pu world fails with "IndexError: list index out of range"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-16 22:14 UTC by adam morley
Modified: 2011-10-30 22:22 UTC (History)
3 users (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 adam morley 2003-06-16 22:14:55 UTC
Please don't kill me.  First off, I asked on forums.gentoo.org first, to find
out whether anybody else had the problem and they did, and nobody knew any more.
 So here's my problem:

1.  Ran emerge sync today
2.  Ran emerge -pu world
3.  got:

# emerge -pu world

These are the packages that I would merge, in order:

Calculating world dependencies \Traceback (most recent call last):
  File "/usr/bin/emerge", line 1902, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 887, in xcreate
    if not self.create(myk):
  File "/usr/bin/emerge", line 637, in create
    if not self.select_dep("/",mydep["/"],myparent=mp):
  File "/usr/bin/emerge", line 735, in select_dep
    mycheck=portage.dep_check(depstring,self.mydbapi[myroot])
  File "/usr/lib/python2.2/site-packages/portage.py", line 2543, in dep_check
    mylist=flatten(dep_listcleanup(dep_zapdeps(mysplit,mysplit2)))
  File "/usr/lib/python2.2/site-packages/portage.py", line 2299, in dep_zapdeps
    myresult=dep_zapdeps(unreduced[x],reduced[x])
  File "/usr/lib/python2.2/site-packages/portage.py", line 2289, in dep_zapdeps
    return unreduced[1]
IndexError: list index out of range


I looked around in /var/log/emerge.log, but it didn't have which files changed,
so I couldn't just remove them and see if it worked.  Note that I'm running
sys-apps/portage-2.0.48, as I haven't updated yet.  Someone else said they
upgraded yesterday (didn't say which version) and still had problems.

# emerge info
Portage 2.0.48 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.20-gentoo-r2 i686 Pentium III (Coppermine)
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /opt/tomcat/conf
/usr/kde/3.1/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="kde directfb alsa tetex aalib bonobo guile ruby mysql perl esd mozilla
gphoto2 x86 oss 3dnow apm arts avi berkdb crypt cups encode gdbm gif gpm gtk
imlib java jpeg gnome libg++ libwww mikmod mmx motif mpeg ncurses nls oggvorbis
opengl pam pdflib png python qt qtmt quicktime readline sdl slang spell ssl svga
tcpd truetype X xml2 xmms xv zlib"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

# tail -50 /var/log/emerge.log 
1055705917:  *** terminating.
1055705921: Started emerge on: Jun 15, 2003 15:38:41
1055705921:  *** emerge  cups
1055705921:  >>> emerge (1 of 1) net-print/cups-1.1.18-r5 to /
1055705921:  === (1 of 1) Cleaning
(/usr/portage/net-print/cups/cups-1.1.18-r5.ebuild)
1055705922:  === (1 of 1) Compiling/Merging
(/usr/portage/net-print/cups/cups-1.1.18-r5.ebuild)
1055716048:  === (1 of 1) Post-Build Cleaning
(/usr/portage/net-print/cups/cups-1.1.18-r5.ebuild)
1055716048:  >>> AUTOCLEAN: net-print/cups
1055716053: === Unmerging... (net-print/cups-1.1.18-r4)
1055716064:  >>> unmerge success: net-print/cups-1.1.18-r4
1055716064:  ::: completed emerge (1 of 1) net-print/cups-1.1.18-r5 to /
1055716064:  *** Finished. Cleaning up...
1055716065:  *** exiting successfully.
1055716066:  *** terminating.
1055808191:  *** terminating.
1055808984: Started emerge on: Jun 16, 2003 20:16:24
1055808984:  *** emerge  sync
1055808984:  === rsync
1055809098:  *** terminating.
1055809104:  *** terminating.
1055809368:  *** terminating.
1055809374: Started emerge on: Jun 16, 2003 20:22:54
1055809374:  *** emerge  sync
1055809374:  === rsync
1055809377: Started emerge on: Jun 16, 2003 20:22:57
1055809377:  *** emerge  sync
1055809377:  === rsync
1055809381: Started emerge on: Jun 16, 2003 20:23:01
1055809381:  *** emerge  sync
1055809381:  === rsync
1055809383: Started emerge on: Jun 16, 2003 20:23:03
1055809383:  *** emerge  sync
1055809383:  === rsync
1055809454:  *** terminating.
1055809460:  *** terminating.
1055809994:  *** terminating.
1055809999:  *** terminating.
1055810114: Started emerge on: Jun 16, 2003 20:35:14
1055810114:  *** emerge  info
1055810116:  *** terminating.
1055826107:  *** terminating.
1055826175:  *** terminating.
1055826185: Started emerge on: Jun 17, 2003 01:03:05
1055826185:  *** emerge  sync
1055826185:  === rsync
1055826251:  *** terminating.
1055826339:  *** terminating.
1055826636: Started emerge on: Jun 17, 2003 01:10:36
1055826636:  *** emerge  info
1055826637:  *** terminating.

make.conf is the defaults save for CFLAGS CXXFLAGS and SYNC (rsync.us.gentoo.org)

Sorry if this is a repeat, but I searched the database and didn't get anything,
and I posted to forums to no avail.

posting is here:

http://forums.gentoo.org/viewtopic.php?p=371354#371354
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-06-17 00:12:02 UTC
Does the same thing happen with portage 2.0.48-r1?
Comment 2 Jesus Gonzalez Alvarez 2003-06-17 01:30:05 UTC
I have also this problem with Portage  2.0.48-r1. This is my emerge info:

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.20-patched i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config"
7CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 apm avi crypt cups gif jpeg kde libg++ mikmod ncurses nls png spell xml2 xmms xv zlib gdbm berkdb slang readline arts aalib svga guile sdl gpm tcpd pam libwww ssl perl python imlib qt motif mozilla gphoto2 ldap -3dnow gnome bonobo evo gb gtkhtml sse see2 tcltk cdr dga directfb encode esd gtk gtk2 java maildir mpeg oggvorbis oss pcmcia quicktime opengl acpi4linux -pdflib mysql truetype mmx alsa X"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"
CXXFLAGS="-march=pentium3 -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-loop-opt -frerun-cse-after-loop -falign-functions=4"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j8"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox buildpkg ccache userpriv usersandbox"


My 50 last emerges:
tail -50 /var/log/emerge.log
1055788175: Started emerge on: Jun 16, 2003 20:29:35
1055788175:  *** emerge --buildpkg search gimp
1055788207:  *** terminating.
1055788246:  *** terminating.
1055788254: Started emerge on: Jun 16, 2003 20:30:54
1055788254:  *** emerge --buildpkg gimp-freetype
1055788254:  >>> emerge (1 of 1) media-gfx/gimp-freetype-0.2-r3 to /
1055788254:  === (1 of 1) Cleaning (/usr/portage/media-gfx/gimp-freetype/gimp-freetype-0.2-r3.ebuild)
1055788256:  === (1 of 1) Compiling/Packaging (/usr/portage/media-gfx/gimp-freetype/gimp-freetype-0.2-r3.ebuild)
1055788310:  === (1 of 1) Merging (/usr/portage/media-gfx/gimp-freetype/gimp-freetype-0.2-r3.ebuild)
1055788314:  === (1 of 1) Updating world file (/usr/portage/media-gfx/gimp-freetype/gimp-freetype-0.2-r3.ebuild)
1055788314:  === (1 of 1) Post-Build Cleaning (/usr/portage/media-gfx/gimp-freetype/gimp-freetype-0.2-r3.ebuild)
1055788316:  >>> AUTOCLEAN: media-gfx/gimp-freetype
1055788316:  --- AUTOCLEAN: Nothing unmerged.
1055788316:  ::: completed emerge (1 of 1) media-gfx/gimp-freetype-0.2-r3 to /
1055788316:  *** Finished. Cleaning up...
1055788335:  *** exiting successfully.
1055788338:  *** terminating.
1055832698: Started emerge on: Jun 17, 2003 08:51:38
1055832698:  *** emerge --buildpkg sync
1055832698:  === rsync
1055833105:  *** terminating.
1055833768:  *** terminating.
1055833971:  *** terminating.
1055833977:  *** terminating.
1055833996: Started emerge on: Jun 17, 2003 09:13:16
1055833996:  *** emerge --buildpkg portage
1055833997:  >>> emerge (1 of 1) sys-apps/portage-2.0.48-r1 to /
1055833997:  === (1 of 1) Cleaning (/usr/portage/sys-apps/portage/portage-2.0.48-r1.ebuild)
1055833998:  === (1 of 1) Compiling/Packaging (/usr/portage/sys-apps/portage/portage-2.0.48-r1.ebuild)
1055834025:  === (1 of 1) Merging (/usr/portage/sys-apps/portage/portage-2.0.48-r1.ebuild)
1055834137:  === (1 of 1) Post-Build Cleaning (/usr/portage/sys-apps/portage/portage-2.0.48-r1.ebuild)
1055834151:  >>> AUTOCLEAN: sys-apps/portage
1055834151:  --- AUTOCLEAN: Nothing unmerged.
1055834151:  ::: completed emerge (1 of 1) sys-apps/portage-2.0.48-r1 to /
1055834151:  *** Finished. Cleaning up...
1055834171:  *** exiting successfully.
1055834174:  *** terminating.
1055834271:  *** terminating.
1055834294:  *** terminating.
1055835049:  *** terminating.
1055835068:  *** terminating.
1055835117:  *** terminating.
1055835408:  *** terminating.
1055835789: Started emerge on: Jun 17, 2003 09:43:09
1055835789:  *** emerge --buildpkg search portage
1055835794:  *** terminating.
1055838315: Started emerge on: Jun 17, 2003 10:25:15
1055838315:  *** emerge --buildpkg info
1055838318:  *** terminating.

Do you need any more information to help you to solve the problem?
Comment 3 Hanno Böck gentoo-dev 2003-06-17 06:14:37 UTC
Hi, have the same problem with portage-2.0.48-r1.
I didn't emerge or update anything, only thing was an rsync, so the problem must be something in the rsync-tree.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-06-17 07:44:52 UTC
I think the error is in the php eclass. If you don't have gd in your USE flags and try to emerge mod_php or php you get the same error message.
Comment 5 Jesus Gonzalez Alvarez 2003-06-17 09:26:58 UTC
Now it works. Only waiting some hours and reemerging the portage tree (emerge rsync) the problem it's solved. 

Does anybody make a successfull emerge world after doing a make rsync at 14:00 AM (GMT) or later?
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-06-17 10:31:46 UTC
Nope, just synced and still have the error.
Comment 7 Tristan Henderson 2003-06-17 10:48:48 UTC
Same here (synced 1330GMT). Had to go back to php.eclass v1.44 (http://cvs.gentoo.org/cgi-bin/viewcvs.cgi/gentoo-x86/eclass/php.eclass?rev=1.44&content-type=text/vnd.viewcvs-markup) to get rid of the error.
Comment 8 Hanno Böck gentoo-dev 2003-06-17 11:22:59 UTC
So it seems definitely the php eclass is the problem.
It works with the cvs-version 1.49 of the eclass (1.50 is the current one).

This is what has changed:
-       gd? ( media-libs/libgd >=media-libs/jpeg-6b >=media-libs/libpng-1.2.5 )
+       || (
+               gd-bundled? ()
+               gd? ( media-libs/libgd >=media-libs/jpeg-6b >=media-libs/libpng-1.2.5 )
+       )

vapier, what is the meaning of this change?
Comment 9 Simon Arlott 2003-06-17 11:48:28 UTC
http://forums.gentoo.org/viewtopic.php?t=61153

Reversing the change from 1.49 to 1.50 would also fix it, I don't know what gd-bundled is supposed to be, but it's not in my use.desc
Comment 10 Robert Coie (RETIRED) gentoo-dev 2003-06-17 11:48:41 UTC
I don't know if this is a good way to deal with it, but putting "" in the empty ()
and adding a fallback default case to the || in the RDEPEND seems to fix the problem.
With USE="gd-bundled", I was seeing "No masked or unmasked ebuilds to satisfy ()".

So changing the || clause in the php eclass RDEPEND to look like this:

    || ( 
        gd-bundled? ( "" ) 
        gd? ( media-libs/libgd >=media-libs/jpeg-6b >=media-libs/libpng-1.2.5 ) 
        ( "" ) 
    ) 

...appears to solve things.
Comment 11 adam morley 2003-06-17 18:48:37 UTC
I'm just wondering, but shouldn't it not be possible to break the portage tree for everyone with a misconfiguration of one file?  I don't really know how to file it, but it might be a good feature enhancement to make it say the file/eclass or whatever is bogus and still be able to run without it in some sort of degraded mode.

That, or implement some form of change management, so that something like this doesn't happen, though I'm guessing this probably already exists?
Comment 12 SpanKY gentoo-dev 2003-06-18 20:34:36 UTC
that bug should be fixed in the latest portage ... 
it hung around for a while until nick got around to fixing it 
Bug 12630 
Comment 13 Hanno Böck gentoo-dev 2003-06-22 11:14:40 UTC
This one is fixed.