Date: Mon, 7 Mar 2005 10:25:01 +0900 (JST) From: KOMATSU Shinichiro <koma2@ms.u-tokyo.ac.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/78518: japanese/kterm: Fix on amd64, add w3m wheel mouse patch Message-ID: <20050307012501.AD0F65650D@ksta.ms.u-tokyo.ac.jp> Resent-Message-ID: <200503070130.j271U4Iw023654@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 78518 >Category: ports >Synopsis: japanese/kterm: Fix on amd64, add w3m wheel mouse patch >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Mar 07 01:30:03 GMT 2005 >Closed-Date: >Last-Modified: >Originator: KOMATSU Shinichiro >Release: FreeBSD 5.3-RELEASE-p5 amd64 >Organization: >Environment: FreeBSD 5.3-RELEASE-p5 amd64 >Description: [1] Add the patch to use POSIX termios instead of ioctl, in order to correctlly run on amd64. Without this patch, kterm does not run on amd64 with the following error message: % kterm & kterm: Error 23, errno 25: Inappropriate ioctl for device [2] Add w3m wheel mouse patch. Obtained from: [1] xterm-200 [2] http://www.sic.med.tohoku.ac.jp/~satodai/w3m-dev/200302.month/3741.html >How-To-Repeat: >Fix: diff --exclude=*.log* --exclude=CVS -urN kterm.orig/Makefile kterm/Makefile --- kterm.orig/Makefile Thu Dec 23 18:32:38 2004 +++ kterm/Makefile Sun Mar 6 21:13:11 2005 @@ -7,7 +7,7 @@ PORTNAME= kterm PORTVERSION= 6.2.0 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= japanese x11 MASTER_SITES= ${MASTER_SITE_PORTS_JP} \ ${MASTER_SITE_XCONTRIB} \ @@ -25,13 +25,15 @@ DIST_SUBDIR= kterm PATCH_SITES= ftp://ftp.sra.co.jp/pub/x11/kterm/ \ http://www.asahi-net.or.jp/~hc3j-tkg/kterm/ \ + http://straycat.ms.u-tokyo.ac.jp/distfiles/ \ ${MASTER_SITE_PORTS_JP} \ ${MASTER_SITE_LOCAL} PATCH_SITE_SUBDIR= shige/kterm PATCHFILES= ${DISTNAME}.NFS-xauth.patch \ ${DISTNAME}-wpi.patch.gz \ ${DISTNAME}-jisx0213.patch.gz \ - ${DISTNAME}-color16.patch.gz + ${DISTNAME}-color16.patch.gz \ + ${DISTNAME}-termios-0.2.patch.gz PATCH_DIST_STRIP= -p1 USE_IMAKE= yes diff --exclude=*.log* --exclude=CVS -urN kterm.orig/distinfo kterm/distinfo --- kterm.orig/distinfo Wed Mar 31 12:08:44 2004 +++ kterm/distinfo Sun Mar 6 21:13:19 2005 @@ -10,3 +10,5 @@ SIZE (kterm/kterm-6.2.0-jisx0213.patch.gz) = 15530 MD5 (kterm/kterm-6.2.0-color16.patch.gz) = ecf0d363f2d1a253678b77cf41b392ce SIZE (kterm/kterm-6.2.0-color16.patch.gz) = 1398 +MD5 (kterm/kterm-6.2.0-termios-0.2.patch.gz) = 1af8ea8e6785b339fcc93f92fa783fe9 +SIZE (kterm/kterm-6.2.0-termios-0.2.patch.gz) = 3084 diff --exclude=*.log* --exclude=CVS -urN kterm.orig/files/patch-scrollbar.c kterm/files/patch-scrollbar.c --- kterm.orig/files/patch-scrollbar.c Thu Jan 1 09:00:00 1970 +++ kterm/files/patch-scrollbar.c Mon Dec 27 11:16:29 2004 @@ -0,0 +1,27 @@ +--- scrollbar.c.orig Thu Feb 13 02:06:51 2003 ++++ scrollbar.c Thu Feb 13 02:07:58 2003 +@@ -46,6 +46,7 @@ + static void ScrollTextTo(); + static void ScrollTextUpDownBy(); + ++extern Boolean SendMousePosition(); + + /* resize the text window for a terminal screen, modifying the + * appropriate WM_SIZE_HINTS and taking advantage of bit gravity. +@@ -535,6 +536,7 @@ + XtermWidget w = (XtermWidget) gw; + register TScreen *screen = &w->screen; + ++ if (SendMousePosition(gw, event)) return; + ScrollTextUpDownBy (gw, (XtPointer) NULL, + (XtPointer)params_to_pixels (screen, params, (int) *nparams)); + return; +@@ -551,6 +553,7 @@ + XtermWidget w = (XtermWidget) gw; + register TScreen *screen = &w->screen; + ++ if (SendMousePosition(gw, event)) return; + ScrollTextUpDownBy (gw, (XtPointer) NULL, + (XtPointer)-params_to_pixels (screen, params, (int) *nparams)); + return; + >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050307012501.AD0F65650D>