Subject: Re: CVS commit: pkgsrc/converters/libiconv
To: None <tech-pkg@NetBSD.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 04/27/2004 00:13:26
On Mon, 26 Apr 2004, Johnny C. Lam wrote:

> 	pkgsrc/converters/libiconv: builtin.mk
>
> Log Message:
> Do previous in a different way.  We want USE_GNU_ICONV to always use
> a GNU libiconv, whether it be builtin or not, and PREFER_{NATIVE,PKGSRC}
> can be used to decide which iconv we use if USE_GNU_ICONV isn't defined.
> On NetBSD, the native iconv implementation (if it exists) is considered
> GNUish enough unless USE_GNU_ICONV is explicitly defined.

I don't want converters/libiconv ever installed under Linux. What can I
do?

My Makefile has:

.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
# don't use PKG_SKIP_REASON yet so we can make sure the buildlinking is correct
PKG_FAIL_REASON+=       "${PKGNAME} is not needed for Linux; it is
included in GNU libc."
.endif

What can we do for the converters/libiconv/builtin.mk so I can choose to
never use libiconv package even if USE_GNU_ICONV is defined?

I think I provided to this list before a patch for this. It could check
/usr/include/iconv.h for "This file is part of the GNU C Library."

(Most Linux distributions don't even have any libiconv package. It is not
needed.)

   Jeremy C. Reed
   http://www.bsdnewsletter.com/