Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Sep 2002 21:07:55 +0400 (MSD)
From:      Dmitry Morozovsky <marck@rinet.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/42846: x11-toolkits building breaks if LANG is set to valid value
Message-ID:  <200209161707.g8GH7ti0060514@woozle.rinet.ru>

next in thread | raw e-mail | index | archive | help

>Number:         42846
>Category:       ports
>Synopsis:       x11-toolkits building breaks if LANG is set to valid value
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 16 10:10:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Dmitry Morozovsky
>Release:        FreeBSD 4-STABLE i386
>Organization:
Cronyx Plus LLC (RiNet ISP)
>Environment:
System: FreeBSD 4-STABLE 

open-motif Makefile:
# $FreeBSD: ports/x11-toolkits/open-motif/Makefile,v 1.24 2002/09/14 13:32:02 sobomax Exp $


>Description:
	Making x11-toolkits/open-motif under login with LANG set may lead to:

creating fileview
../../../clients/uil/uil -o French.uid French.uil -I./../../../clients/uil -I../../../clients/uil

Error: $LANG contains an unknown character set

Info: no UID file was produced

Info: errors: 1  warnings: 0  informationals: 1
gmake[3]: *** [French.uid] Ошибка 1
gmake[3]: Выход из каталог `/lh/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/demos/programs/fileview'
gmake[2]: *** [all-recursive] Ошибка 1
gmake[2]: Выход из каталог `/lh/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/demos/programs'
gmake[1]: *** [all-recursive] Ошибка 1
gmake[1]: Выход из каталог `/lh/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/demos'
gmake: *** [all-recursive] Ошибка 1
*** Error code 2

Stop in /lh/ports/x11-toolkits/open-motif.
*** Error code 1

marck@woozle:~> echo $LANG
ru_RU.KOI8-R

>How-To-Repeat:

set environment LANG to ru_RU.KOI8-R (didn't test for other locales)
cd /usr/ports/x11-toolkits/open-motif
make

>Fix:

Workaround: unsetenv LANG

I don't know of the correct fix, but the following "just works".
It should be tested for caveats, though.

Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/x11-toolkits/open-motif/Makefile,v
retrieving revision 1.24
diff -u -r1.24 Makefile
--- Makefile    14 Sep 2002 13:32:02 -0000      1.24
+++ Makefile    16 Sep 2002 17:07:40 -0000
@@ -42,7 +42,7 @@
 .if defined(WITHOUT_OPENMOTIF_DEMOS)
 PLIST_SUB+=    MOTIF_DEMOS="@comment "
 .else
-MAKE_ENV+=     DEMOS="demos"
+MAKE_ENV+=     DEMOS="demos" LANG="C"
 PLIST_SUB+=    MOTIF_DEMOS=""
 .endif
 

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209161707.g8GH7ti0060514>