Subject: gettext-lib/iconv continuing to be difficult
To: None <tech-pkg@netbsd.org>
From: Greg Troxel <gdt@ir.bbn.com>
List: tech-pkg
Date: 02/04/2004 13:06:33
I am continuing to have problems building some programs (e.g. mozilla).

I have devel/gettext-lib installed.

The essence of the situation seems to be that when buildlinking
happens e.g. for mozilla, the pkgsrc libintl is selected, but iconv is
not buildlinked in.

It may be that the base gettext is good enough for mozilla, but it
seems I get the pkgsrc/gnu version.

Also, it seems not 100% right that the buildlink file for gettext-lib
seems to know whether gettext needs iconv.  The real issue is whether
the _installed_ pkgsrc gettext needs it.

The problem might be that pkgsrc gettext is used if present, but that
iconv is only added if it is required to use pkgsrc gettext.

In the past, I've worked around this by removing gnu gettext, but it
seems some things actually need it.

I did this to force using GNU_GETTEXT and thus adding iconv, but I
know this isn't the right answer.

Index: buildlink2.mk
===================================================================
RCS file: /NETBSD-CVS/pkgsrc/devel/gettext-lib/buildlink2.mk,v
retrieving revision 1.25
diff -u -r1.25 buildlink2.mk
--- buildlink2.mk	15 Jan 2004 23:04:00 -0000	1.25
+++ buildlink2.mk	4 Feb 2004 16:36:58 -0000
@@ -26,7 +26,7 @@
 _GETTEXT_DEPENDS=	${BUILDLINK_DEPENDS.gettext}
 _NEED_GNU_GETTEXT!= \
 	if ${PKG_ADMIN} pmatch '${_GETTEXT_DEPENDS}' ${_GETTEXT_PKG}; then \
-		${ECHO} "NO";						\
+		${ECHO} "YES";						\
 	else								\
 		${ECHO} "YES";						\
 	fi