| View previous topic :: View next topic |
| Author |
Message |
icefox13 Tux's lil' helper

Joined: 19 Apr 2004 Posts: 78 Location: Munich, Germany
|
Posted: Thu Jun 03, 2004 12:52 pm Post subject: Problem with fontconfig |
|
|
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 |
|
 |
fourhead l33t


Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Thu Jun 03, 2004 1:19 pm Post subject: |
|
|
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 |
|
 |
icefox13 Tux's lil' helper

Joined: 19 Apr 2004 Posts: 78 Location: Munich, Germany
|
Posted: Thu Jun 03, 2004 2:00 pm Post subject: |
|
|
| 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
somehow fontconfig doesn't seem to find the config files in /etc/fonts, probably a bug?  |
|
| Back to top |
|
 |
fourhead l33t


Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Thu Jun 03, 2004 2:09 pm Post subject: |
|
|
| 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 |
|
 |
icefox13 Tux's lil' helper

Joined: 19 Apr 2004 Posts: 78 Location: Munich, Germany
|
Posted: Thu Jun 03, 2004 3:31 pm Post subject: |
|
|
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 |
|
 |
fourhead l33t


Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Thu Jun 03, 2004 4:04 pm Post subject: |
|
|
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 |
|
 |
icefox13 Tux's lil' helper

Joined: 19 Apr 2004 Posts: 78 Location: Munich, Germany
|
Posted: Thu Jun 03, 2004 5:38 pm Post subject: |
|
|
| 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 |
|
 |
noganex n00b


Joined: 20 Aug 2003 Posts: 57 Location: Germany
|
Posted: Thu Jun 03, 2004 7:04 pm Post subject: |
|
|
Did everything like you wrote, but it doesn't work.
Does anybody know what i should do now? |
|
| Back to top |
|
 |
fourhead l33t


Joined: 03 Sep 2003 Posts: 875 Location: Cologne, Germany
|
Posted: Thu Jun 03, 2004 8:59 pm Post subject: |
|
|
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 |
|
 |
Phk Guru


Joined: 02 Feb 2004 Posts: 428 Location: [undef], Lisbon, Portugal, Europe, Earth, SolarSystem, MilkyWay, 23Q Radius, Forward Time
|
Posted: Mon Jun 07, 2004 3:24 pm Post subject: |
|
|
| 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 |
|
 |
noganex n00b


Joined: 20 Aug 2003 Posts: 57 Location: Germany
|
Posted: Mon Jun 07, 2004 4:10 pm Post subject: |
|
|
| 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 |
|
 |
icefox13 Tux's lil' helper

Joined: 19 Apr 2004 Posts: 78 Location: Munich, Germany
|
|
| Back to top |
|
 |
Match Tux's lil' helper


Joined: 22 Mar 2004 Posts: 117 Location: England
|
Posted: Sat Jun 12, 2004 9:32 am Post subject: |
|
|
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  |
|
| Back to top |
|
 |
|