Subject: Re: fontconfig woes
To: None <tech-pkg@netbsd.org>
From: James K. Lowden <jklowden@schemamania.org>
List: tech-pkg
Date: 11/01/2003 14:34:54
On Tue, 28 Oct 2003, "Jeremy C. Reed" <reed@reedmedia.net> wrote:
> On Tue, 28 Oct 2003, James K.Lowden wrote:
> 
> > /bin/sh ../libtool
> >         --mode=compile cc
> >         -DHAVE_CONFIG_H
> >         -I.
> >         -I.
> >         -I..
> >         -I/usr/X11R6/include/freetype2
> 
> Notice above is "/usr/X11R6" but your pkg-config showed it in
> "/usr/pkg".
> 
> Do you have two freetype-config tools in your path?

Er, yes....  Thanks for taking an interest, Jeremy.  Sorry it took so long
to get back to you.  

I have one file that came in xcomp.tgz with i386 NetBSD 1.6 (which is what
I'm running, with its original XFree86, version 3.something).  The other
is from pkgsrc:  

$ for FULL in `locate freetype-config` 
  do 	DIR=`dirname $FULL`
	for D in `showpath` 
	do	if [ "${DIR}" = "${D}" ]
			then echo $FULL
		fi
	done
  done
/usr/X11R6/bin/freetype-config
/usr/pkg/bin/freetype-config

$ showpath	# replaces ':' with newline
/bin
/sbin
/usr/bin
/usr/sbin
/usr/X11R6/bin
/usr/pkg/bin
/usr/pkg/sbin
/usr/games
/usr/local/bin
/usr/local/sbin

$ /usr/X11R6/bin/freetype-config --cflags; \
    /usr/pkg/bin/freetype-config --cflags  
-I/usr/local/include -I/usr/pkg/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include -I/usr/pkg/include/freetype2

> (Earlier today I commited a patch for freetype2/buildlink2.mk to fix
this.)

sup(1) picked up your changes, and today it compiled cleanly.  So,
thanks++!

Regards, 

--jkl