Subject: Re: Choosing pkgsrc's version of freetype2 and friends over XFree's
To: Marc Recht <recht@netbsd.org>
From: Thomas Klausner <wiz@NetBSD.org>
List: tech-pkg
Date: 01/29/2004 12:16:28
On Tue, Jan 27, 2004 at 02:58:09AM +0100, Marc Recht wrote:
> For some time now we have problems in pkgsrc with regard to libs that are 
> also part of XFree86, but in older versions. Some pkgs in pkgsrc are happy 
> with XFree's versions while others, like Xft2/pango, need newer ones. In 
> some cases this leads to libraries get linked to both, the pkgsrc and the 
> XFree version.
> 
> For example:
> 
> # ldd /usr/pkg/lib/libgtk-x11-2.0.so.200.4|grep Xrender
> -lXrender.1 => /usr/X11R6/lib/libXrender.so.1
> -lXrender.1 => /usr/pkg/lib/libXrender.so.
> 
> and:
> 
> # ldd /usr/pkg/qt3/lib/libqt-mt.so.3.2 | grep Xrender
> -lXrender.1 => /usr/pkg/lib/libXrender.so.1
> -lXrender.1 => /usr/X11R6/lib/libXrender.so.1
> 
> I've made some patches (attached) to always select the pkgsrc versions to 
> fix those issues. I'm running with those patches for weeks now with any 
> problems.

Are any of the libraries in /usr/X11R6 linked against the ones
you want to override? That could make problems.

Otherwise I think it's a good idea, if it works :)
 Thomas