Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12715 - portage flunks if file or directory not included -- should be more graceful
Summary: portage flunks if file or directory not included -- should be more graceful
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-25 18:41 UTC by Seemant Kulleen (RETIRED)
Modified: 2003-04-04 01:26 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 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-25 18:41:49 UTC
<<<        dir /usr/include/asm-sparc64
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1642, in ?
    if 1==unmerge(myaction, myfiles):
  File "/usr/bin/emerge", line 1364, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1514, in unmerge
    mylink.unmerge()
  File "/usr/lib/python2.2/site-packages/portage.py", line 3591, in unmerge
    if listdir(obj):
  File "/usr/lib/python2.2/site-packages/portage.py", line 55, in listdir
    mtime = os.stat(path)[8]
OSError: [Errno 2] No such file or directory: '/usr/include/asm-sparc'

construct linux-headers # emerge info
Portage 2.0.46-r2 (, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-sparc-r0 sparc64 sun4u
USE="sparc 3dnow apm crypt cups encode imlib libg++ libwww mikmod mmx motif
ncurses opengl pdflib png qtmt sdl spell truetype xml2 xmms xv zlib gdbm berkdb
slang readline pam perl python -X -kde -qt -arts -gnome -gtk -esd -alsa -oss
-nls -gpm -jpeg -gif -tiff -avi -mpeg -java -quicktime -oggvorbis ssl tcpd"
ARCH="sparc"
COMPILER="gcc3"
CHOST="sparc-unknown-linux-gnu"
CFLAGS="-mcpu=v8 -pipe"
CXXFLAGS="-mcpu=v8 -pipe"
ACCEPT_KEYWORDS="sparc ~sparc"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME=""
JAVA_HOME=""
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-02-03 06:44:56 UTC
  File "/usr/lib/python2.2/site-packages/portage.py", line 55, in listdir
    mtime = os.stat(path)[8]
OSError: [Errno 2] No such file or directory: '/usr/include/asm-sparc'



ummmmm... That can't happen. It's reading the directory and then can't
open something it read there. Looks like fs corruption. Reopen if you
can give another example.
Comment 2 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:21:16 UTC
db fix
Comment 3 John Davis (zhen) (RETIRED) gentoo-dev 2003-04-04 01:26:08 UTC
db fix