Subject: pkg/19051: freetype2 package versus builtin causes libtool failure
To: None <>
From: None <>
List: netbsd-bugs
Date: 11/14/2002 15:47:04
>Number:         19051
>Category:       pkg
>Synopsis:       freetype2 package versus builtin causes libtool failure
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 14 07:47:01 PST 2002
>Originator:     Tim Goodwin
>Release:        NetBSD 1.6
University of Leicester
System: NetBSD rocinante 1.6 NetBSD 1.6 (GENERIC) #4: Thu Sep 19 11:04:22 BST 2002 tjg@rocinante:/usr/obj/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
With the latest CVS pkgsrc tree, packages that depend on freetype2
(e.g. devel/bonobo) won't build due to missing  As
far as I can see, the problem is that graphics/freetype2/
elects to use /usr/X11R6/lib/libfreetype.* instead of
/usr/pkg/lib/libfreetype.*.  Since there is no
/usr/X11R6/lib/, libtool gets upset and the build
cd /usr/pkgsrc-current/devel/bonobo
... eventually fails with...
/bin/sh ../libtool --mode=link cc  -O2 -I/usr/pkg/include -I/usr/X11R6/include -Wall -Wunused  -Wl,-R/usr/X11R6/lib -L/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -o bonobo-moniker-gunzip  bonobo-moniker-gunzip.o ../bonobo/ ../bonobo/ -L/usr/X11R6/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -Wl,-R/usr/X11R6/lib -loaf -lORBitCosNaming -lORBit -lIIOP -lwrap -lORBitutil -lgnomeprint -lgnomeui -lgdk_imlib -lSM -lICE -lgnome -lgnomesupport -lesd -lossaudio -laudiofile -lgdk_pixbuf -lgtk -lgdk -lgmodule -lglib -lintl -lXi -lXext -lX11 -lart_lgpl -lm -lxml -lz -lfreetype -lintl
libtool: link: cannot find the library `/usr/pkgsrc-current/devel/bonobo/work/.buildlink/lib/'
gmake[2]: *** [bonobo-moniker-gunzip] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc-current/devel/bonobo/work/bonobo-1.0.18/monikers'
I've worked around the problem by forcing the use of the freetype2
package (as opposed to the builtin freetype2), with this patch to
graphics/freetyp2/  Obviously, this is not a real

---       2002/10/19 19:05:39     1.7
+++       2002/11/14 15:43:35
@@ -21,6 +21,9 @@
+# tjg
 .if !empty(_REQUIRE_BUILTIN_FREETYPE2:M[yY][eE][sS])