Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 53392

Summary: fontconfig-2.2.2 doesn't find config files in /etc/fonts
Product: Gentoo Linux Reporter: Werner Kondziella <werner>
Component: [OLD] LibraryAssignee: Gentoo Fonts Team <fonts>
Status: RESOLVED NEEDINFO    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Werner Kondziella 2004-06-09 04:54:37 UTC
After emerging fontconfig-2.2.2 (also 2.2.1) the program fc-cache doesn't find the existing config files in /etc/fonts.

There is a bug in the fontconfig ebuild: the configure script needs to get a parameter about where the config files are located. 

So I changed the ebuild and added the line "--with-confdir=/etc/fonts \", so it looks like this now:

(...)
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
(...)

After the change fontconfig compiled cleanly when disabling the sandbox (FEATURES="-sandbox") because of failed permissions to /etc/fonts. There might be a way to fix this in the ebuild to make fontconfig compile cleanly with the default setting (sandbox=on)

Reproducible: Always
Steps to Reproduce:
1. emerge fontconfig-2.2.2
2. fc-cache -vf

Actual Results:  
fc-cache: config file not found 

Expected Results:  
 

Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5) 
================================================================= 
System uname: 2.6.5 i686 Pentium III (Coppermine) 
Gentoo Base System version 1.4.15 
Autoconf: sys-devel/autoconf-2.59-r3 
Automake: sys-devel/automake-1.8.3 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -pipe -fPIC -DPIC 
-falign-functions=4 -fprefetch-loop-arrays" 
CHOST="i686-pc-linux-gnu" 
COMPILER="gcc3" 
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /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=pentium3 -fomit-frame-pointer -pipe -fPIC -DPIC 
-falign-functions=4 -fprefetch-loop-arrays" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs ccache prelink sandbox" 
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ 
ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage-gentoo-de" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="X acpi alsa avi berkdb cdr crypt cups dvd encode foomaticdb gdbm gif gpm 
imlib jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses 
nls oggvorbis opengl oss pam pcmcia pdflib perl png python qt quicktime 
readline sdl slang spell sse ssl svga tcpd tetex truetype x86 xml2 xmms xv 
zlib"
Comment 1 foser (RETIRED) gentoo-dev 2004-06-10 10:06:29 UTC
No it doesn't need it, its the default location. Anyway can you be more verbose about when this error occurs & how it looks. I bet it's something local.
Comment 2 Werner Kondziella 2004-06-11 02:07:16 UTC
Well, I can't really explain why this error occured (several updates of baselayout since the last fontconfig upgrade etc). I know that /etc/fonts should be the default location since it is in another section of the ebuild. However, the default ebuild didn't work for me and I looked for a way to fix this.
Some other users experienced this problem, too and were able to solve it the way I did. Here is the link to the corresponding thread: http://forums.gentoo.org/viewtopic.php?t=181199
Comment 3 foser (RETIRED) gentoo-dev 2004-06-11 02:48:44 UTC
can you find out what fc-cache in this case thinks is the correct location of the config files ?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-12-22 16:45:05 UTC
No response from user...