Subject: pkg/33182: in mail/evolution-data-server 1.6.0, build fails with msgfmt erroring on po/ro.po
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <b1ff@fr33.b33r.net>
List: pkgsrc-bugs
Date: 04/03/2006 03:40:00
>Number:         33182
>Category:       pkg
>Synopsis:       in mail/evolution-data-server 1.6.0, build fails with msgfmt erroring on po/ro.po
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Apr 03 03:40:00 +0000 2006
>Originator:     Mathieu
>Release:        3.0
>Organization:
>Environment:
NetBSD sal.lan 3.0 NetBSD 3.0 (SPECIFIC) #0: Mon Jan 16 13:11:49 EST 2006  mathieu@sal.lan:/usr/src/sys/arch/i386/compile/SPECIFIC i386

>Description:
Output snip:

Making all in po
gmake[2]: Entering directory `/src/pkgsrc/mail/evolution-data-server/work/evolution-data-server-1.6.0/po'
file=`echo ro | sed 's,.*/,,'`.gmo \
  && rm -f $file && /src/pkgsrc/mail/evolution-data-server/work/.buildlink/bin/msgfmt -o $file ro.po
Working-around plural forms in ro.po
Running `/usr/bin/msgfmt -o ro.gmo ro.po.tmp'
ro.po.tmp:4235: parse error
found 1 fatal errors
gmake[2]: *** [ro.gmo] Error 1
gmake[2]: Leaving directory `/src/pkgsrc/mail/evolution-data-server/work/evolution-data-server-1.6.0/po'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/src/pkgsrc/mail/evolution-data-server/work/evolution-data-server-1.6.0'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /src/pkgsrc/mail/evolution-data-server

>How-To-Repeat:
Got that error when trying to build meta-pkgs/gnome 2.14.
>Fix:
I don't know gettext very well, but I noticed that this line where msgfmt reports a parse error (4235) was the only one in the whole lot to be blank between a msgid and msgstr. Removing it seems to fix the problem.

(Trying to post UTF-8 chars in the patch.)

--- po/ro.po.orig       2005-09-02 18:25:43.000000000 -0400
+++ po/ro.po    2006-04-02 23:10:32.000000000 -0400
@@ -4232,7 +4232,6 @@
 #: ../camel/providers/pop3/camel-pop3-store.c:418
 #, c-format
 msgid "SASL `%s' Login failed for POP server %s: %s"
-
 msgstr "Autentificare SASL `%s' Logare eĆuatÄ pentru serverul POP %s: %s"
 
 #: ../camel/providers/pop3/camel-pop3-store.c:430