ports/161087: [patch] misc/ttyrec: don't depend on pty(4), use openpty(3)
h h
aakuusta at gmail.com
Wed Sep 28 01:50:12 UTC 2011
>Number: 161087
>Category: ports
>Synopsis: [patch] misc/ttyrec: don't depend on pty(4), use openpty(3)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Wed Sep 28 01:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: h h
>Release: FreeBSD 10.0-CURRENT amd64
>Organization:
>Environment:
>Description:
idea from http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=43209
>How-To-Repeat:
1. compile kernel without pty(4)
2. run the app
$ ttyrec
Out of pty's
$ ls -d /dev/pt*
/dev/pts
>Fix:
--- a.diff begins here ---
Index: misc/ttyrec/Makefile
===================================================================
RCS file: /a/.csup/ports/misc/ttyrec/Makefile,v
retrieving revision 1.15
diff -u -p -r1.15 Makefile
--- misc/ttyrec/Makefile 10 Mar 2008 00:52:12 -0000 1.15
+++ misc/ttyrec/Makefile 28 Sep 2011 01:32:41 -0000
@@ -21,6 +21,8 @@ PLIST_FILES= bin/ttyplay \
MAN1= ttyplay.1 ttyrec.1
BINS= ttyplay ttyrec ttytime
+CFLAGS+= -DHAVE_openpty -lutil
+
post-patch:
@${REINPLACE_CMD} -e "s|^CC|#CC|g" -e "s|^CFLAGS|#CFLAGS|g" \
${WRKSRC}/Makefile
--- a.diff ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list