From owner-freebsd-ports Tue Apr 10 16: 0:20 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D8EE37B43E for ; Tue, 10 Apr 2001 16:00:07 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3AN07J11775; Tue, 10 Apr 2001 16:00:07 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CD28337B628 for ; Tue, 10 Apr 2001 15:55:56 -0700 (PDT) (envelope-from nobody@FreeBSD.org) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3AMtuS11449; Tue, 10 Apr 2001 15:55:56 -0700 (PDT) (envelope-from nobody) Message-Id: <200104102255.f3AMtuS11449@freefall.freebsd.org> Date: Tue, 10 Apr 2001 15:55:56 -0700 (PDT) From: anarcat@tao.ca To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: ports/26490: x11/rxvt installs xim with unknown input method (patch included) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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