Subject: Re: CVS commit: pkgsrc/devel/glib2
To: None <tech-pkg@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 10/30/2003 10:39:33
To pkgsrc-changes@NetBSD.org on Thu, 30 Oct 2003, Mark Davies wrote:

> > Log Message:
> > add --with-libiconv=yes to CONFIGURE_ARGS.  This makes sure that the
> > USE_GNU_ICONV is correctly set on systems which need the pkgsrc libiconv.
>
> But I think breaks systems that don't need the pkgsrc libiconv.
>
>  checking for libiconv_open in -liconv... no
>  configure: error: *** No iconv() implementation found in C library or libiconv
>  *** Error code 1

Yes, I don't agree we should force use of -liconv. I use pkgsrc on glibc
systems. I don't use libiconv and I don't want to install libiconv
(because glibc already provides it).

My converters/libiconv/buildlink2.mk is customized; one of the
few extra lines I added is:
CONFIGURE_ENV+= ac_cv_have_decl__libiconv_version=no

I had same error as above when building glib2:

 checking for libiconv_open in -liconv... no
 configure: error: *** No iconv() implementation found in C library or libiconv

configure:4488: checking for libiconv_open in -liconv
configure:4519: gcc -o conftest -O2 -I/usr/include   -I/usr/include
-L/usr/lib -Wl,-R/usr/lib conftest.c -liconv   >&5
/usr/bin/ld: cannot find -liconv

> Need to wrap the line with a '.if ${_NEED_ICONV} == "YES"' except that thats
> not a 'public' variable.

Another suggestion is to set the CONFIGURE_ARGS is the
converters/libiconv/buildlink2.mk file itself. A few buildlink2.mk files
have examples. Although, I don't know if all the ./configure scripts
for other packages that use libiconv will use that --with-libiconv=yes.
Maybe someone can check.

   Jeremy C. Reed
   http://www.reedmedia.net/


p.s. I also don't want gettext-lib. I have patched my pkgsrc some to
never allow it. I forced gettext to build and install without it. I need
to share the patches to see if I can get them integrated as options.