Subject: pkg/22298: incorrect libiconv buildlink2.mk
To: None <gnats-bugs@gnats.netbsd.org>
From: None <mlh@goathill.org>
List: netbsd-bugs
Date: 07/29/2003 16:58:43
>Number:         22298
>Category:       pkg
>Synopsis:       abiword build can't locate libiconv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jul 29 22:00:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     MLH
>Release:        NetBSD 1.6U
>Organization:
none
	
>Environment:
	
	
System: NetBSD tiamat.goathill.org 1.6U NetBSD 1.6U (APMLM) #0: Mon Jun 23 14:44:36 CDT 2003 kent@enki:/opt/obj/usr/src/sys/arch/i386/compile/APMLM i386
Architecture: i386
Machine: i386
>Description:
editors/abiword fails to build due to incorrect libiconv buildlink2.mk

===> Extracting for abiword-personal-1.0.5nb2
===> Required installed package ispell-base-[0-9]*: ispell-base-3.1.20nb2 found
===> Required installed package psiconv>=0.6.1: psiconv-0.8.2nb4 found
===> Required installed package png>=1.2.4: png-1.2.5nb2 found
===> Required installed package expat>=1.95.2: expat-1.95.6nb1 found
===> Required installed package gtk+>=1.2.10nb5: gtk+-1.2.10nb5 found
===> Required installed package glib>=1.2.10nb5: glib-1.2.10nb5 found
===> Required installed package gmake>=3.78: gmake-3.80nb2 found
===> Required installed package x11-links>=0.12: x11-links-0.12 found
===> Patching for abiword-personal-1.0.5nb2
===> Applying pkgsrc patches for abiword-personal-1.0.5nb2
===> Buildlinking for abiword-personal-1.0.5nb2
===> Configuring for abiword-personal-1.0.5nb2
...
checking for unistd.h... yes
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
configure: error: (usable) libiconv not found
*** Error code 1

Stop.

>How-To-Repeat:
attempt to build abiword in pkgsrc

>Fix:
(Don't hardcode '/usr/pkg' - only for demonstrational purposes)

Index: buildlink2.mk
===================================================================
RCS file: /cvsroot/pkgsrc/converters/libiconv/buildlink2.mk,v
retrieving revision 1.8
diff -b -u -r1.8 buildlink2.mk
--- buildlink2.mk	2003/07/13 13:32:30	1.8
+++ buildlink2.mk	2003/07/29 21:55:00
@@ -41,7 +41,7 @@
 BUILDLINK_LIBICONV_LDADD=	-Wl,${RPATH_FLAG}${BUILDLINK_PREFIX.iconv}/lib
 BUILDLINK_LIBICONV_LDADD+=	${_BLNK_ICONV_LDFLAGS}
 .else
-BUILDLINK_PREFIX.iconv=		/usr
+BUILDLINK_PREFIX.iconv=		/usr/pkg
 .  if ${_BLNK_LIBICONV_FOUND} == "YES"
 _BLNK_ICONV_LDFLAGS=		-liconv
 .  else
>Release-Note:
>Audit-Trail:
>Unformatted: