Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28047 - emerge -u world fails with traceback
Summary: emerge -u world fails with traceback
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 30679 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-06 07:26 UTC by Ole Kristian Tørresen
Modified: 2011-10-30 22:18 UTC (History)
1 user (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 Ole Kristian Tørresen 2003-09-06 07:26:39 UTC
When I try an emerge -u world, it fails and I get this error:
bash-2.05b# emerge -u world
Calculating world dependencies
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2023, in ?
    if not mydepgraph.xcreate(myaction):
  File "/usr/bin/emerge", line 926, in xcreate
    if portage.db["/"]["vartree"].dbapi.match(x):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3149, in match
    mydep=dep_expand(origdep,self)
  File "/usr/lib/python2.2/site-packages/portage.py", line 2603, in dep_expand
    return prefix+cpv_expand(mydep,mydb)+postfix
  File "/usr/lib/python2.2/site-packages/portage.py", line 2536, in cpv_expand
    if (not mydb.cp_list(mykey)) and virts and virts.has_key(mykey):
  File "/usr/lib/python2.2/site-packages/portage.py", line 3101, in cp_list
    mystat=os.stat(self.root+"var/db/pkg/"+mysplit[0])[ST_MTIME]
TypeError: stat() argument 1 must be (encoded string without NULL bytes), not str

I have updated portage several times and still have this problem. I and others
have asked on the forums, but nobody answer us.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.



Expected Results:  
Installed updated versions of programs on my world file.

Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.20-xfs-r2)
=================================================================
System uname: 2.4.20-xfs-r2 i686 AMD Athlon(tm) XP 2200+
distcc 2.10 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -mmmx -msse -fomit-frame-pointer
-m3dnow"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -mfpmath=sse -mmmx -msse
-fomit-frame-pointer -m3dnow"
DISTDIR="/usr/portage/distfiles"
FEATURES="sandbox autoaddcvs distcc ccache"
GENTOO_MIRRORS="http://gentoo.linux.no ftp://sunsite.uio.no/linux/Gentoo
http://gentoo.oregonstate.edu/
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 oss apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xv zlib directfb alsa
gdbm berkdb slang readline arts tetex aalib nas bonobo svga ggi tcltk java guile
ruby mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib oggvorbis gnome
qt kde motif opengl mozilla cdr scanner acpi apache2 artswrappersuid dga doc dvd
fbcon gd gtk2 gtkhtml imap ipv6 jikes maildir samba sse usb -xmms -gtk"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-09-14 20:22:53 UTC
You probably have a corrupt world file.

Try to edit it and see:
/var/cache/edb/world
Comment 2 Jan Jitse Venselaar 2003-09-30 05:55:37 UTC
I have the same problem. The content of my /var/cache/edb/world file:

