pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/converters/libiconv By default, assume that the native...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/961e88143757
branches:  trunk
changeset: 476140:961e88143757
user:      reed <reed%pkgsrc.org@localhost>
date:      Fri Jun 04 05:21:14 2004 +0000

description:
By default, assume that the native iconv on Linux systems using
GLIBC supports GNU libiconv's API. So don't depend on pkgsrc's
libiconv for it. This is normal: most other Linux distros don't
provide a libiconv package.

This was discussed on tech-pkg list over past two months. It has
helped a few users under Linux where they had some problems with
conflicts with their working iconv() support provided with libc
and the libiconv package.

This was okayed by maintainer, Rene Hexel.

This still needs some improvement. Some packages still try to
force libiconv usage even though not needed.

diffstat:

 converters/libiconv/builtin.mk |  17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r c6fa613ee656 -r 961e88143757 converters/libiconv/builtin.mk
--- a/converters/libiconv/builtin.mk    Fri Jun 04 03:38:29 2004 +0000
+++ b/converters/libiconv/builtin.mk    Fri Jun 04 05:21:14 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: builtin.mk,v 1.4 2004/04/26 04:53:23 jlam Exp $
+# $NetBSD: builtin.mk,v 1.5 2004/06/04 05:21:14 reed Exp $
 
 .if !defined(_LIBICONV_FOUND)
 _LIBICONV_FOUND!=                                                      \
@@ -87,6 +87,21 @@
 .        endif
 .      endfor
 .    endif
+# XXX
+# XXX By default, assume that the native iconv on Linux systems using GLIBC
+# XXX supports GNU libiconv's API.
+# XXX
+# XXX Determine we are using the builtin iconv regardless of whether it's
+# XXX truly GNU libiconv.
+# XXX
+.    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
 .  endif
 
 .  if defined(USE_GNU_ICONV)



Home | Main Index | Thread Index | Old Index