Subject: Re: Correct location of .mo files? locales?
To: Jake Kupersmith <jakerosoft@gmail.com>
From: Jeremy C. Reed <reed@reedmedia.net>
List: pkgsrc-users
Date: 10/17/2006 19:24:06
> Where is the correct location to install .mo files?
> 
> On my system (Solaris 10 x86) they are installed into /usr/local/lib/locale .
> 
> devel/bison and devel/gdb6 both install their's in
> /usr/local/share/locale .  Is this a problem?
> 
> even stranger, gdb6's PLIST indicated the files will be installed in
> share/locale,  yet it fails during the install phase because it thinks
> they go in lib/locale...
> 
> devel/gdb6# cat PLIST | grep locale
> ...
> share/locale/da/LC_MESSAGES/bfd.mo
> share/locale/da/LC_MESSAGES/opcodes.mo
> share/locale/de/LC_MESSAGES/opcodes.mo
> share/locale/es/LC_MESSAGES/bfd.mo
> ...
> devel/gdb6# bmake install
> ...
> ===========================================================================
> pkg_create: can't stat `/usr/local/lib/locale/da/LC_MESSAGES/bfd.mo'
...

Try setting USE_PKGLOCALEDIR=YES in your Makefile.

Not sure where documented. See PKGLOCALEDIR in pkgsrc/mk/platform/SunOS.mk 
for default location. And see mk/configure/replace-localedir.mk and other 
code in mk/ directory for behind the scenes.