Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 67515 - xorg install fails with a traceback after successful compilation : IOError: [Errno 21] Is a directory ...
Summary: xorg install fails with a traceback after successful compilation : IOError: [...
Status: VERIFIED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 94597 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-14 00:03 UTC by Romain Guillard
Modified: 2007-01-11 10:36 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 Romain Guillard 2004-10-14 00:03:49 UTC
i have a problem emerging xorg-x11 (both 6.8.0-r1 and 6.7.0-r2), it compiles without any problems but when the files are being copied i have this error message : 

[...]
--- /etc/X11/twm/
>>> /etc/X11/twm/system.twmrc
--- /etc/X11/xdm/
Traceback (most recent call last):
File "/usr/bin/emerge", line 2604, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1560, in merge
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
File "/usr/lib/portage/pym/portage.py", line 2365, in doebuild
return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
File "/usr/lib/portage/pym/portage.py", line 2487, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/portage/pym/portage.py", line 5929, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
File "/usr/lib/portage/pym/portage.py", line 5559, in treewalk
if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
File "/usr/lib/portage/pym/portage.py", line 5836, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 5836, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 5836, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
File "/usr/lib/portage/pym/portage.py", line 5782, in mergeme
mydest = self.new_protect_filename(myrealdest, perform_md5(srcroot+myabsto))
File "/usr/lib/portage/pym/portage.py", line 2483, in perform_md5
return perform_checksum(x, calc_prelink)[0]
File "/usr/lib/portage/pym/portage.py", line 354, in perform_checksum
return fchksum.fmd5t(filename)
IOError: [Errno 21] Is a directory: '/var/tmp/portage/xorg-x11-6.8.0-r1/image//var/lib/xdm' 


i had no problem whatsoever compiling xorg-x11-6.7.0-r1 and it runs fine but i can't upgrade it now because of that bug.

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




Portage 2.0.50-r11 (default-x86-2004.2, gcc-3.3.4, glibc-2.3.3.20040420-r1,
2.6.8-gentoo-r3)
=================================================================
System uname: 2.6.8-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/alias /var/qmail/control /var/vpopmail/domains
/var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://suns
ite.cnlab-switch.ch/ftp/mirror/gentoo/ http://gentoo.oregonstate.edu/ http://www
.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X alsa cdr gd gnome gtk gtk2 java ncurses nls oggvorbis opengl pam perl 
quicktime readline svga tcltk truetype usb x86 xmms zlib"
Comment 1 Lars Bröcker 2004-11-23 09:59:51 UTC
I was stopped by nearly the same bug while trying to downgrade xorg from 6.8.0 to 6.7.0-r3 in order to be able to emerge ati-drivers. Compilation went fine, but while copying the files, this error occurred:

Traceback (most recent call last):
  File "/usr/bin/emerge", line 2991, in ?
    mydepgraph.merge(mydepgraph.altlist())
  File "/usr/bin/emerge", line 1839, in merge
    retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
  File "/usr/lib/portage/pym/portage.py", line 2562, in doebuild
    return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
  File "/usr/lib/portage/pym/portage.py", line 2695, in merge
    return mylink.merge(pkgloc,infloc,myroot,myebuild)
  File "/usr/lib/portage/pym/portage.py", line 6670, in merge
    return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
  File "/usr/lib/portage/pym/portage.py", line 6297, in treewalk
    if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6536, in mergeme
    if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict,thismtime):
  File "/usr/lib/portage/pym/portage.py", line 6551, in mergeme
    elif stat.S_ISREG(mydmode) or (stat.S_ISLNK(mydmode) and stat.S_ISREG(os.stat(mydest)[stat.ST_MODE])):
OSError: [Errno 2] No such file or directory: '/usr/share/fonts/misc/encodings.dir

My emerge info reads as follows
Portage 2.0.51-r3 (default-linux/x86/2004.3, gcc-3.3.4, glibc-2.3.4.20040808-r1, 2.6.9-gentoo-r4 i686)
=================================================================
System uname: 2.6.9-gentoo-r4 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r5
Automake: sys-devel/automake-1.8.5-r1
Binutils: sys-devel/binutils-2.15.90.0.1.1-r3
Headers:  sys-kernel/linux-headers-2.4.21-r1
Libtools: sys-devel/libtool-1.5.2-r7
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER=""
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups dvd dvdr encode f77 fam flac foomaticdb fortran gdbm gif gpm gtk gtk2 imagemagick imlib java jpeg junit kde libg++ libwww mad mikmod motif mozilla mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib linguas_de"

Problem is reproducible by executing emerge -u ati-drivers which in my case first wants to downgrade to xorg-x11-6.7.0-r3 from -6.8.0-r1
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-11-23 15:26:06 UTC
Romain, can you upgrade to portage-2.0.51-r3 and see if you can reproduce this please?

