Subject: Re: buildlink problem? (libiconv.la: No such file or directory)
To: Sebastian P. <sebastian-p@gmx.net>
From: Johnny C. Lam <jlam@netbsd.org>
List: tech-pkg
Date: 06/29/2003 19:50:47
On Sun, Jun 29, 2003 at 01:01:35PM +0200, Sebastian P. wrote:
> On Sunday 29 June 2003 01:44, you wrote:
> > :|Hmm,
> > :|
> > :|I didn't see the Linux part, please excuse my lack of reading.  Your
> > :| problem is still probably that /usr/include/iconv.h exists and you have
> 
> yes, you're right, /usr/include/iconv.h exists, but there is no 
> /usr/lib/libiconv.*. to catch up this case i've changed the libiconv 
> buildlink2.mk file to check for /usr/include/iconv.h _and_ 
> /usr/lib/libiconv.so which works fine for me then.
> 
> --- buildlink2.mk       2003-06-29 12:57:58.000000000 +0200
> +++ buildlink2.mk_new   2003-06-29 12:51:10.000000000 +0200
> @@ -12,7 +12,7 @@
>  _NEED_ICONV=           YES
>  _BLNK_LIBICONV_FOUND=  NO
>  .else
> -.  if exists(/usr/include/iconv.h)
> +.  if exists(/usr/include/iconv.h) && exists(/usr/lib/libiconv.so)
>  _NEED_ICONV=           NO
>  _BLNK_LIBICONV_LIST!=  ${ECHO} /usr/lib/libiconv.*
>  .    if ${_BLNK_LIBICONV_LIST} != "/usr/lib/libiconv.*"

This fix is incorrect because it breaks a lot of the remainder of the
buildlink2.mk file.  I've committed a change to this file that may fix
your problem.  Please update your pkgsrc and check that you have version
1.7 of libiconv/buildlink2.mk.

> > :| my problem #2, with USE_GNU_ICONV not getting propagated.  As a
> > :| workaround I defined USE_GNU_ICONV=yes in
> > :| /usr/pkgsrc/devel/glib2/buildlink2.mk:
> 
> what is USE_GNU_ICONV for? my linux bos has only the pkgsrc version 
> installed...

It is used to force the use of pkgsrc/converters/libiconv instead of
possibly using the libiconv.* in /usr/lib.

	Cheers,

	-- Johnny Lam <jlam@netbsd.org>