Subject: Correct location of .mo files? locales?
To: None <pkgsrc-users@netbsd.org>
From: Jake Kupersmith <jakerosoft@gmail.com>
List: pkgsrc-users
Date: 10/17/2006 18:24:36
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'
pkg_create: can't stat `/usr/local/lib/locale/da/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/de/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/es/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/es/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/fr/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/fr/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/id/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/ja/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/nl/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/pt_BR/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/ro/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/ro/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/sv/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/sv/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/tr/LC_MESSAGES/bfd.mo'
pkg_create: can't stat `/usr/local/lib/locale/tr/LC_MESSAGES/opcodes.mo'
pkg_create: can't stat `/usr/local/lib/locale/zh_CN/LC_MESSAGES/bfd.mo'
=> Registering installation for gdb-6.2.1nb3
pkg_admin: gdb-6.2.1nb3: File
`/usr/local/lib/locale/da/LC_MESSAGES/bfd.mo' is in +CONTENTS but not
on filesystem!
pkg_admin: gdb-6.2.1nb3: File
`/usr/local/lib/locale/da/LC_MESSAGES/opcodes.mo' is in +CONTENTS but
not on filesystem!
pkg_admin: gdb-6.2.1nb3: File
`/usr/local/lib/locale/de/LC_MESSAGES/opcodes.mo' is in +CONTENTS but
not on filesystem!
pkg_admin: gdb-6.2.1nb3: File
`/usr/local/lib/locale/es/LC_MESSAGES/bfd.mo' is in +CONTENTS but not
on filesystem!
...