There are two related problems I want to address here. 1. The fontconfig ebuild does not need to patch fonts.conf.in. Instead of epatch ${PPREFIX}-2.2-local_fontdir-r1.patch this can be done: econf.... \ --with-add-fonts="/usr/local/share/fonts,/usr/X11R6/lib/X11/fonts/75dpi,/usr/X11R6/lib/X11/fonts/100dpi" \ --with-default-fonts="/usr/share/fonts" 2. The current default fonts.conf installed by fontconfig includes a bunch of directories to search for fonts. However, since (1) fontconfig recurses the directories, (2) all fonts go in /usr/share/fonts (and not in /usr/X11R6/....), and (3) /usr/share/fonts is already in that list, the directory list can be shortened to /usr/share/fonts, /usr/local/share/fonts and ~/.fonts only. In other words, the above suggestion becomes: - remove ${PPREFIX}-2.2-local_fontdir-r1.patch - use this instead: econf ... \ --with-add-fonts="/usr/local/share/fonts" \ --with-default-fonts="/usr/share/fonts" || die The second suggestion depends on whether or not the stable xorg for all architectures is a version that has already migrated from /usr/X11R6 to /usr, but it would be nice to keep that in mind.
One way or the other, it's all a bit moot. Patch or a config directive, i just kept to the patch because it still applied. Also it is not quite the time to skip the old X11 paths just yet imo, it doesn't hurt to leave them around anyway.