Subject: pkg/24130: textproc/grep fails to find msgfmt on Solaris (workaround)
To: None <>
From: Charlie Allom <>
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
>Originator:     Charlie Allom
>Release:        SunOS 5.9
Eat Your Pets Ltd.
System: SunOS lazy 5.9 Generic_112233-11 sun4u sparc SUNW,Ultra-2
Architecture: sun4

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.

bmake install
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/' {} \;