ports/119096: [Patch] cad/brlcad: use termios, not sgtty
Ed Schouten
ed at fxq.nl
Fri Dec 28 11:10:02 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list