Subject: devel/gdb6/Makefile locale patch (Re: Correct location of .mo files? locales?)
To: Jeremy C. Reed <reed@reedmedia.net>
From: Jake Kupersmith <jakerosoft@gmail.com>
List: pkgsrc-users
Date: 10/18/2006 00:58:15
Thanks for your help!  This patch installs them in the correct location.

--- devel/gdb6/Makefile.orig  2006-10-17 19:57:24.000000000 -0400
+++ devel/gdb6/Makefile 2006-10-17 19:51:47.000000000 -0400
@@ -16,6 +16,7 @@
 USE_TOOLS+=            gmake makeinfo msgfmt
 USE_LIBTOOL=           yes
 USE_PKGLOCALEDIR=      yes
+REPLACE_LOCALEDIR_PATTERNS=    Make-in
 GNU_CONFIGURE=         yes
 CONFIGURE_ARGS+=       --libdir=${PREFIX}/lib/gdb6
 CONFIGURE_ARGS+=       --includedir=${PREFIX}/include/gdb6


On 10/17/06, Jeremy C. Reed <reed@reedmedia.net> wrote:
> > 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.
>