Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem with fontconfig
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Thu Jun 03, 2004 12:52 pm    Post subject: Problem with fontconfig Reply with quote

Hi,
after upgrading fontconfig (downgrading doesn't get things working again) I receive following error:

Code:

laptop root # fc-cache -f
Fontconfig error: Cannot load default config file


weird, but the config files exist:

Code:

laptop root # ls /etc/fonts/
fonts.conf  fonts.dtd  local.conf


the files seem to be O.K., they look kinda html for me. I tried re-emerging, downgrading etc several times, while xfs was turned off.

Any clue to get this working?

Thanks in advance
Werner[/code]
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Jun 03, 2004 1:19 pm    Post subject: Reply with quote

the same thing happened to me recently with fontconfig-2.2. it just didn't work and kde wouldn't want to start anymore. what i was doing is unmerge fontconfig, delete /etc/fonts, then re-emere fontconfig-2.0 (not the newest one) and then run xfs once to create this font config file again. very strange, i know.

tom
Back to top
View user's profile Send private message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Thu Jun 03, 2004 2:00 pm    Post subject: Reply with quote

elektrohirn wrote:
the same thing happened to me recently with fontconfig-2.2. it just didn't work and kde wouldn't want to start anymore. what i was doing is unmerge fontconfig, delete /etc/fonts, then re-emere fontconfig-2.0 (not the newest one) and then run xfs once to create this font config file again. very strange, i know.

tom


just unmerged fontconfig and deleted /etc/fonts. emerged fontconfig again created /etc/fonts, but the problem persists. There is only fontconfig-2.2.1 and -2.2.2 in my portage tree so I can't downgrade to 2.0.x :cry:

somehow fontconfig doesn't seem to find the config files in /etc/fonts, probably a bug? :cry:
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Jun 03, 2004 2:09 pm    Post subject: Reply with quote

sorry, my fault. i have 2.2.0-r2 installed, but it didn't work for me with 2.2.2. can you downgrade to this version? it really looks like a bug, perhaps one of us should file a bug report.
Back to top
View user's profile Send private message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Thu Jun 03, 2004 3:31 pm    Post subject: Reply with quote

WOHOOOOOOW! Problem SOLVED!

Didn't work because of a missing parameter in the ebuild.

The steps of my dirty hack:
Code:
/etc/init.d/xfs stop
cd /etc && rm -r fonts

then I edited the latest fontconfig ebuild and inserted the line "--with-confdir=/etc/fonts" so it looks like this:
Code:
(...)
econf --disable-docs \
                --with-confdir=/etc/fonts \
                --with-docdir=${D}/usr/share/doc/${PF} \
                --x-includes=/usr/X11R6/include \
                --x-libraries=/usr/X11R6/lib \
                --with-default-fonts=/usr/X11R6/lib/X11/fonts/Type1 || die
(...)


then I had to disable the sandbox due to some access rights and emerged the package:

Code:
FEATURES="-sandbox" emerge fontconfig


Quick and dirty.. I hope someone fixes the ebuild in portage :)
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Jun 03, 2004 4:04 pm    Post subject: Reply with quote

i edited the ebuild just like you did, and i disabled all sandboxing features (i never had them activated, actually). but emerge always stops with an access violation because /etc/fonts couldn't be created :-( i tried it both with my current /etc/fonts and without it, well, i'll test further...

tom
Back to top
View user's profile Send private message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Thu Jun 03, 2004 5:38 pm    Post subject: Reply with quote

elektrohirn wrote:
i edited the ebuild just like you did, and i disabled all sandboxing features (i never had them activated, actually). but emerge always stops with an access violation because /etc/fonts couldn't be created :-( i tried it both with my current /etc/fonts and without it, well, i'll test further...

tom


I had this error, too. It worked after putting 'FEATURES="-sandbox"' directly before the emerge command when running emerge fontconfig. Also, make sure xfs isn't running and /etc/fonts doesn't exist. Didn't have to chmod /etc or /etc/fonts, though.
Sandboxing btw is enabled by default as far as I know.
Back to top
View user's profile Send private message
noganex
n00b
n00b


Joined: 20 Aug 2003
Posts: 57
Location: Germany

PostPosted: Thu Jun 03, 2004 7:04 pm    Post subject: Reply with quote

Did everything like you wrote, but it doesn't work. :(

Does anybody know what i should do now?
Back to top
View user's profile Send private message
fourhead
l33t
l33t


Joined: 03 Sep 2003
Posts: 875
Location: Cologne, Germany

PostPosted: Thu Jun 03, 2004 8:59 pm    Post subject: Reply with quote

it worked! thanks. i had FEATURES="" in my make.conf, but it seems this doesn't override the default settings as i thought. thanks a lot. do you want to send a bug report?

tom
Back to top
View user's profile Send private message
Phk
Guru
Guru


Joined: 02 Feb 2004
Posts: 428
Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time

PostPosted: Mon Jun 07, 2004 3:24 pm    Post subject: Reply with quote

icefox13 wrote:
WOHOOOOOOW! Problem SOLVED!
...
Quick and dirty.. I hope someone fixes the ebuild in portage :)


Thankx a lot man, also worked fine for me.... ;)

Hope someone fixes this e-build FAST.. These are the kind of things that make a gentoo-user feel a bit stupid (since we always think the error is our fault!)

[]'s
_________________
"# cat /dev/urandom >> /tmp/life"
Back to top
View user's profile Send private message
noganex
n00b
n00b


Joined: 20 Aug 2003
Posts: 57
Location: Germany

PostPosted: Mon Jun 07, 2004 4:10 pm    Post subject: Reply with quote

Phk wrote:
Hope someone fixes this e-build FAST.. These are the kind of things that make a gentoo-user feel a bit stupid (since we always think the error is our fault!)

FULL ACK.
Back to top
View user's profile Send private message
icefox13
Tux's lil' helper
Tux's lil' helper


Joined: 19 Apr 2004
Posts: 78
Location: Munich, Germany

PostPosted: Wed Jun 09, 2004 11:59 am    Post subject: Reply with quote

created a bug report:
https://bugs.gentoo.org/show_bug.cgi?id=53392

Don't know if I've done all right.. it is my first bug report ;)
Back to top
View user's profile Send private message
Match
Tux's lil' helper
Tux's lil' helper


Joined: 22 Mar 2004
Posts: 117
Location: England

PostPosted: Sat Jun 12, 2004 9:32 am    Post subject: Reply with quote

Cheers guys! This problem has taken most of last night and this morning to fix, but as soon as I followed your instructions it's all groovy 8)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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