Subject: pkg/30690: xorg fonts are not found by linux emulation's fc-cache
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <smb@cs.columbia.edu>
List: pkgsrc-bugs
Date: 07/08/2005 04:03:00
>Number:         30690
>Category:       pkg
>Synopsis:       xorg fonts are not found by linux emulation's fc-cache
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jul 08 04:03:00 +0000 2005
>Originator:     Steven M. Bellovin
>Release:        NetBSD 3.99.7
>Organization:
Department of Computer Science, Columbia University
>Environment:
	
	
System: NetBSD berkshire.machshav.com 3.99.7 NetBSD 3.99.7 (BERKSHIRE) #1: Fri Jul 1 15:56:08 EDT 2005 smb@berkshire.machshav.com:/usr/BUILD/obj/sys/arch/i386/compile/BERKSHIRE i386
Architecture: i386
Machine: i386
>Description:
	The linux emulation setup has its own font cache, in package
	suse_fontconfig.  This doesn't work properly if xorg is used,
	since it doesn't include /usr/pkg/xorg/lib/X11/fonts in the
	default setup.
>How-To-Repeat:
	Install acroread7.  Fix the gdk-pixbuf problem -- a separate
	issue -- and you'll find that it complains about not having any
	fonts.
>Fix:
	As a work-around, edit /usr/pkg/emul/linux/etc/fonts/local.conf
	and add

		<dir>/usr/pkg/xorg/lib/X11/fonts</dir>

	right after the <fontconfig> line.  Then run 
	/usr/pkg/emul/linux/usr/bin/fc-cache

	A proper fix would be to test for the existence of
	xorg at suse_fontconfig install time and change the
	fonts.conf file accordingly.  Alternatively, always
	add the extra directory; given the caching mechanism,
	the extra run-time overhead should be minimal, I suspect.

>Unformatted: