Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 May 2001 11:10:29 -0700 (PDT)
From:      daichi@ongs.gr.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/27713: ports: /usr/ports/japanese/linux_locale: Facility addition
Message-ID:  <200105281810.f4SIATE51023@freefall.freebsd.org>

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

>Number:         27713
>Category:       ports
>Synopsis:       ports: /usr/ports/japanese/linux_locale: Facility addition
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 28 11:20:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Daichi GOTO
>Release:        FreeBSD 4.2
>Organization:
ONGS
>Environment:
FreeBSD brave.vnet 4.2-STABLE FreeBSD 4.2-STABLE #0: Fri Apr  6 21:00:10 JST 2001     root@brave.vnet:/usr/src/sys/compile/BRAVE  i386

>Description:
Linuxulator environment installed by /usr/ports/emulators/linux_base/ 
does not have ja_JP.EUC locale. That have ja_JP.eucJP instead.
We need some locale alias entry in /compat/linux/usr/share/locale/locale.alias
file to use linux application with LANG=ja_JP.EUC.
So I made patch of Makefile that do add the entry to above file when 
I install with /usr/ports/japanese/linux_locale.
>How-To-Repeat:

>Fix:
/usr/ports/japanese/linux_locale/Makefile patch:


--- Makefile.orig	Sat May 26 20:30:52 2001
+++ Makefile	Mon May 28 02:41:55 2001
@@ -30,6 +30,9 @@
 COMPAT_LC=	${PREFIX}/usr/share/locale/ja_JP.EUC
 DOCDIR=		${PREFIX}/usr/doc/locale-ja-${VERSION}
 
+LOCALE_ADD=	ja_JP.EUC
+LOCALE_DEF_ja_JP.EUC=	ja_JP.eucJP
+
 do-build:
 	${MKDIR} ${WRKDIR}/LC_MESSAGES
 	${LCDEF_CMD} ${LCDEF_ARGS} ${WRKDIR}
@@ -43,5 +46,9 @@
 	${LN} -sf ja_JP ${COMPAT_LC}
 	${MKDIR} ${DOCDIR}
 	${INSTALL_DATA} ${WRKSRC}/debian/* ${DOCDIR}
+.for locale in ${LOCALE_ADD}
+	@${ECHO} "${locale}	${LOCALE_DEF_${locale}}" \
+		>> ${LINUXBASE}/usr/share/locale/locale.alias
+.endfor
 
 .include <bsd.port.mk>
>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?200105281810.f4SIATE51023>