Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37483 - portage crashed by unmerging files with "IOError: [Errno 21] Is a directory"
Summary: portage crashed by unmerging files with "IOError: [Errno 21] Is a directory"
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:
Depends on:
Blocks:
 
Reported: 2004-01-07 08:23 UTC by Micha Glave
Modified: 2005-07-28 21:38 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 Micha Glave 2004-01-07 08:23:49 UTC
When starting "emerge clean" I got the following Error (see "Actual Results").

I asked google and found: 
http://mail.python.org/pipermail/python-bugs-list/2001-November/008535.html

so it was a common problem when changing from Python 2.1 to 2.2. Maybe depending on the Python-Version (I use 2.3.3)

Maybe It is just a failed dependency. 

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

Actual Results:  
Traceback (most recent call last): 
  File "/usr/bin/emerge", line 2220, in ? 
    mydepgraph.merge(mydepgraph.altlist()) 
  File "/usr/bin/emerge", line 1403, in merge 
    if not unmerge("clean", [xsplit[0]]): 
  File "/usr/bin/emerge", line 1608, in unmerge 
    retval=portage.unmerge(mysplit[0],mysplit[1],portage.root,unmerge_action 
not in ["clean","prune"]) 
  File "/usr/lib/portage/pym/portage.py", line 2061, in unmerge 
    mylink.unmerge(trimworld=mytrimworld) 
  File "/usr/lib/portage/pym/portage.py", line 4596, in unmerge 
    mymd5=perform_md5(obj, calc_prelink=1) 
  File "/usr/lib/portage/pym/portage.py", line 2052, in perform_md5 
    return perform_checksum(x, calc_prelink)[0] 
  File "/usr/lib/portage/pym/portage.py", line 314, in perform_checksum 
    f = open(myfilename, 'rb') 
IOError: [Errno 21] Is a directory 
 

Expected Results:  
 

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r6, 2.6.0-gentoo) 
================================================================= 
System uname: 2.6.0-gentoo i686 Intel(R) Celeron(TM) CPU                1200MHz 
Gentoo Base System version 1.4.3.12 
distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[enabled] 
ccache version 2.3 [enabled] 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache cvs distcc sandbox userpriv" 
GENTOO_MIRRORS="http://192.168.73.62 http://gentoo.oregonstate.edu 
http://www.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j6" 
PKGDIR="/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="X aalib acl acpi acpi4linux alsa apache2 apm arts artswrappersuid avi 
berkdb cdr crypt cups dga directfb dvb dvd encode esd foomaticdb gd gdbm gif 
gpm gstreamer gtk2 guile imagemagick imap imlib java jpeg kde ldap libg++ 
libwww lirc mad maildir mikmod motif mozilla mozsvg mpeg mysql nas ncurses nls 
odbc ogg oggvorbis opengl pam pda pdflib perl pic png postgres ppds python qt 
quicktime readline samba scanner slang spell sse ssl svga tcltk tcpd tetex tiff 
truetype type1 usb vim-with-x wmf x86 xfs xml2 xmms xosd xv xvid zlib 
linguas_de linguas_en_GB"
Comment 1 Alec Warner (RETIRED) archtester gentoo-dev Security 2005-07-28 21:38:40 UTC
Stable doesn't have this code at all, so I'll mark this FIXED.  If you can 
somehow reproduce or have further trouble, please reopen.