Lars, your's is different and is caused by bug #70989.
Comment 3 Romain Guillard 2004-11-28 02:02:47 UTC
As a matter of fact i found a few days ago a workaround to this bug by renaming the /etc/X11/xdm folder into something else and then re-emerged xorg and that time it worked.
SInce then, I have updated to portage-2.0.51-r3. I've tried to emerge  xorg-x11-6.8.0-r3 (which was already correctly installed thansk to the workaround i foud) and did not encounter that bug, the emerge went fine.
Comment 4 Thomas Kuther 2005-03-17 11:07:43 UTC
same error while trying to emerge xorg-x11-6.8.0-r3, 6.8.0-r5 or 6.8.2-r1
also tried on a completely fresh install, the "workaround" doesn't help there, because there is no /var/lib/xdm to move yet

error:

>>> /etc/X11/xdm/Xsession
>>> /etc/X11/xdm/Xsetup_0
>>> /etc/X11/xdm/Xwilling
Traceback (most recent call last):
File "/usr/bin/emerge", line 3074, in ?
mydepgraph.merge(mydepgraph.altlist())
File "/usr/bin/emerge", line 1848, in merge
retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug)
File "/usr/lib/portage/pym/portage.py", line 2651, in doebuild
return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysetti
ngs["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"])
File "/usr/lib/portage/pym/portage.py", line 2823, in merge
return mylink.merge(pkgloc,infloc,myroot,myebuild)
File "/usr/lib/portage/pym/portage.py", line 6834, in merge
return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup)
File "/usr/lib/portage/pym/portage.py", line 6447, in treewalk
if self.mergeme(srcroot,destroot,outfile,secondhand,"",cfgfiledict,mymtime):
File "/usr/lib/portage/pym/portage.py", line 6699, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict
,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6699, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict
,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6699, in mergeme
if self.mergeme(srcroot,destroot,outfile,secondhand,offset+x+"/",cfgfiledict
,thismtime):
File "/usr/lib/portage/pym/portage.py", line 6624, in mergeme
mydest = new_protect_filename(myrealdest, newmd5=portage_checksum.perform_md
5(srcroot+myabsto))
File "/usr/lib/portage/pym/portage_checksum.py", line 25, in perform_md5
return perform_checksum(x, md5hash, calc_prelink)[0]
File "/usr/lib/portage/pym/portage_checksum.py", line 128, in perform_checksum
myhash, mysize = hash_function(myfilename)
File "/usr/lib/portage/pym/portage_checksum.py", line 75, in md5hash
return fchksum.fmd5t(filename)
IOError: [Errno 21] Is a directory: '/var/tmp/portage/xorg-x11-6.8.2-r1/image//v
ar/lib/xdm'



emerge info:

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3, glibc-2.3.4.20041102-r1, 2.6.11ac3 i686)
=================================================================
System uname: 2.6.11ac3 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#2, Mar 14 2005, 19:28:41)]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.7.9-r1, 1.8.5-r3, 1.6.3, 1.5, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1
sys-devel/libtool:   1.5.10-r4
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sfperms"
GENTOO_MIRRORS="http://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/gimpel /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowex X aalib alsa apm arts avi berkdb bitmap-fonts bonobo cdparanoia cdr codecs crypt cups curl directfb divx4linux dvd dvdread emboss encode esd faac faad fam fbcon flac foomaticdb gdbm gif gimp gnome gpm gtk gtk2 gtkhtml hal imagemagick imlib ithreads jack java jpeg junit kde kdexdeltas libg++ libwww mad matroska mbrola mikmod mmx mmx2 motif mp3 mpeg mpeg4 mysql nas ncurses nls nptl nvidia oggvorbis opengl oss pdflib perl png postgres python qt quicktime readline ruby scanner sdl shadow slang sndfile spell sqlite sse ssl svga tcltk tcpd tetex theora tiff transcode truetype truetype-fonts type1-fonts v4l v4l2 xml xml2 xmms xv xvid zlib linguas_de"
Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS


temporary solution:

echo ">sys-apps/portage-2.0.51-r15" >> /etc/portage/package.mask
emerge portage
emerge xorg-x11

Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 02:59:52 UTC
*** Bug 94597 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Kuther 2005-05-31 03:07:21 UTC
any idea on this one? seems to be a very special one.
i tried the above suggestions, none helped...

masking newer portage was more like a suggestion, but no solution, sorry
also sorry for opening new bug.

Comment 7 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 04:37:37 UTC
(In reply to comment #6)
> masking newer portage was more like a suggestion, but no solution, sorry
> also sorry for opening new bug.

So renaming the directory also does not work (or you don
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2005-05-31 04:37:37 UTC
(In reply to comment #6)
> masking newer portage was more like a suggestion, but no solution, sorry
> also sorry for opening new bug.

So renaming the directory also does not work (or you don´t even have one)?
Comment 9 Thomas Kuther 2005-05-31 07:44:39 UTC
(In reply to comment #7)
> So renaming the directory also does not work (or you don
Comment 10 Thomas Kuther 2005-05-31 07:44:39 UTC
(In reply to comment #7)
> So renaming the directory also does not work (or you don´t even have one)?

well, moving /etc/X11/xdm alone didn't do it here, no.

but now i upgraded to current ~x86 portage and left the dir moved --> worked :)

thanks anyways guys!


Comment 11 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 10:36:55 UTC
Closing