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

Bug#598677: Add /usr/local/lib/gconv to GCONV_PATH



Package: libc6
Version: 2.11.2-6
Severity: wishlist

The eglibc sources are currently compiled with `GCONV_PATH` set to
`/usr/lib/gconv`. This means that `iconvconfig` and iconv operations only look
in `/usr/lib/gconv` for the `gconv-modules` file and actual gconv modules
(e.g.: `IBM901.so`).

I think that it would be helpful to be able to install gconv modules to
`/usr/local/lib/gconv`. This can be easily accomplished by making sure that the
value of `GCONV_PATH` is `/usr/lib/gconv:/usr/local/lib/gconv` during
compilation. eglibc and glibc sources can handle multiple directories in this
variable because `GCONV_PATH` is already split at colons. Here, for example, is
code from `libc/iconv/iconvconfig.c`:
  if (! nostdlib)
    {
      /* In any case also handle the standard directory.  */
      char *path = strdupa (GCONV_PATH), *tp = strsep (&path, ":");
      while (tp != NULL)
        {
          status |= handle_dir (tp);

          tp = strsep (&path, ":");
        }
    }



-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libc6 depends on:
ii  libc-bin                      2.11.2-6   Embedded GNU C Library: Binaries
ii  libgcc1                       1:4.4.4-17 GCC support library

Versions of packages libc6 recommends:
ii  libc6-i686                    2.11.2-6   Embedded GNU C Library: Shared lib

Versions of packages libc6 suggests:
ii  debconf [debconf-2.0]         1.5.35     Debian configuration management sy
pn  glibc-doc                     <none>     (no description available)
ii  locales                       2.11.2-6   Embedded GNU C Library: National L

-- debconf information excluded



Reply to: