From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Mar 17 10:40:05 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D26F716A4CE for ; Sat, 17 Mar 2007 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B491213C45B for ; Sat, 17 Mar 2007 10:40:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2HAe5jZ024256 for ; Sat, 17 Mar 2007 10:40:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2HAe5Tq024251; Sat, 17 Mar 2007 10:40:05 GMT (envelope-from gnats) Resent-Date: Sat, 17 Mar 2007 10:40:05 GMT Resent-Message-Id: <200703171040.l2HAe5Tq024251@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 [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 62F7416A401 for ; Sat, 17 Mar 2007 10:32:04 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id 3055913C448 for ; Sat, 17 Mar 2007 10:32:04 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 185941CD33; Sat, 17 Mar 2007 11:32:03 +0100 (CET) Message-Id: <20070317103203.185941CD33@palm.hoeg.nl> Date: Sat, 17 Mar 2007 11:32:03 +0100 (CET) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: ports/110435: [mail/metamail] Use 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: Sat, 17 Mar 2007 10:40:05 -0000 >Number: 110435 >Category: ports >Synopsis: [mail/metamail] Use >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Mar 17 10:40:04 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb 11 22:32:09 CET 2007 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: The Metamail MIME implementation uses or . It isn't hard to port this application to use , causing it to work properly without COMPAT_43TTY. >How-To-Repeat: >Fix: This patch patches a patch (wow) to force usage of . --- mail/metamail/files/patch-metamail_metamail.c Tue Dec 19 02:48:53 2006 +++ mail/metamail/files/patch-metamail_metamail.c Sat Mar 17 11:28:18 2007 @@ -9,6 +9,17 @@ #include #include #include +@@ -46,8 +48,8 @@ + #include + + #ifndef AMIGA +-#ifdef SYSV +-#include ++#if 1 ++#include + #include + #else /* SYSV */ + #include @@ -83,7 +85,7 @@ #define MAX_FILE_NAME_SIZE 256 #define WRITE_BINARY "w" @@ -116,3 +127,34 @@ } else { /* What follows is REALLY bogus, but all my encoding stuff is pipe-oriented right now... */ MkTmpFileName(TmpFile); +@@ -2375,8 +2387,8 @@ + + int HasSavedTtyState=0; + #if !defined(AMIGA) && !defined(MSDOS) +-#ifdef SYSV +-static struct termio MyTtyStateIn, MyTtyStateOut; ++#if 1 ++static struct termios MyTtyStateIn, MyTtyStateOut; + #else + static struct sgttyb MyTtyStateIn, MyTtyStateOut; + #endif +@@ -2681,15 +2693,15 @@ + + StartRawStdin() { + #if !defined(AMIGA) && !defined(MSDOS) +-#ifdef SYSV +- struct termio orterm, fterm; +- ioctl(0, TCGETA, &orterm); /* get current (i.e. cooked) termio */ ++#if 1 ++ struct termios orterm, fterm; ++ tcgetattr(0, &orterm); + fterm = orterm; /* get termio to modify */ + + fterm.c_lflag &= ~ICANON; /* clear ICANON giving raw mode */ + fterm.c_cc[VMIN] = 1; /* set MIN char count to 1 */ + fterm.c_cc[VTIME] = 0; /* set NO time limit */ +- return ioctl(0, TCSETAW, &fterm); /* modify termio for raw mode */ ++ return tcsetattr(0, TCSANOW, &fterm); /* modify termio for raw mode */ + #else + struct sgttyb ts; + gtty(fileno(stdin), &ts); >Release-Note: >Audit-Trail: >Unformatted: