Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 19873 - portage attempts to stat non-existing dir?
Summary: portage attempts to stat non-existing dir?
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Unclassified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-24 04:45 UTC by Alastair Tse (RETIRED)
Modified: 2011-10-30 22:21 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 Alastair Tse (RETIRED) gentoo-dev 2003-04-24 04:45:21 UTC
just came across this portage quirk last night:

<<<        dir /usr/doc/4Suite-0.11.1/docs/html/howto
<<<        dir /usr/doc/4Suite-0.11.1/docs/html
<<<        dir /usr/doc/4Suite-0.11.1/docs
<<<        dir /usr/doc/4Suite-0.11.1/demos/4RDF
<<<        dir /usr/doc/4Suite-0.11.1/demos/4ODS/tutorial
<<<        dir /usr/doc/4Suite-0.11.1/demos/4ODS/book_mark_manager
<<<        dir /usr/doc/4Suite-0.11.1/demos/4ODS
<<<        dir /usr/doc/4Suite-0.11.1/demos
<<<        dir /usr/doc/4Suite-0.11.1/demo/4XSLT
<<<        dir /usr/doc/4Suite-0.11.1/demo/4XPath
<<<        dir /usr/doc/4Suite-0.11.1/demo
<<<        dir /usr/doc/4Suite-0.11.1
Traceback (most recent call last):
  File "/usr/bin/emerge", line 1918, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1216, in merge
    if not unmerge("clean", [xsplit[0]]):
  File "/usr/bin/emerge", line 1420, in unmerge
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root)
  File "/usr/lib/python2.2/site-packages/portage.py", line 1771, in unmerge
    mylink.unmerge()
  File "/usr/lib/python2.2/site-packages/portage.py", line 4036, in unmerge
    if listdir(obj):
  File "/usr/lib/python2.2/site-packages/portage.py", line 86, in listdir
    mtime = os.stat(mypath)[ST_MTIME]
OSError: [Errno 2] No such file or directory: '/usr/share/doc/4Suite-0.11.1'

-----

This happened while --update 4Suite from 0.11.1 to 1.0_alpha1. I can't see why
/use/share/doc/4Suite-0.11.1 disappeared according to the output because it
didn't have any trouble removing the other directories. This was also the only
portage related program running at the time.

Sure enough /usr/share/doc/4Suite-0.11.1 was gone.

  Portage 2.0.48_pre2 (default-x86-1.4, gcc-3.2.2, glibc-2.3.2-r1)
=================================================================
System uname: 2.4.21_rc1-gss i686 Celeron (Mendocino)
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://gentoo.oregonstate.edu/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/sound/events /etc/postfix/sample
/etc/X11/starthere /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/fire/1/p"
PORTDIR_OVERLAY="/usr/portage.local"
USE="x86 oss avi cups encode gif libg++ motif mpeg ncurses nls pdflib quicktime
truetype xml2 xmms xv zlib gtkhtml alsa gdbm berkdb slang readline tetex bonobo
java guile mysql X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk
opengl mozilla apm pnp trusted -matrox -voodoo3 -3dfx -3dnow -sse mmx -svga -kde
-qt gnome gtk2 tcltk moznomail moznoirc moznocompose mozsvg -dvd -mikmod -arts
aalib real jpeg png -ldap curl ssl -ipv6 spell crypt cjk debug"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium2 -O3 -pipe -g"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://potato.vegetable.org.uk/gentoo-portage"
FEATURES="digest noclean noauto usersandbox sandbox buildpkg distcc"


Reproducible: Always
Steps to Reproduce:
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2003-04-27 17:26:28 UTC
ok... Fixed in cvs for .48_pre3