Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
update to x-org dies with "OSError: [Errno 2] No such..
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
tjfitz
n00b
n00b


Joined: 10 Aug 2004
Posts: 29
Location: North Carolina

PostPosted: Sat Nov 20, 2004 10:09 pm    Post subject: update to x-org dies with "OSError: [Errno 2] No such.. Reply with quote

I am trying to emerge the xorg-x11-6.8.0-r3 update, but it keeps dying on me with

Code:
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'


I have run it in kde, and I have tried killing kdm/X and running it in a console but it does the same thing. How do I fix it?
Back to top
View user's profile Send private message
Chidder
n00b
n00b


Joined: 25 Jan 2004
Posts: 14
Location: Gloucestershire, UK

PostPosted: Sun Nov 21, 2004 6:11 pm    Post subject: Probable fix Reply with quote

Try changing into /usr/share/fonts/misc and issuing the following command (as root):

Code:

ln -s ../encodings.dir encodings.dir

and then
Code:

ebuild /usr/share/portage/x11-base/xorg-x11/xorg-x11-6.8.0-r3.ebuild qmerge.


This fixes the problem and completes the install.

NB I have not had chance to check that the fonts work properly after this hack.

Regards,
Chidder.
Back to top
View user's profile Send private message
tjfitz
n00b
n00b


Joined: 10 Aug 2004
Posts: 29
Location: North Carolina

PostPosted: Sun Nov 21, 2004 9:30 pm    Post subject: Reply with quote

I did "cd" into that directory, and when I typed "ls" I saw that there was already a link called encodings.dir, and it was linked to /usr/share/fonts/encodings/encodings.dir. Should I delete this link and remake it? It was blinking red, which I think means that there is a problem with it; namely, I didn't see an "encodings.dir" file in /usr/share fonts/encodings (r in /usr/share/fonts, either). Perhaps not having this file at all is the problem? I will wait for your reply I proceed with the rest of your instructions. Thanks!
Back to top
View user's profile Send private message
Chidder
n00b
n00b


Joined: 25 Jan 2004
Posts: 14
Location: Gloucestershire, UK

PostPosted: Mon Nov 22, 2004 6:40 am    Post subject: Reply with quote

So long as there is a directory called encodings.dir in /usr/share/fonts then I would delete the bad link and create a new one as per my earlier response.

Regards,
Chidder.
Back to top
View user's profile Send private message
tjfitz
n00b
n00b


Joined: 10 Aug 2004
Posts: 29
Location: North Carolina

PostPosted: Tue Nov 23, 2004 3:44 am    Post subject: Reply with quote

There isn't an "encodings.dir" in /usr/share/fonts! :

Code:
bash-2.05b# cd /usr/share/fonts/
bash-2.05b# ls
100dpi  TTF    cyrillic  encodings      local  ukr
75dpi   Type1  default   fonts.cache-1  misc   util
bash-2.05b#


Code:
bash-2.05b# locate encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/work/xc/fonts/encodings/large/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/work/xc/fonts/encodings/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/misc/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/75dpi/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/Type1/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/encodings/large/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/encodings/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/100dpi/encodings.dir
/var/tmp/portage/xorg-x11-6.8.0-r3/image/usr/share/fonts/cyrillic/encodings.dir
/usr/local/share/fonts/encodings.dir
/usr/share/fonts/TTF/encodings.dir
/usr/share/fonts/ukr/encodings.dir
/usr/share/fonts/misc/encodings.dir
/usr/share/fonts/default/encodings.dir
/usr/share/fonts/local/encodings.dir
/usr/share/fonts/cyrillic/encodings.dir
bash-2.05b#


Perhaps one of these other locations is more suitable to this purpose?
Back to top
View user's profile Send private message
Chidder
n00b
n00b


Joined: 25 Jan 2004
Posts: 14
Location: Gloucestershire, UK

PostPosted: Tue Nov 23, 2004 7:16 am    Post subject: Reply with quote

Given your setup I would consider recreating the encodings.dir in /usr/share/fonts/misc, giving it the same user:group and permissions as the others you have found in /usr/share/fonts/*/.

Then try the ebuild command I gave in my first reply.

Regards,
Chidder.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4947
Location: Gothenburg, Sweden

PostPosted: Tue Nov 23, 2004 2:01 pm    Post subject: Reply with quote

Moved from Portage & Programming in favour of https://forums.gentoo.org/viewtopic.php?t=236400
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum