diff options
Diffstat (limited to 'meta/recipes-devtools/expect')
-rw-r--r-- | meta/recipes-devtools/expect/expect/0001-configure.in.patch | 108 | ||||
-rw-r--r-- | meta/recipes-devtools/expect/expect/0002-tcl.m4.patch | 17 | ||||
-rw-r--r-- | meta/recipes-devtools/expect/expect_5.45.bb | 51 |
3 files changed, 176 insertions, 0 deletions
diff --git a/meta/recipes-devtools/expect/expect/0001-configure.in.patch b/meta/recipes-devtools/expect/expect/0001-configure.in.patch new file mode 100644 index 0000000000..7595a254a8 --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0001-configure.in.patch | |||
@@ -0,0 +1,108 @@ | |||
1 | Allow cross compiling. | ||
2 | |||
3 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- | ||
6 | diff -uNr a/configure.in b/configure.in | ||
7 | --- a/configure.in 2012-12-14 15:31:32.623180450 +0100 | ||
8 | +++ b/configure.in 2012-12-14 15:53:34.518233519 +0100 | ||
9 | @@ -481,7 +481,7 @@ | ||
10 | , | ||
11 | AC_MSG_RESULT(no) | ||
12 | , | ||
13 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
14 | + AC_MSG_RESULT(no) | ||
15 | ) | ||
16 | |||
17 | AC_MSG_CHECKING([if any value exists for WNOHANG]) | ||
18 | @@ -506,7 +506,9 @@ | ||
19 | AC_MSG_RESULT(no) | ||
20 | AC_DEFINE(WNOHANG_BACKUP_VALUE, 1) | ||
21 | , | ||
22 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
23 | + AC_MSG_RESULT(yes) | ||
24 | + AC_DEFINE_UNQUOTED(WNOHANG_BACKUP_VALUE, `cat wnohang`) | ||
25 | + rm -f wnohang | ||
26 | ) | ||
27 | |||
28 | # | ||
29 | @@ -574,7 +576,8 @@ | ||
30 | AC_DEFINE(REARM_SIG) | ||
31 | , | ||
32 | AC_MSG_RESULT(no) | ||
33 | -, AC_MSG_WARN([Expect can't be cross compiled]) | ||
34 | +, | ||
35 | + AC_MSG_RESULT(no) | ||
36 | ) | ||
37 | |||
38 | # HPUX7 has trouble with the big cat so split it | ||
39 | @@ -725,7 +728,9 @@ | ||
40 | , | ||
41 | AC_MSG_RESULT(no) | ||
42 | , | ||
43 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
44 | + AC_MSG_RESULT(yes) | ||
45 | + AC_DEFINE(HAVE_SGTTYB) | ||
46 | + PTY_TYPE=sgttyb | ||
47 | ) | ||
48 | |||
49 | # mach systems have include files for unimplemented features | ||
50 | @@ -749,7 +754,9 @@ | ||
51 | , | ||
52 | AC_MSG_RESULT(no) | ||
53 | , | ||
54 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
55 | + AC_DEFINE(HAVE_TERMIO) | ||
56 | + PTY_TYPE=termios | ||
57 | + AC_MSG_RESULT(yes) | ||
58 | ) | ||
59 | |||
60 | # now check for the new style ttys (not yet posix) | ||
61 | @@ -771,7 +778,9 @@ | ||
62 | , | ||
63 | AC_MSG_RESULT(no) | ||
64 | , | ||
65 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
66 | + AC_DEFINE(HAVE_TERMIOS) | ||
67 | + PTY_TYPE=termios | ||
68 | + AC_MSG_RESULT(yes) | ||
69 | ) | ||
70 | fi | ||
71 | |||
72 | @@ -794,7 +803,7 @@ | ||
73 | , | ||
74 | AC_MSG_RESULT(no) | ||
75 | , | ||
76 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
77 | + AC_MSG_RESULT(no) | ||
78 | ) | ||
79 | |||
80 | AC_MSG_CHECKING([if TIOCGWINSZ in termios.h]) | ||
81 | @@ -816,7 +825,7 @@ | ||
82 | , | ||
83 | AC_MSG_RESULT(no) | ||
84 | , | ||
85 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
86 | + AC_MSG_RESULT(no) | ||
87 | ) | ||
88 | |||
89 | # finally check for Cray style ttys | ||
90 | @@ -837,7 +846,7 @@ | ||
91 | , | ||
92 | AC_MSG_RESULT(no) | ||
93 | , | ||
94 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
95 | + AC_MSG_RESULT(no) | ||
96 | ) | ||
97 | |||
98 | # | ||
99 | @@ -889,7 +898,8 @@ | ||
100 | AC_MSG_RESULT(yes), | ||
101 | AC_MSG_RESULT(no) | ||
102 | , | ||
103 | - AC_MSG_ERROR([Expect can't be cross compiled]) | ||
104 | + AC_DEFINE(HAVE_SV_TIMEZONE) | ||
105 | + AC_MSG_RESULT(yes), | ||
106 | ) | ||
107 | |||
108 | |||
diff --git a/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch b/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch new file mode 100644 index 0000000000..dc4c6ba406 --- /dev/null +++ b/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch | |||
@@ -0,0 +1,17 @@ | |||
1 | Use proper -L path when cross compiling. | ||
2 | |||
3 | Signed-off-by: Anders Roxell <anders.roxell@enea.com> | ||
4 | Upstream-Status: Pending | ||
5 | --- | ||
6 | diff -uNr a/tclconfig/tcl.m4 b/tclconfig/tcl.m4 | ||
7 | --- a/tclconfig/tcl.m4 2012-12-14 09:16:58.789861281 +0100 | ||
8 | +++ b/tclconfig/tcl.m4 2012-12-14 10:55:43.542297010 +0100 | ||
9 | @@ -371,7 +371,7 @@ | ||
10 | # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC | ||
11 | # instead of TCL_BUILD_LIB_SPEC since it will work with both an | ||
12 | # installed and uninstalled version of Tcl. | ||
13 | - if test -f "${TCL_BIN_DIR}/Makefile" ; then | ||
14 | + if test -f "${TCL_BIN_DIR}/Makefile" || test "$cross_compiling" = yes; then | ||
15 | TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" | ||
16 | TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" | ||
17 | TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" | ||
diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb new file mode 100644 index 0000000000..3278e0f7ef --- /dev/null +++ b/meta/recipes-devtools/expect/expect_5.45.bb | |||
@@ -0,0 +1,51 @@ | |||
1 | DESCRIPTION = "expect." | ||
2 | HOMEPAGE = " http://expect.nist.gov" | ||
3 | LICENSE="GPLv3+" | ||
4 | SECTION = "devel" | ||
5 | |||
6 | LIC_FILES_CHKSUM = "file://README;md5=2862a5993e5f43b368a49cfaad5bead6" | ||
7 | PR = "r1" | ||
8 | DEPENDS = "tcl" | ||
9 | RDEPENDS_${PN} = "tcl" | ||
10 | ALLOW_EMPTY_${PN} = "1" | ||
11 | |||
12 | FILESEXTRAPATHS_prepend := "${THISDIR}/expect:" | ||
13 | |||
14 | S = "${WORKDIR}/${BPN}${PV}" | ||
15 | |||
16 | SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/5.45/expect5.45.tar.gz \ | ||
17 | file://0001-configure.in.patch \ | ||
18 | file://0002-tcl.m4.patch \ | ||
19 | " | ||
20 | EXTRA_OECONF += "--includedir=${STAGING_INCDIR} \ | ||
21 | --with-tcl=${STAGING_LIBDIR} \ | ||
22 | --with-tclinclude=${STAGING_INCDIR} \ | ||
23 | --enable-shared \ | ||
24 | --enable-threads \ | ||
25 | --disable-rpath \ | ||
26 | " | ||
27 | EXTRA_OEMAKE_install = " 'SCRIPTS=' " | ||
28 | FILES_${PN}-dbg += "${libdir}/expect5.45/.debug \ | ||
29 | ${libdir}/.debug \ | ||
30 | " | ||
31 | FILES_${PN}-dev = "${libdir_native}/expect${PV}/libexpect*.so \ | ||
32 | ${STAGING_INCDIR}/expect.h \ | ||
33 | ${STAGING_INCDIR}/expect_tcl.h \ | ||
34 | ${STAGING_INCDIR}/expect_comm.h \ | ||
35 | ${STAGING_INCDIR}/tcldbg.h \ | ||
36 | ${includedir}/*.h \ | ||
37 | " | ||
38 | |||
39 | FILES_${PN} += "${libdir}/libexpect${PV}.so \ | ||
40 | ${libdir}/expect${PV}/* \ | ||
41 | " | ||
42 | inherit autotools | ||
43 | do_install_append() { | ||
44 | install -m 0755 ${D}${libdir}/expect${PV}/libexpect*.so ${D}${libdir}/ | ||
45 | install -m 0755 ${S}/fixline1 ${D}${libdir_native}/expect${PV}/ | ||
46 | install -m 0755 ${S}/example/* ${D}${libdir_native}/expect${PV}/ | ||
47 | rm ${D}${libdir}/expect${PV}/libexpect*.so | ||
48 | } | ||
49 | |||
50 | SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b" | ||
51 | SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040" | ||