Subject: Re: gimp2 on NetBSD 2.0?
To: None <tech-pkg@netbsd.org>
From: Christoph Badura <bad@bsd.de>
List: tech-pkg
Date: 04/22/2005 11:45:27
On Fri, Apr 22, 2005 at 10:26:57AM +0200, Juan RP wrote:
> On Fri, 22 Apr 2005 09:46:56 +0200
> Christoph Badura <bad@bsd.de> wrote:
> 
> > Does anyone have gimp2 working on a 2.0-ish system?

> > And, of course, it is right.  I have /usr/X11R6/lib/libfontconfig.so.1.0
> > from the fontconfig-1.0.2 of 2.0's xsrc and /usr/pkg/lib/
> > libfontconfig.so.1.0.4 from pkgsrc's fontconfig-2.3.0 on the system.

> Are you sure you don't have defined PREFER_NATIVE+=fontconfig
> and USE_BUILTIN.fontconfig=no is defined in gimp/Makefile?

Yes, I don't have PREFER_NATIVE defined at all.

And rev. 1.115 of gimp/Makefile (which is the then current Makefile) has:

USE_BUILTIN.fontconfig=		    no
BUILDLINK_DEPENDS.fontconfig+=	    fontconfig>=2.2.0

However, ldd on gimp produces:

ldd /usr/pkg/bin/gimp | grep fontconfig
         -lfontconfig.1 => /usr/pkg/lib/libfontconfig.so.1
	 -lfontconfig.1 => /usr/X11R6/lib/libfontconfig.so.1

Temporarily moving libfontconfig.so.1 out of the way in X11R6/lib makes
gimp start.

Maybe we can work around that by setting the library search path
to /usr/pkg/lib:/usr/X11R6/lib.

--chris