Subject: Re: pkg/36257: games/wesnoth has msgfmt problems (plurals) [NetBSD 3.0]
To: None <,,>
From: OBATA Akio <>
List: pkgsrc-bugs
Date: 05/05/2007 11:25:02
The following reply was made to PR pkg/36257; it has been noted by GNATS.

From: "OBATA Akio" <>
Subject: Re: pkg/36257: games/wesnoth has msgfmt problems (plurals) [NetBSD 3.0]
Date: Sat, 05 May 2007 20:23:26 +0900

 On Wed, 02 May 2007 16:10:00 +0900, <kre@munnari.OZ.AU> wrote:
 >> Fix:
 > 	From various mesages I've seen on the lists, I suspect this
 > 	(kind of) problem is well known to those who understand what is
 > 	happening here, and the fix is most likely trivial, so I'm
 > 	not looking into this one at all...
 Pkgsrc already have a wrapper msgfmt tool, handling 'plural' issue.
 But this package's configure script judge the wrapper tool is useless,
 and use /usr/bin/msgfmt instead, because the wrapper script doesn't allow
 /dev/null as input file.
 Following patch should fix this problem.
 Index: mk/tools/
 RCS file: /cvsroot/pkgsrc/mk/tools/,v
 retrieving revision 1.26
 diff -u -r1.26
 --- mk/tools/  15 Dec 2006 13:15:07 -0000      1.26
 +++ mk/tools/  5 May 2007 11:06:23 -0000
 @@ -143,7 +143,7 @@
   # If the input file cannot be found as named, then also search for a file
   # with the same name that ends in ".po".
 -if test ! -f "$pofile"; then
 +if test ! -f "$pofile" -a ! -c "$pofile"; then
          case "$pofile" in
          *.po)   popofile=$pofile ;;
          *)      popofile=${pofile}.po ;;