The following reply was made to PR pkg/48919; it has been noted by GNATS.
From: David Sainty <dave%dtsp.co.nz@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: sighoya%gmail.com@localhost, pkg-manager%netbsd.org@localhost,
gnats-admin%netbsd.org@localhost,
pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/48919: fonts/fontconfig fails to build
Date: Wed, 18 Jun 2014 10:48:44 +1200
On 18/06/14 01:45, sighoya%gmail.com@localhost wrote:
>> Number: 48919
>> Category: pkg
>> Synopsis: fonts/fontconfig fails to build
>> Confidential: no
>> Severity: serious
>> Priority: medium
>> Responsible: pkg-manager
>> State: open
>> Class: sw-bug
>> Submitter-Id: net
>> Arrival-Date: Tue Jun 17 13:45:00 +0000 2014
>> Originator: Philip
>> Release: current
>> Organization:
>> Environment:
> System: Linux phantom 3.14.6-1-ARCH #1 SMP PREEMPT Sun Jun 8 10:08:38 CEST
2014 x86_64 GNU/Linux
>
>> Description:
> checking for FREETYPE... no
> configure: error: Package requirements (freetype2) were not met:
>
> Package 'libpng', required by 'freetype2', not found
>
> Consider adjusting the PKG_CONFIG_PATH environment variable if you
> installed software in a non-standard prefix.
>
> Alternatively, you may set the environment variables FREETYPE_CFLAGS
> and FREETYPE_LIBS to avoid the need to call pkg-config.
> See the pkg-config man page for more details.
> *** Error code 1
>
> ... But I have png and freetype2 installed:
> pkg_info | grep 'freetype2\|png'
> freetype2-2.5.3nb1 Font rendering engine and library API
> png-1.6.12 Library for manipulating PNG images
>
>> How-To-Repeat:
> cd $PKGSRC/fonts/fontconfig && bmake
>
"png" is a non-default option to "freetype2". Is it possible that you
built freetype2 without that option, and then changed your defaults
afterwards?
I.e. does the output from:
pkg_info -Q PKG_OPTIONS freetype2
... include "png"?