pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/36257: games/wesnoth has msgfmt problems (plurals) [NetBSD 3.0]



The following reply was made to PR pkg/36257; it has been noted by GNATS.

From: "OBATA Akio" <obache%netbsd.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
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@localhost> 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/msgfmt.sh
 ===================================================================
 RCS file: /cvsroot/pkgsrc/mk/tools/msgfmt.sh,v
 retrieving revision 1.26
 diff -u -r1.26 msgfmt.sh
 --- mk/tools/msgfmt.sh  15 Dec 2006 13:15:07 -0000      1.26
 +++ mk/tools/msgfmt.sh  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 ;;
  
 



Home | Main Index | Thread Index | Old Index