[OE-core] [PATCH V4] expect: Add recipe

Khem Raj raj.khem at gmail.com
Wed Nov 6 18:58:59 UTC 2013


On Wednesday, November 6, 2013, Saul Wold wrote:

> On 11/05/2013 08:58 PM, Khem Raj wrote:
>
>>
>> On Nov 5, 2013, at 8:35 PM, Saul Wold <sgw at linux.intel.com> wrote:
>>
>>  On 11/04/2013 07:41 PM, Khem Raj wrote:
>>>
>>>> From: Mihaela Sendrea <mihaela.sendrea at enea.com>
>>>>
>>>> Nedeed for gcc-runtime tests.
>>>>
>>>>
>>> i am seeing configure fails with this patch
>>>
>>>  configure:2350: checking for correct TEA configuration
>>>> configure:2363: result: ok (TEA 3.9)
>>>> configure:2430: configuring expect 5.45
>>>> configure:2508: checking for Tcl configuration
>>>> configure:2528: error: /srv/ssd/sgw/builds/world/tmp/sysroots/genericx86/usr/lib
>>>> directory doesn't contain tclConfig.sh
>>>>
>>>
>>
>> OK what happens if you readd DEPENDS += “tcl” ?
>> since you have it reproduced may be its best to try it out.
>>
>>
> yup, DEPENDS does the trick, so there might be some issue someplace else.
>
>
thx i will send an update v5 but i wonder why RDEPENDS didnt turn into a
depends may be bitbake issue


> Sau!
>
>
>
>  Sau!
>
>
>
>  Fixed build on multilib and add patch to remove
> !/depot/path/expect -f
> which caused rpm to puke on rfs generation
>
> Signed-off-by: Mihaela Sendrea <mihaela.sendrea at enea.com>
> Signed-off-by: Khem Raj <raj.khem at gmail.com>
> ---
>   .../expect/expect/0001-configure.in.patch          | 108
> ++++++++++++++++
>   .../expect/expect/0002-tcl.m4.patch                |  17 +++
>   .../expect/expect/01-example-shebang.patch         | 144
> +++++++++++++++++++++
>   meta/recipes-devtools/expect/expect_5.45.bb        |  60 +++++++++
>   4 files changed, 329 insertions(+)
>   create mode 100644 meta/recipes-devtools/expect/
> expect/0001-configure.in.patch
>   create mode 100644 meta/recipes-devtools/expect/expect/0002-tcl.m4.patch
>   create mode 100644 meta/recipes-devtools/expect/
> expect/01-example-shebang.patch
>   create mode 100644 meta/recipes-devtools/expect/expect_5.45.bb
>
> 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 0000000..7595a25
> --- /dev/null
> +++ b/meta/recipes-devtools/expect/expect/0001-configure.in.patch
> @@ -0,0 +1,108 @@
> +Allow cross compiling.
> +
> +Signed-off-by: Anders Roxell <anders.roxell at enea.com>
> +Upstream-Status: Pending
> +---
> +diff -uNr a/configure.in b/configure.in
> +--- a/configure.in     2012-12-14 15:31:32.623180450 +0100
> ++++ b/configure.in     2012-12-14 15:53:34.518233519 +0100
> +@@ -481,7 +481,7 @@
> + ,
> +       AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_MSG_RESULT(no)
> + )
> +
> + AC_MSG_CHECKING([if any value exists for WNOHANG])
> +@@ -506,7 +506,9 @@
> +       AC_MSG_RESULT(no)
> +       AC_DEFINE(WNOHANG_BACKUP_VALUE, 1)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_MSG_RESULT(yes)
> ++      AC_DEFINE_UNQUOTED(WNOHANG_BACKUP_VALUE, `cat wnohang`)
> ++      rm -f wnohang
> + )
> +
> + #
> +@@ -574,7 +576,8 @@
> +       AC_DEFINE(REARM_SIG)
> + ,
> +       AC_MSG_RESULT(no)
> +-, AC_MSG_WARN([Expect can't be cross compiled])
> ++,
> ++      AC_MSG_RESULT(no)
> + )
> +
> + # HPUX7 has trouble with the big cat so split it
> +@@ -725,7 +728,9 @@
> + ,
> +         AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++        AC_MSG_RESULT(yes)
> ++        AC_DEFINE(HAVE_SGTTYB)
> ++        PTY_TYPE=sgttyb
> + )
> +
> + # mach systems have include files for unimplemented features
> +@@ -749,7 +754,9 @@
> + ,
> +         AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++        AC_DEFINE(HAVE_TERMIO)
> ++        PTY_TYPE=termios
> ++        AC_MSG_RESULT(yes)
> + )
> +
> +   # now check for the new style ttys (not yet posix)
> +@@ -771,7 +778,9 @@
> +   ,
> +         AC_MSG_RESULT(no)
> +   ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++        AC_DEFINE(HAVE_TERMIOS)
> ++        PTY_TYPE=termios
> ++        AC_MSG_RESULT(yes)
> +   )
> + fi
> +
> +@@ -794,7 +803,7 @@
> + ,
> +       AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_MSG_RESULT(no)
> + )
> +
> + AC_MSG_CHECKING([if TIOCGWINSZ in termios.h])
> +@@ -816,7 +825,7 @@
> + ,
> +       AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_MSG_RESULT(no)
> + )
> +
> + # finally check for Cray style ttys
> +@@ -837,7 +846,7 @@
> + ,
> +       AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_MSG_RESULT(no)
> + )
> +
> + #
> +@@ -889,7 +898,8 @@
> +       AC_MSG_RESULT(yes),
> +       AC_MSG_RESULT(no)
> + ,
> +-      AC_MSG_ERROR([Expect can't be cross compiled])
> ++      AC_DEFINE(HAVE_SV_TIMEZONE)
> ++      AC_MSG_RESULT(yes),
> + )
> +
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20131106/6645b42d/attachment-0002.html>


More information about the Openembedded-core mailing list