Subject: Re: libiconv breaks on Debian 3.1
To: Georg Schwarz <georg.schwarz@freenet.de>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 03/07/2005 06:58:19
On Mon, 7 Mar 2005, Georg Schwarz wrote:

> ===> Extracting for gettext-runtime-0.14.1
> ===> Required installed package pkg_install-info-[0-9]*: pkg_install-info-4.5nb3 found
> ===> Required package libiconv>=1.9.1nb4: NOT found
> ===> Verifying reinstall for ../../converters/libiconv
> ===> libiconv-1.9.2nb1 is not needed for Linux; it is included in GNU libc.
> *** Error code 1

Also try this. (Another patch from my pkgsrc that I need to commit.)

Index: converters/libiconv/builtin.mk
===================================================================
RCS file: /cvsroot/pkgsrc/converters/libiconv/builtin.mk,v
retrieving revision 1.6
diff -b -u -r1.6 builtin.mk
--- converters/libiconv/builtin.mk	28 Aug 2004 06:05:31 -0000	1.6
+++ converters/libiconv/builtin.mk	7 Mar 2005 14:57:12 -0000
@@ -55,6 +55,15 @@
 BUILDLINK_VARS+=	IS_BUILTIN.iconv
 .endif	# IS_BUILTIN.iconv

+.if (${OPSYS} == "Linux") && exists(${_ICONV_H})
+USE_BUILTIN.iconv!=	\
+	if ${GREP} -q "This file is part of the GNU C Library" ${_ICONV_H}; then \
+		${ECHO} "yes";						\
+	else								\
+		${ECHO} "no";						\
+	fi
+.endif
+
 .if !defined(USE_BUILTIN.iconv)
 USE_BUILTIN.iconv?=	${IS_BUILTIN.iconv}
 PREFER.iconv?=		pkgsrc

 Jeremy C. Reed

 	  	 	 BSD News, BSD tutorials, BSD links
	  	 	 http://www.bsdnewsletter.com/