On Sep 25, 2008, at 4:47 AM, Martin Costabel wrote:

> The xquartz X11 update packages have switched from
> /usr/X11/lib/X11/fonts/fonts.conf for the fontconfig conf file to
> /usr/X11/lib/X11/fontconfig/fonts.conf
>
> Don't ask me why, probably because of a general "backward  
> comaptibility
> is so boring" attitude. See the thread from
> <http://lists.macosforge.org/pipermail/xquartz-dev/2008-September/001064.html 
> >
> to
> <http://lists.macosforge.org/pipermail/xquartz-dev/2008-September/001072.html 
> >
> on the xquartz-dev mailing list.
>
> The change happened already several months ago, I think in
> xquartz-2.2.0. And since Fink is now recommending to install the  
> xquartz
> updates as a cure to the incompatibilities between Apple's stock X11  
> and
> Apple's stock xcode tools, the fontconfig-path package needs to  
> adapt to
> this situation. Note that stock 10.5.5 X11 still uses the old  
> directory
> for fonts.conf.
>
> I don't know the fontconfig xml based lingo, so I don't know if the
> <include> directive in /sw/share/fontconfig-path/fontconfig-path.conf
> can be conditionalized on the existence of one fonts.conf file or
> another. It is probably easier to do this in a PostInst script.
>

Since the package uses the profile.d mechanism, perhaps it might be  
easier to have two versions of the conf file and to do the  
conditionals in /sw/etc/profile.d/fontconfig-path.(c)sh to set  
FONTCONFIG_FILE to the appropriate place for the user's X11.

> In any case, the current situation is broken. If you run any  
> executable
> that uses X11 fonts and fontconfig on an xquartz-updated X11
> installation, you get
>
> Fontconfig error: Cannot load config file
> "/usr/X11/lib/X11/fonts/fonts.conf"
>
> and the fonts are not loaded.
>
> -- 
> Martin
>
>

Also of note:  this error gave me a segfault while building lilypond.   
Hacking fontconfig-path.conf to point to the right place fixed that.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to