pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

misc/ttyrec



Due (I believe) to the change in naming conventions for ptys on NetBSD 4.0,
ttyrec 1.0.8 no longer runs properly when built from the developer's source
without modification, and the version in pkgsrc does not appear to address this
problem.  I've made a patch that should allow it to build & run properly on
NetBSD 4.0 using the openpty(3) function.  Could this be applied to the version
in pkgsrc?

Thank you,
        John Wodder

-- 
Your cryptic message fills me with a nameless dread.
diff -Naur ttyrec-1.0.8/Makefile ttyrec-1.0.8-sdf/Makefile
--- ttyrec-1.0.8/Makefile       2006-06-11 15:52:50.000000000 +0000
+++ ttyrec-1.0.8-sdf/Makefile   2010-01-09 17:22:26.000000000 +0000
@@ -1,5 +1,5 @@
 CC = gcc
-CFLAGS = -O2
+CFLAGS = -O2 -DHAVE_openpty
 VERSION = 1.0.8
 
 TARGET = ttyrec ttyplay ttytime
@@ -10,7 +10,7 @@
 all: $(TARGET)
 
 ttyrec: ttyrec.o io.o
-       $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o
+       $(CC) $(CFLAGS) -o ttyrec ttyrec.o io.o -lutil
 
 ttyplay: ttyplay.o io.o
        $(CC) $(CFLAGS) -o ttyplay ttyplay.o io.o
diff -Naur ttyrec-1.0.8/ttyrec.c ttyrec-1.0.8-sdf/ttyrec.c
--- ttyrec-1.0.8/ttyrec.c       2006-06-11 15:52:50.000000000 +0000
+++ ttyrec-1.0.8-sdf/ttyrec.c   2010-01-09 17:21:38.000000000 +0000
@@ -71,7 +71,7 @@
 #define _(FOO) FOO
 
 #ifdef HAVE_openpty
-#include <libutil.h>
+#include <util.h>
 #endif
 
 #if defined(SVR4) && !defined(CDEL)


Home | Main Index | Thread Index | Old Index