media-libs/aalib
media-libs/libungif
media-fonts/gnu-gs-fonts-std
media-sound/alsa-utils
sys-kernel/mm-sources
gnome-base/gconf
media-fonts/ttf-bitstream-vera
net-www/netscape-flash
media-sound/speechd
media-libs/libsdl
app-text/docbook-sgml-dtd
sys-apps/tcp-wrappers
x11-libs/gtk+
media-libs/alsa-oss
app-arch/unzip
media-sound/emu10k1-audigy
app-cdr/xcdroast
dev-libs/openssl
app-portage/mirrorselect
net-im/kopete
media-libs/zvbi
media-libs/alsa-lib
net-misc/nforce-net
dev-libs/libpcre
app-text/ttf2pt1
app-cdr/cdrtools
gnome-base/gnome-mime-data
app-arch/rpm2targz
app-arch/unrar
media-libs/libflash
games-fps/quake2-data
games-arcade/project-starfighter
media-libs/a52dec
kde-base/kdemultimedia
app-admin/fam-oss
games-fps/enemy-territory
media-fonts/gnu-gs-fonts-other
x11-libs/libzvt
sys-kernel/gs-sources
sys-apps/modutils
gnome-base/ORBit
net-im/gaim
dev-lang/nasm
games-roguelike/angband
media-gfx/povray
net-misc/kssh
kde-base/kdesdk
net-www/mozilla-firebird-cvs
app-admin/procinfo
dev-util/ctags
media-sound/alsa-tools
media-sound/mpg123
kde-base/kdepim
x11-base/xfree-drm
net-www/links
media-gfx/bootsplash
sys-kernel/development-sources
x11-base/xfree
net/p2p/dcgui-qt
dev-libs/libIDL
media-video/ffmpeg
media-sound/lame
dev-util/kdevelop
media-sound/festival
dev-java/ant
sys-devel/distcc
media-sound/xmms
app-text/psutils
media-video/ati-drivers
games-fps/quake2-relnev
media-libs/xine-lib
media-sound/esound
net-p2p/gift-fasttrack
sys-libs/lib-compat
net-www/gplflash
dev-libs/fribidi
dev-util/cvs
gnome-base/gnome
net-analyzer/nmap
dev-libs/libxml2
net-p2p/dcgui-qt
app-editors/nano
kde-base/kdegraphics
sys-apps/module-init-tools
app-emulation/winex-cvs
x11-themes/gtk-themes
net-print/cups
app-text/htmltidy
media-gfx/sketch
x11-themes/mosfet-liquid-widgets
media-sound/emu10k1
media-sound/mbrola
app-text/wv2
dev-libs/libxml
media-tv/tvtime
media-gfx/blender
dev-util/pkgconfig
dev-java/sun-j2sdk
app-text/xpdf
sys-apps/time
app-text/ghostscript
dev-java/java-config
games-fps/quake3-urbanterror
app-office/gnumeric
games-fps/aaquake2
dev-libs/libxslt
kde-base/kdeedu
media-libs/libdv
app-sci/zetagrid
media-video/mplayer
dev-libs/popt
media-libs/divx4linux
media-libs/freetype
dev-tex/eurosym
app-dicts/aspell-nl
games-arcade/frozen-bubble
app-text/docbook-xml-dtd
app-editors/kile
x11-themes/noia
media-libs/gdk-pixbuf
x11-themes/silver-xcursors
games-fps/quake3
dev-util/ccache
dev-util/guile
dev-libs/lzo
net-p2p/dclib
app-text/tetex
app-portage/ufed
media-libs/xvid
kde-base/kdeartwork
media-libs/libdvdread
app-emulation/winex
kde-base/kdenetwork
kde-base/kdebase
media-video/kmplayer
app-editors/quanta
kde-base/arts
app-text/docbook-xsl-stylesheets
app-cdr/cdrdao
app-portage/ebuilder
gnome-base/libbonoboui
app-dicts/aspell-en
media-libs/libao
x11-themes/gtk-theme-switch
x11-libs/qt
x11-themes/noia-warm
app-text/latex-ttf-fonts
kde-base/kdelibs
media-libs/audiofile
games-fps/lsdldoom
kde-base/kdeadmin
dev-libs/libole2
app-admin/sudo
dev-util/arch
media-libs/libart_lgpl
media-libs/sdl-image
media-libs/libdvdcss
dev-util/dialog
gnome-base/gnome-vfs
media-plugins/alsa-xmms
dev-util/intltool
x11-libs/openmotif
app-text/gv
net-www/mozilla
media-sound/alsa-driver
app-shells/tcsh
media-libs/libvorbis
app-crypt/johntheripper
sys-kernel/vanilla-sources
app-cdr/k3b
gnome-base/libbonobo
x11-libs/pango
kde-base/kde
net-nds/portmap
media-video/transcode
media-sound/alsamixergui
dev-java/sun-jdk
app-text/aspell
app-portage/gentoolkit
net-analyzer/tcpdump
dev-libs/qsa
net-irc/xchat
kde-base/kdeutils
media-libs/fontconfig
app-misc/screen
Comment 3 Jan Jitse Venselaar 2003-09-30 11:25:45 UTC
deleting my world file and running regenworld doesn't fix it
Updating portage (from 2.0.49-r3 to 2.0.48-r7) doesn't fix it.
Comment 4 Jan Jitse Venselaar 2003-10-12 08:44:02 UTC
It was solved for me. I had my own custom openssh ebuild in my portage overlay,
which apparently generated the error. 
Deleting that openssh ebuild fixed it. (I got the clue after emerge -p openssh
gave the final error, without the traceback).

Stupidly, I deleted the ebuild, so I can't see what caused the error. I was
too glad that I finally solved it.
Comment 5 Markus Nigbur (RETIRED) gentoo-dev 2003-10-21 14:03:46 UTC
*** Bug 30679 has been marked as a duplicate of this bug. ***
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-11-24 23:29:14 UTC
still an issue ?
Comment 7 steven-gentoo 2003-11-25 06:33:41 UTC
It works for me now.
I'm using portage 2.0.49-r15
Comment 8 Marius Mauch (RETIRED) gentoo-dev 2003-11-25 11:47:34 UTC
seems to be fixed