From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Dec 28 19:20:01 2007 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8C30616A418 for ; Fri, 28 Dec 2007 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5641D13C474 for ; Fri, 28 Dec 2007 19:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBSJK0Xi062706 for ; Fri, 28 Dec 2007 19:20:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBSJK0tB062705; Fri, 28 Dec 2007 19:20:00 GMT (envelope-from gnats) Resent-Date: Fri, 28 Dec 2007 19:20:00 GMT Resent-Message-Id: <200712281920.lBSJK0tB062705@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ed Schouten Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE48016A420 for ; Fri, 28 Dec 2007 19:16:32 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 7EE2813C465 for ; Fri, 28 Dec 2007 19:16:32 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 54D5F1CCD9; Fri, 28 Dec 2007 20:14:18 +0100 (CET) Message-Id: <20071228191418.54D5F1CCD9@palm.hoeg.nl> Date: Fri, 28 Dec 2007 20:14:18 +0100 (CET) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/119115: [Patch] chinese/ve: use termios, not sgtty X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Dec 2007 19:20:01 -0000 >Number: 119115 >Category: ports >Synopsis: [Patch] chinese/ve: use termios, not sgtty >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Dec 28 19:20:00 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.3-PRERELEASE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #0: Wed Dec 19 16:07:46 CET 2007 ed@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: The port chinese/ve uses sgtty, but it has termios bits in the source code. We'd better port it to termios, because this will make it work with COMPAT_43TTY-less kernels. >How-To-Repeat: >Fix: The following patch makes the application use termios. For some reason, the termios code contains the RAW flag, but that's a sgtty flag as far as I know. --- chinese/ve/files/patch-Makefile 2006-03-20 22:58:01.000000000 +0100 +++ chinese/ve/files/patch-Makefile 2007-12-28 20:13:13.000000000 +0100 @@ -10,7 +10,7 @@ #---------------------------------------------------------- -CFLAGS = -DVEDITOR +CFLAGS ?= -O -pipe -+CFLAGS += -DVEDITOR ++CFLAGS += -DVEDITOR -DLINUX LIBS = -ltermcap -lcompat #---------------------------------------------------------- --- chinese/ve/files/patch-bbs.h 1970-01-01 01:00:00.000000000 +0100 +++ chinese/ve/files/patch-bbs.h 2007-12-28 20:13:13.000000000 +0100 @@ -0,0 +1,13 @@ +--- bbs.h 1996-07-26 14:37:02.000000000 +0200 ++++ bbs.h 2007-12-28 20:09:00.000000000 +0100 +@@ -26,9 +26,7 @@ + #include + + +-#ifdef LINUX +-#include +-#else ++#ifndef LINUX + #include + #endif + --- chinese/ve/files/patch-term.c 1970-01-01 01:00:00.000000000 +0100 +++ chinese/ve/files/patch-term.c 2007-12-28 20:13:13.000000000 +0100 @@ -0,0 +1,20 @@ +--- term.c 1997-01-24 17:36:57.000000000 +0100 ++++ term.c 2007-12-28 20:12:09.000000000 +0100 +@@ -16,7 +16,7 @@ + #endif + + #ifdef LINUX +-#include ++#include + #define stty(fd, data) tcsetattr( fd, TCSETS, data ) + #define gtty(fd, data) tcgetattr( fd, data ) + #endif +@@ -64,7 +64,7 @@ + + #ifdef LINUX + +- tty_new.c_lflag &= ~(ICANON | ECHO | RAW | ISIG); ++ tty_new.c_lflag &= ~(ICANON | ECHO | ISIG); + tcsetattr(1, TCSANOW, &tty_new); + restore_tty(); + >Release-Note: >Audit-Trail: >Unformatted: