Fontconfig is up to version 2.3.1. The new SRC_URI is http://fontconfig.org/release/${P}.tar.gz ${PPREFIX}-2.2-local_fontdir-r1.patch was the only patch from the 2.2.3 ebuild that cleanly applied to 2.3.0 or 2.3.1 With that caveat, it is working fine for me.
An upgrade would be capital since fontconfig-2.3 and greater support a local configurations directory /etc/fonts/conf.d which works very much like /etc/env.d. This allows for auto-configuration of new font packages by portage since all that is necessary to make the new font available is to drop a file into /etc/fonts/conf.d.
We've been using a uniform font location to ensure that for quite some time now. But rest assured, fontconfig is not forgotten, we will get to it.
2.3.2 has now been released I'm having success with an ebuild that uses the same changes I did to get 2.3.1 working. (Ie mv fontconfig-2.3.1.ebuild fontconfig-2.3.2.ebuild worked.) relevant changes from 2.3.1 are: Patch memory leaks in using iconv. (Reported by Chris Capoccia) Patch memory leaks in fc-cache. (Reported by Chris Capoccia) Fetch bitmap glyphs to get widths during font evaluation. (keithp) Share strings through FcObjectStaticName (Ross Burton)
Looks like the "Fetch bitmap glyphs to get widths during font evaluation. (keithp)" broke the spacing on my custom ProFont font with unicode chars - it doesn't seem to respect the BDF device width anymore, and instead uses the width of the widest glyph.. making it not appear correctly (even though it's a monospace font I'm talking about, I had to design some of the glyphs wider than the rest, as it's not easy to make some of the Unicode chars with only 5 pixels width...) I could see this as a possible problem for proportional bitmap fonts though, unless it only happens for fonts specified as monospaced ones..
@comment 4 : that sounds like something that should be reported & discussed upstream : https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig . Please drop the appropriate upstream buglink back here.
I can't get it to compile at all. Any hint on something I might miss or so? . . . docbook2man ../fc-cache/fc-cache.sgml Using catalogs: /etc/sgml/sgml-docbook-4.1.cat Using stylesheet: /usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl#print Working on: /var/tmp/portage/fontconfig-2.3.2/work/fontconfig-2.3.2/fc-cache/../fc-cache/fc-cache.sgml Can't locate SGMLS/Output.pm in @INC (@INC contains: /etc/perl /usr/lib/perl5/site_perl/5.8.6/i686-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i686-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.4/i686-linux /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.5/i686-linux /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i686-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.4/i686-linux /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i686-linux .) at /usr/bin/sgmlspl line 56. BEGIN failed--compilation aborted at /usr/bin/sgmlspl line 56. make[2]: *** [fc-cache.1] Error 8 make[2]: Leaving directory `/var/tmp/portage/fontconfig-2.3.2/work/fontconfig-2.3.2/fc-cache' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/fontconfig-2.3.2/work/fontconfig-2.3.2' make: *** [all] Error 2 !!! ERROR: media-libs/fontconfig-2.3.2 failed. !!! Function src_compile, Line 48, Exitcode 2 !!! (no error message) Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-gentoo-r9 i686) ================================================================= System uname: 2.6.11-gentoo-r9 i686 AMD Athlon(tm) 64 Processor 3000+ Gentoo Base System version 1.6.12 ccache version 2.3 [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.8 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O3 -pipe -march=athlon-xp -msse2 -fforce-addr -fomit-frame-pointer -maccumulate-outgoing-args -fprefetch-loop-arrays -ffast-math -ftracer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O3 -pipe -march=athlon-xp -msse2 -fforce-addr -fomit-frame-pointer -maccumulate-outgoing-args -fprefetch-loop-arrays -ffast-math -ftracer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.du.se/pub/os/gentoo http://ds.thn.htu.se/linux/gentoo http://mirror.pudas.net/gentoo http://gentoo.oregonstate.edu/ http://www.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_US" LC_ALL="en_US" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 3dnow X aalib alsa apache2 apm atlas avi berkdb bitmap-fonts blender-game bonobo cdr crypt cups curl dba dga dvd dvdr dvdread eds emboss encode esd evo fam flac foomaticdb fortran gd gd-external gdbm gif glitz gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib java jpeg junit ldap libg++ libwww mad mikmod mmx mono motif mozilla mp3 mpeg mysql ncurses nls nptl offensive ogg oggvorbis opengl oss pam pdflib perl php png postgres python quicktime readline ruby samba sdl session slang spell sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis xine xml xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS
@comment #6 : not really fontconfig related, you got a broken docbook catalog. You should probably rebuild some relevant docbook stuff. This bug itself is fixed.