Skip site navigation (1)Skip section navigation (2)
Date:      4 Jul 2002 15:42:24 -0000
From:      Stanislav Grozev <tacho@factline.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/40189: XFree86 4.2 doesn't support bg_BG.CP1251 properly
Message-ID:  <20020704154224.49947.qmail@daemonz.org>

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

>Number:         40189
>Category:       ports
>Synopsis:       XFree86 4.2 doesn't support bg_BG.CP1251 properly
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jul 04 08:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Stanislav Grozev
>Release:        FreeBSD 4.6-STABLE i386
>Organization:
factline Webservices GmbH.
>Environment:
System: FreeBSD meerkat.dungeon 4.6-STABLE FreeBSD 4.6-STABLE #2: Tue Jun 18 08:04:41 CEST 2002 root@meerkat.dungeon:/usr/obj/usr/src/sys/MEERKAT i386


>Description:

the XFree86-4-libraries (xfree 4.2) is missing a Compose file for the
microsoft-cp1251 (dunno why XFree people choose that alias), thus
breaking some programs when locale bg_BG.CP1251 is set (most notably
Gtk+ apps, like gvim, or some gnome app)
This affects both -current and -stable users.
>How-To-Repeat:
% setenv LANG bg_BG.CP1251
% setenv LC_ALL bg_BG.CP1251
% gvim
Segmentation Fault (core dumped)
>Fix:

apply this diff and rebuild the port.
i will also request the maintainer to submit this to the XFree people
for inclusion in the next release

--- begin diff ---

diff -urN ../XFree86-4-libraries.orig/Makefile ./Makefile
--- ../XFree86-4-libraries.orig/Makefile	Wed Mar 20 01:33:47 2002
+++ ./Makefile	Thu Jul  4 17:05:43 2002
@@ -7,7 +7,7 @@
 
 PORTNAME=	libraries
 PORTVERSION=	4.2.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	x11
 MASTER_SITES=	${MASTER_SITE_XFREE} \
 		ftp://psych.psy.uq.oz.au/pub/X11R5/:wrap \
@@ -90,6 +90,7 @@
 .endif
 
 post-patch:
+	${CP} ${MASTERDIR}/files/nls::Compose::microsoft-cp1251 ${WRKSRC}/nls/Compose/microsoft-cp1251
 	cd ${WRKSRC}/nls; \
 	for i in Compose XI18N_OBJS XLC_LOCALE; do \
 		${LN} -s zh_TW.big5 $$i/zh_TW.Big5; \
diff -urN ../XFree86-4-libraries.orig/files/nls::Compose::microsoft-cp1251 ./files/nls::Compose::microsoft-cp1251
--- ../XFree86-4-libraries.orig/files/nls::Compose::microsoft-cp1251	Thu Jan  1 01:00:00 1970
+++ ./files/nls::Compose::microsoft-cp1251	Thu Jul  4 17:05:43 2002
@@ -0,0 +1,15 @@
+XCOMM
+XCOMM microsoft-cp1251 Compose Sequence
+XCOMM
+XCOMM Sequence Definition
+XCOMM
+XCOMM $XFree86$
+XCOMM
+XCOMM This file currently has no entries.  It appears that a compose file (even
+XCOMM just an empty one) is required for the appropriate keysyms to work for
+XCOMM this encoding.
+XCOMM
+XCOMM <Multi_key> Means <Compose>
+XCOMM Special Character
+
+XCOMM End of Sequence Definition
diff -urN ../XFree86-4-libraries.orig/files/patch-nls::Compose::Imakefile ./files/patch-nls::Compose::Imakefile
--- ../XFree86-4-libraries.orig/files/patch-nls::Compose::Imakefile	Thu Jan  1 01:00:00 1970
+++ ./files/patch-nls::Compose::Imakefile	Thu Jul  4 17:05:43 2002
@@ -0,0 +1,10 @@
+--- nls/Compose/Imakefile.orig	Sat Nov  3 00:29:28 2001
++++ nls/Compose/Imakefile	Thu Jul  4 16:38:00 2002
+@@ -64,6 +64,7 @@
+ ComposeTarget(koi8-r)
+ ComposeTarget(koi8-u)
+ ComposeTarget(koi8-c)
++ComposeTarget(microsoft-cp1251)
+ ComposeTarget(mulelao-1)
+ ComposeTarget(vi_VN.tcvn)
+ ComposeTarget(vi_VN.viscii)
diff -urN ../XFree86-4-libraries.orig/pkg-plist ./pkg-plist
--- ../XFree86-4-libraries.orig/pkg-plist	Sun Mar 17 00:40:17 2002
+++ ./pkg-plist	Thu Jul  4 17:05:43 2002
@@ -487,6 +487,7 @@
 lib/X11/locale/koi8-u/XLC_LOCALE
 lib/X11/locale/locale.alias
 lib/X11/locale/locale.dir
+lib/X11/locale/microsoft-cp1251/Compose
 lib/X11/locale/microsoft-cp1251/XI18N_OBJS
 lib/X11/locale/microsoft-cp1251/XLC_LOCALE
 lib/X11/locale/microsoft-cp1255/XI18N_OBJS

--- end diff ---
>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?20020704154224.49947.qmail>