components/tcl/expect/patches/openpty.patch
author Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
Thu, 18 Feb 2016 18:29:18 -0800
changeset 5475 8ed6e5dc51bc
permissions -rw-r--r--
22742744 Expect should avoid using openpty unless it properly handles it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5475
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     1
Patch to disable openpty function in expect.
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     2
This bug originated in-house. This is a temporary
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     3
fix until 22706805 is fixed and expect is modified
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     4
to use openpty correctly on Solaris and thus
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     5
will not be submitted upstream. (see bug 22742744)
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     6
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     7
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     8
--- expect5.45/configure.in.orig	2010-08-27 14:51:53.000000000 -0700
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
     9
+++ expect5.45/configure.in	2016-02-17 17:25:12.678863161 -0800
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    10
@@ -207,7 +207,7 @@
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    11
 
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    12
 ######################################################################
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    13
 # Check for FreeBSD/NetBSD openpty()
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    14
-unset ac_cv_func_openpty
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    15
+ac_cv_func_openpty=no
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    16
 
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    17
 AC_CHECK_FUNC(openpty, AC_DEFINE(HAVE_OPENPTY) openpty=1 , openpty=0)
8ed6e5dc51bc 22742744 Expect should avoid using openpty unless it properly handles it
Bibin Thomas K- <Bibin.Thomas@Oracle.COM>
parents:
diff changeset
    18
 if test $openpty -eq 0 ; then