NetBSD Problem Report #47289

From Wolfgang.Stukenbrock@nagler-company.com  Thu Dec  6 23:18:26 2012
Return-Path: <Wolfgang.Stukenbrock@nagler-company.com>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 26F7D63EA46
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  6 Dec 2012 23:18:26 +0000 (UTC)
Message-Id: <20121206160947.70A9E123B8D@test-s0.nagler-company.com>
Date: Thu,  6 Dec 2012 17:09:47 +0100 (CET)
From: Wolfgang.Stukenbrock@nagler-company.com
Reply-To: Wolfgang.Stukenbrock@nagler-company.com
To: gnats-bugs@gnats.NetBSD.org
Subject: pkgsrc-2012Q2 fontconfig failed to setup correct search paths
X-Send-Pr-Version: 3.95

>Number:         47289
>Category:       pkg
>Synopsis:       pkgsrc-2012Q2 fontconfig failed to setup correct search paths
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 06 23:20:05 +0000 2012
>Last-Modified:  Fri Dec 07 18:00:09 +0000 2012
>Originator:     Wolfgang Stukenbrock
>Release:        NetBSD 5.1.2
>Organization:
Dr. Nagler & Company GmbH
>Environment:


System: NetBSD test-s0 5.1.2 NetBSD 5.1.2 (NSW-WS) #1: Thu Dec 6 12:56:04 CET 2012 wgstuken@test-s0:/usr/src/sys/arch/amd64/compile/NSW-WS amd64
Architecture: x86_64
Machine: amd64
>Description:
	For unknown reasons there are only font-paths to /usr/pkg/...
	in the file /usr/pkg/etc/fontconfig/fonts.conf.
	But this file seems to be examined by (I think it is libpango in) firefox
	to get the correct fonts.
	The "default" fonts in /usr/X11R7/lib/X11/fonts are not found.
	Additional manual intervention is required to make it usable.
	Relevant contents of /usr/pkg/etc/fontconfig/fonts.conf:
<!-- Font directory list -->

        <dir>/usr/pkg/lib/X11/fonts</dir>
        <dir>/usr/pkg/share/fonts/urw</dir> <dir>/usr/pkg/share/ghostscript/fonts</dir>
        <dir>~/.fonts</dir>

	This was not nessesary in the past where firefox will come up without manual
	modification of /usr/pkg/etc/fontconfig/fonts.conf.
	Contents on netbsd-4.0 with pkgsrc from 2008:
<!-- Font directory list -->

        <dir>/usr/pkg/lib/X11/fonts</dir>
        <dir>/usr/X11R6/lib/X11/fonts</dir> <dir>/usr/pkg/share/ghostscript/fonts</dir>
        <dir>~/.fonts</dir>



>How-To-Repeat:
	Setup a fresh 5.1.2 and install firefox from pkgsrc-2012Q2.
	firefox will dump core during startup after libpango complaining
	about not found fonts.
	Output in terminal:
(xulrunner-bin:17669): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
Segmentation fault (core dumped)

>Fix:
	Add /usr/X11R7/lib/X11/fonts as path to fonts.conf file during installation.
	(or the standard font path of the underlying system ...)
	After adding this path, firefox will start normaly.

>Audit-Trail:
From: Wolfgang Stukenbrock <wolfgang.stukenbrock@nagler-company.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/47289: pkgsrc-2012Q2 fontconfig failed to setup correct search paths
Date: Fri, 07 Dec 2012 09:32:03 +0100

 Hi again,

 I've done some further analyses.

 The "problem" happens due to the fact, that I've "X11_TYPE=modular" in 
 /etc/mk.conf.

 This has been set by accident ...

 x11/modular-xorg-server is installed on this system - also a relict from 
   the past where I've problems with the xfree-version.
 But why is firefox, build from the souce, unable to find the fonts?
 lots of "fonts/font-..." packages are installed on the system.

 Even if there is this open question, from my side I've found the source 
 of the problem and if there is an explanation why firefox does not find 
 the fonts (and crash), this PR can be closed.

 sorry for the noise here

 W. Stukenbrock


 gnats-admin@NetBSD.org wrote:

 > Thank you very much for your problem report.
 > It has the internal identification `pkg/47289'.
 > The individual assigned to look at your
 > report is: pkg-manager. 
 > 
 > 
 >>Category:       pkg
 >>Responsible:    pkg-manager
 >>Synopsis:       pkgsrc-2012Q2 fontconfig failed to setup correct search paths
 >>Arrival-Date:   Thu Dec 06 23:20:05 +0000 2012
 >>
 > 


From: "Jeremy C. Reed" <reed@reedmedia.net>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: pkg/47289: pkgsrc-2012Q2 fontconfig failed to setup correct
 search paths
Date: Fri, 7 Dec 2012 11:56:12 -0600 (CST)

 >  Even if there is this open question, from my side I've found the source 
 >  of the problem and if there is an explanation why firefox does not find 
 >  the fonts (and crash), this PR can be closed.

 This may be the same problem I have:

 http://mail-index.netbsd.org/netbsd-users/2012/11/29/msg012064.html

 (I will reply to that thread with more details.)

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.