Bug#48120: gconv-modules would not be loaded properly when setgid
Package: gconv-modules
Version: 2.1.2-5
Severity: important
In debian-users (for Japense) mailing-list, someone found
that gconv-modules would not be loaded if it was setgid program.
For examples, `LANG=ja_JP.eucJP /usr/games/same-gnome'
(in gnome-same-gnome package) would not show any menu strings
(of course, it should be Japanese).
It can be fixed by adding /usr/lib/gconv to /etc/ld.so.conf.
If /usr/lib/gconv in /etc/ld.so.conf, `LANG=ja_JP.eucJP /usr/games/same-gnome'
would works fine with Japanese menu strings.
However, I suspect this is bugs of glibc/icongdata/Makefile.
In this file, LDFLAGS for libJIS.so (and libKSC,libGB,libCNS) are
`-Wl,-soname,$(@F)' only, however others (such as EUC-JP.so) are
`-Wl,-rpath,'$$ORIGIN''. When we checked same-gnome with strace,
it find "EUC-JP.so", but failed to find "libJIS.so". So, it might be
fixed by adding -rpath,'$$ORIGIN' for LDFLAGS for libJIS.so,libKSC.so,
libGB.so and libCNS.so, but I've not yet checked it.
Best regards,
Fumitoshi UKAI
Reply to: