Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2001 15:55:56 -0700 (PDT)
From:      anarcat@tao.ca
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/26490: x11/rxvt installs xim with unknown input method (patch included)
Message-ID:  <200104102255.f3AMtuS11449@freefall.freebsd.org>

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

>Number:         26490
>Category:       ports
>Synopsis:       x11/rxvt installs xim with unknown input method (patch included)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr 10 16:00:06 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     The Anarcat
>Release:        FreeBSD 4.3-RC
>Organization:
Nada, Inc
>Environment:
FreeBSD shall.anarcat.yi.org 4.3-RC FreeBSD 4.3-RC #0: Fri Apr  6 16:33:06 EDT 2001     root@shall.anarcat.yi.org:/usr/obj/usr/src/sys/SHALL  i386

Any decently recent port collectios
>Description:
rxvt, when enabling the WITH_XIM switch, compiles with an encoding
specified within the package.

I do not know what the encoding exactly, but it looks a lot like japanese or asian characters. 

Being french-speaking, this is very confusing. :)
>How-To-Repeat:
cd /usr/ports/x11/rxvt-devel/ && make WITH_XIM=yes install
>Fix:
The fix is not really complex, if one is stubborn enough to ignore all other languages but oneself. :)

This is the workaround that I use (warning: cut'n'paste):

--- Makefile.orig       Tue Apr 10 18:07:42 2001
+++ Makefile    Tue Apr 10 18:08:00 2001
@@ -24,7 +24,7 @@
 GNU_CONFIGURE= yes
 CONFIGURE_ARGS=        --enable-utmp --enable-wtmp --enable-languages \
                --with-xpm --enable-xpm-background --enable-transparency \
-               --enable-shared
+               --enable-shared --with-encoding=noenc
 USE_LIBTOOL=   yes
 INSTALLS_SHLIB=        yes
 USE_BZIP2=     yes

Of course, this disables the encoding that's there by default.

So one might want something like:

--- Makefile.orig       Tue Apr 10 18:07:42 2001
+++ Makefile    Tue Apr 10 18:53:31 2001
@@ -31,6 +31,18 @@
 
 MAN1=          rxvt.1
 
+pre-fetch:
+.if !defined(ENCODING)
+       @${ECHO_MSG}
+       @${ECHO_MSG} "You can specify an alternate encoding by setting the ENCODING variable"
+       @${ECHO_MSG} 'Options are: "eucj" EUC Japanese encoding; "sjis" Shift JIS encoding;'
+       @${ECHO_MSG} '"big5" BIG5 encoding; "gb" GB encoding; "kr" EUC Korean encoding'
+       @${ECHO_MSG}
+ENCODING=      noenc
+.endif
+
+CONFIGURE_ARGS+=       --with-encoding=${ENCODING}
+
 # enable greek keyboard support
 .if defined(WITH_GREEK_KEYBOARD)
 CONFIGURE_ARGS+=       --enable-greek
@@ -57,7 +69,7 @@
 .endif # WITH_RXVT_SCROLLBAR
 #
 # XIM (X Input Method) protocol support
-.if defined(WITH_XIM)
+.if !defined(WITHOUT_XIM)
 CONFIGURE_ARGS+=       --enable-xim
 .endif # WITH_XIM
 #

Note that this enables XIM by default since I do not know why it was disabled in the first place. 
>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?200104102255.f3AMtuS11449>