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"
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.
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
can you find out what fc-cache in this case thinks is the correct location of the config files ?
No response from user...