Package: expect / 5.45.4-2

Metadata

Package Version Patches format
expect 5.45.4-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
01 example shebang.patch | (download)

example/beer.exp | 7 6 + 1 - 0 !
example/expectd.proto | 8 7 + 1 - 0 !
example/irsh | 7 6 + 1 - 0 !
example/passwd.cgi | 7 6 + 1 - 0 !
example/passwdprompt | 7 6 + 1 - 0 !
example/reprompt | 7 6 + 1 - 0 !
example/term_expect | 7 6 + 1 - 0 !
example/vrfy | 7 6 + 1 - 0 !
example/xrlogin | 8 7 + 1 - 0 !
9 files changed, 56 insertions(+), 9 deletions(-)

 fixes shebangs in examples (closes: #152367).


02 example cryptdir.patch | (download)

example/cryptdir | 5 5 + 0 - 0 !
example/decryptdir | 5 5 + 0 - 0 !
2 files changed, 10 insertions(+)

 checks for /usr/bin/crypt in cryptdir example (closes: #67197).


05 makefile soname.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 adds '-soname' to the makefile.


06 pkgindex.patch | (download)

Makefile.in | 2 1 + 1 - 0 !
tests/all.tcl | 2 1 + 1 - 0 !
tests/cat.test | 2 1 + 1 - 0 !
tests/expect.test | 2 1 + 1 - 0 !
tests/logfile.test | 2 1 + 1 - 0 !
tests/pid.test | 2 1 + 1 - 0 !
tests/send.test | 2 1 + 1 - 0 !
tests/spawn.test | 2 1 + 1 - 0 !
tests/stty.test | 2 1 + 1 - 0 !
9 files changed, 9 insertions(+), 9 deletions(-)

 Adjusted for new soname (Closes: #381052).
 Replaced [package require Expect] by direct loading libexpect library in all tests
 because package management can't load the library from its build location.
Last-Modified: 2009-11-18


07 file handle.patch | (download)

exp_clib.c | 1 1 + 0 - 0 !
exp_command.c | 1 1 + 0 - 0 !
2 files changed, 2 insertions(+)

 Fixes file handle 3 to be left open when running programs (Closes: #166677).


09 unsafe traps.patch | (download)

exp_trap.c | 12 12 + 0 - 0 !
1 file changed, 12 insertions(+)

 fixes some unsafe traps.


10 manpage.patch | (download)

expect.man | 98 49 + 49 - 0 !
1 file changed, 49 insertions(+), 49 deletions(-)

 fixes sample expect shebang and excapes dashes.


11 ttyname.patch | (download)

pty_termios.c | 15 13 + 2 - 0 !
1 file changed, 13 insertions(+), 2 deletions(-)

 Check before call ttyname, so don't coredump in chroots without /proc
 (Closes: #440804).


12 fdout.patch | (download)

exp_command.c | 10 9 + 1 - 0 !
1 file changed, 9 insertions(+), 1 deletion(-)

 expbusy forgets to open fdout (closes: #440818).


13 implicit defs.patch | (download)

exp_chan.c | 1 1 + 0 - 0 !
exp_clib.c | 3 3 + 0 - 0 !
exp_command.h | 14 11 + 3 - 0 !
exp_main_sub.c | 1 1 + 0 - 0 !
exp_tty.h | 1 1 + 0 - 0 !
exp_tty_in.h | 2 2 + 0 - 0 !
exp_win.c | 1 1 + 0 - 0 !
exp_win.h | 8 6 + 2 - 0 !
pty_termios.c | 10 8 + 2 - 0 !
9 files changed, 34 insertions(+), 7 deletions(-)

 fix implicit definitions throughout (closes: #441115).


16 logfile.patch | (download)

exp_log.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 corrects permissions when accessing logfiles.


18 non linux.patch | (download)

tclconfig/tcl.m4 | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 fixes build for non-linux debian architectures.


22 segfault with stubs.patch | (download)

exp_clib.c | 10 7 + 3 - 0 !
1 file changed, 7 insertions(+), 3 deletions(-)

 this dirty hack fixes segfaults if tcl is built with stubs
 and Expect is used directly from C program.
Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=588817
Example:
 #include <stdio.h>
 #include <tcl8.5/expect.h>
 int main()
 {
     FILE *pipe;
     char *some_command = "uname";
     char datum;
     pipe = exp_popen(some_command);
     if (pipe == NULL) return 1;
     while ((datum = getc (pipe)) != EOF)
 	printf("%c",datum);
 }
Example:
 #include <stdio.h>
 #include "expect.h"
 main()
 {
     int fd = 0;
     fd = exp_spawnl("echo", "echo", "Hello User: Whats up?", (char*) 0);
     switch (exp_expectl(fd, exp_regexp, "ser:", 1, exp_end)) {
 	case 1: {
 	    printf("GOT ser:\n");
 	    break;
 	}
 	default: {
 	    printf("DEFAULT\n");
 	    return 1;
 	}
     }
     printf("Normal Exit\n");
     return 0;
 }


24 format.patch | (download)

exp_clib.c | 4 2 + 2 - 0 !
exp_command.c | 2 1 + 1 - 0 !
2 files changed, 3 insertions(+), 3 deletions(-)

---
28 cross.patch | (download)

configure.in | 160 49 + 111 - 0 !
1 file changed, 49 insertions(+), 111 deletions(-)

 make cross compilation work

This patch essentially replaces most AC_TRY_RUN with something "better".
Dependening on the use case that may be AC_TRY_COMPILE, AC_COMPUTE_INT or even
AC_CHECK_TYPE. Uses beyond cross compilation:
 * Significant simplification of the code.
 * Some checks become cacheable.

29 suggest tk.patch | (download)

example/multixterm | 5 4 + 1 - 0 !
example/tknewsbiff | 5 4 + 1 - 0 !
example/tkpasswd | 5 4 + 1 - 0 !
example/xpstat | 4 4 + 0 - 0 !
4 files changed, 16 insertions(+), 3 deletions(-)

---