Subject: pkg/24130: textproc/grep fails to find msgfmt on Solaris (workaround)
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Allom <charlie@rubberduck.com>
List: netbsd-bugs
Date: 01/18/2004 02:34:39
>Number: 24130
>Category: pkg
>Synopsis: textproc/grep fails to find msgfmt on Solaris (workaround)
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 17 15:35:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Charlie Allom
>Release: SunOS 5.9
>Organization:
Eat Your Pets Ltd.
>Environment:
System: SunOS lazy 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2
Architecture: sun4
>Description:
on configure ....
checking for libintl.h... (cached) yes
checking for GNU gettext in libc... yes
checking for dcgettext... yes
checking for msgfmt... /usr/pkg/bin/msgfmt
checking for gmsgfmt... /usr/lib/gmsgfmt
checking for xgettext... /usr/pkg/bin/xgettext
found msgfmt program is not GNU msgfmt; ignore it
So you end up with GMSGFMT set to ":" instead of /usr/pkg/bin/msgfmt, which works.
Or worse you end up with this in the po/ directory = po/Makefile:GMSGFMT = PATH=../src:$$PATH :
and you get this nastiness on make ....
Making all in po
file=./`echo cs | sed 's,.*/,,'`.gmo && rm -f $file && PATH=../src:$PATH : -o $file cs.po
file=./`echo de | sed 's,.*/,,'`.gmo && rm -f $file && PATH=../src:$PATH : -o $file de.po
file=./`echo el | sed 's,.*/,,'`.gmo && rm -f $file && PATH=../src:$PATH : -o $file el.po
file=./`echo eo | sed 's,.*/,,'`.gmo && rm -f $file && PATH=../src:$PATH : -o $file eo.po
file=./`echo es | sed 's,.*/,,'`.gmo && rm -f $file && PATH=../src:$PATH : -o $file es.po
it's calling ":" with the argument -o :)
So in the end it never installs these files correctly and will die horribly.
>How-To-Repeat:
bmake install
>Fix:
Something like this.....
find /usr/obj/pkgsrc/textproc/grep/work.lazy -name Makefile -print -exec sudo perl -i -lpe 's/GMSGFMT = :/GMSGFMT = \/usr\/pkg\/bin\/msgfmt/' {} \;
>Release-Note:
>Audit-Trail:
>Unformatted: