NetBSD-Bugs archive

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

lib/40317: current (after recent locale changes) can't be built on netbsd-4 host

>Number:         40317
>Category:       lib
>Synopsis:       current (after recent locale changes) can't be built on 
>netbsd-4 host
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jan 02 10:05:00 +0000 2009
>Originator:     Martin Husemann
>Release:        NetBSD 5.0_BETA
The NetBSD Foundation, Inc.
System: NetBSD 5.0_BETA NetBSD 5.0_BETA (PORTER) #1: 
Sun Dec 14 18:14:45 CET 2008
Architecture: i386
Machine: i386

When cross building -current from a netbsd-4 host, the new "mklocale" fails
to convert any .src into .out files. The problem is a bug in the fparseln()
function (already fixed in -current and on the netbsd-5 branch) that mishandles
disabled escape characters:

RCS file: /cvsroot/src/lib/libc/stdio/fparseln.c,v
Working file: fparseln.c
head: 1.7
revision 1.6
date: 2007/03/07 15:12:01;  author: drochner;  state: Exp;  lines: +4 -4
-fix a condition so that fparseln() doesn't report spurious empty lines
 eg after 2 comment lines, or on EOF after a single comment line
-no escape character means no escaped characters

Without this, the mklocale usage of fparseln() returns lots of comment-only
lines, which the application does not realy like (it lateron fails trying
to convert "#" to a numeric value). And of course storing all those comments
"as string" in the ouptut is not correct either.


Try to build -current src/share/locale/monetary on a netbsd-4 host

Probably the easiest fix is:
pullup rev. 1.6 (and, while there, 1.7 too?) of fparseln.c
Another workaround is to use a more modern build host (netbsd-5 is good enough)

Home | Main Index | Thread Index | Old Index