Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Dec 2007 12:02:23 +0100 (CET)
From:      Ed Schouten <ed@fxq.nl>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/119096: [Patch] cad/brlcad: use termios, not sgtty
Message-ID:  <20071228110223.BA3861CCD9@palm.hoeg.nl>
Resent-Message-ID: <200712281110.lBSBA1Th068842@freefall.freebsd.org>

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

>Number:         119096
>Category:       ports
>Synopsis:       [Patch] cad/brlcad: 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 11:10:01 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 FreeBSD port cad/brlcad makes use of sgtty, which is a bad thing,
because sgtty only works when you use COMPAT_43TTY in your kernel
configuration. brlcad already has code laying around for termios, but is
never enabled. We can just enable it, but we need to fix it up slightly,
because FreeBSD's tab expansion flag is called OXTABS, instead of TAB3.
>How-To-Repeat:
>Fix:
Add the following patch to the files/ directory:

--- src/vas4/vas_io.c	2007-07-26 03:14:00.000000000 +0200
+++ src/vas4/vas_io.c	2007-12-28 11:30:45.000000000 +0100
@@ -41,6 +41,8 @@
 #include <stdio.h>
 #include <fcntl.h>
 
+#define HAVE_XOPEN
+
 #if defined(HAVE_XOPEN)
 #  include <termios.h>
 
@@ -149,7 +151,7 @@
 	vtty.c_iflag |= IGNBRK|IGNPAR;
 
 	vtty.c_oflag &= ~(OPOST|ONLCR|OCRNL);    /* Turn off all post-processing */
-	vtty.c_oflag |= TAB3;		/* output tab expansion ON */
+	vtty.c_oflag |= OXTABS;		/* output tab expansion ON */
 	vtty.c_cc[VMIN] = 1;
 	vtty.c_cc[VTIME] = 0;
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071228110223.BA3861CCD9>