Subject: pkg/19051: freetype2 package versus builtin causes libtool failure
To: None <gnats-bugs@gnats.netbsd.org>
From: None <tjg@star.le.ac.uk>
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
>Closed-Date:
>Last-Modified:
>Originator: Tim Goodwin
>Release: NetBSD 1.6
>Organization:
University of Leicester
>Environment:
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
>Description:
With the latest CVS pkgsrc tree, packages that depend on freetype2
(e.g. devel/bonobo) won't build due to missing libfreetype.la. As
far as I can see, the problem is that graphics/freetype2/buildlink2.mk
elects to use /usr/X11R6/lib/libfreetype.* instead of
/usr/pkg/lib/libfreetype.*. Since there is no
/usr/X11R6/lib/libfreetype.la, libtool gets upset and the build
fails.
>How-To-Repeat:
cd /usr/pkgsrc-current/devel/bonobo
make
... 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/libbonobo.la ../bonobo/libbonobox.la -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/libfreetype.la'
gmake[2]: *** [bonobo-moniker-gunzip] Error 1
gmake[2]: Leaving directory `/usr/pkgsrc-current/devel/bonobo/work/bonobo-1.0.18/monikers'
>Fix:
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/buildlink2.mk. Obviously, this is not a real
fix!
--- buildlink2.mk 2002/10/19 19:05:39 1.7
+++ buildlink2.mk 2002/11/14 15:43:35
@@ -21,6 +21,9 @@
_IS_BUILTIN_FREETYPE2= 0
.endif
+# tjg
+_IS_BUILTIN_FREETYPE2= 0
+
.if !empty(_REQUIRE_BUILTIN_FREETYPE2:M[yY][eE][sS])
_NEED_FREETYPE2= NO
.else
>Release-Note:
>Audit-Trail:
>Unformatted: