diff options
author | Patrick Williams <patrick@stwcx.xyz> | 2016-08-17 14:31:25 -0500 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2016-08-22 16:43:26 +0000 |
commit | 60f9d69e016b11c468c98ea75ba0a60c44afbbc4 (patch) | |
tree | ecb49581a9e41a37943c22cd9ef3f63451b20ee7 /import-layers/yocto-poky/meta/recipes-devtools/expect/expect | |
parent | e18c61205e0234b03697129c20cc69c9b3940efc (diff) | |
download | talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.tar.gz talos-openbmc-60f9d69e016b11c468c98ea75ba0a60c44afbbc4.zip |
yocto-poky: Move to import-layers subdir
We are going to import additional layers, so create a subdir to
hold all of the layers that we import with git-subtree.
Change-Id: I6f732153a22be8ca663035c518837e3cc5ec0799
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-devtools/expect/expect')
4 files changed, 303 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-configure.in.patch b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-configure.in.patch new file mode 100644 index 000000000..7595a254a --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-configure.in.patch @@ -0,0 +1,108 @@ +Allow cross compiling. + +Signed-off-by: Anders Roxell <anders.roxell@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), + ) + + diff --git a/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch new file mode 100644 index 000000000..274ad8635 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch @@ -0,0 +1,34 @@ +Upstream-Status: Inappropriate [wrlinux specific] + +Subject: expect: install scripts without using the fixline1 tcl script + +On older machines like SLED11.2, we are encountering do_install failures +complaining that 'GLIBC_2.14' is not found in /lib64/libc.so.6 but is required +by libtcl8.6.so.0. + +This is because that we're executing the fixline1 tcl script which requires +libtcl8.6.so.0 in sysroot. However, all commands in SCRIPTS already have got +the correct first line, that is '#!/bin/sh'. We don't need to modify anything. +That's why we could just copy them. + +Signed-off-by: Chen Qi <Qi.Chen@windriver.com> +--- + Makefile.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.in b/Makefile.in +index c05c880..f1394ff 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -380,7 +380,7 @@ dist: dist-clean doc + cp $(DIST_ROOT)/$(PKG_DIR).tar.gz $(top_builddir) + + $(SCRIPTS): +- $(TCLSH) $(srcdir)/fixline1 $(SHORT_BINDIR) < $(srcdir)/example/$@ > $@ ++ cp $(srcdir)/example/$@ $@ + + ## We cannot use TCL_LIBS below (after TCL_LIB_SPEC) because its + ## expansion references the contents of LIBS, which contains linker +-- +1.7.10.4 + diff --git a/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch new file mode 100644 index 000000000..dc4c6ba40 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/0002-tcl.m4.patch @@ -0,0 +1,17 @@ +Use proper -L path when cross compiling. + +Signed-off-by: Anders Roxell <anders.roxell@enea.com> +Upstream-Status: Pending +--- +diff -uNr a/tclconfig/tcl.m4 b/tclconfig/tcl.m4 +--- a/tclconfig/tcl.m4 2012-12-14 09:16:58.789861281 +0100 ++++ b/tclconfig/tcl.m4 2012-12-14 10:55:43.542297010 +0100 +@@ -371,7 +371,7 @@ + # of TCL_BUILD_LIB_SPEC. An extension should make use of TCL_LIB_SPEC + # instead of TCL_BUILD_LIB_SPEC since it will work with both an + # installed and uninstalled version of Tcl. +- if test -f "${TCL_BIN_DIR}/Makefile" ; then ++ if test -f "${TCL_BIN_DIR}/Makefile" || test "$cross_compiling" = yes; then + TCL_LIB_SPEC="${TCL_BUILD_LIB_SPEC}" + TCL_STUB_LIB_SPEC="${TCL_BUILD_STUB_LIB_SPEC}" + TCL_STUB_LIB_PATH="${TCL_BUILD_STUB_LIB_PATH}" diff --git a/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/01-example-shebang.patch b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/01-example-shebang.patch new file mode 100644 index 000000000..8597f3138 --- /dev/null +++ b/import-layers/yocto-poky/meta/recipes-devtools/expect/expect/01-example-shebang.patch @@ -0,0 +1,144 @@ +Author: Mike Markley <mike@markley.org> +Author: Sergei Golovan <sgolovan@debian.org> +Description: Fixes shebangs in examples (Closes: #152367). + +Backported from Debian + +Upstream-Status: Pending +Index: expect5.45/example/beer.exp +=================================================================== +--- expect5.45.orig/example/beer.exp 2006-01-25 13:51:39.000000000 -0800 ++++ expect5.45/example/beer.exp 2013-11-01 17:35:19.817318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect -f ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + # 99 bottles of beer on the wall, Expect-style + # Author: Don Libes <libes@nist.gov> +Index: expect5.45/example/expectd.proto +=================================================================== +--- expect5.45.orig/example/expectd.proto 2010-07-02 09:03:31.000000000 -0700 ++++ expect5.45/example/expectd.proto 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,10 @@ +-#!/depot/tcl/src/expect/e -- ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect ++ + # Description: Simple fragment to begin a telnet daemon + # For more information, see Chapter 17 of "Exploring Expect" + # Author: Don Libes, NIST +Index: expect5.45/example/irsh +=================================================================== +--- expect5.45.orig/example/irsh 2010-07-02 09:03:31.000000000 -0700 ++++ expect5.45/example/irsh 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect -- ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + # Do rsh interactively. For example, consider the following command: + # rsh <remote> ls -l "|" more +Index: expect5.45/example/passwd.cgi +=================================================================== +--- expect5.45.orig/example/passwd.cgi 2000-01-06 15:22:07.000000000 -0800 ++++ expect5.45/example/passwd.cgi 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect -- ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + # This is a CGI script to process requests created by the accompanying + # passwd.html form. This script is pretty basic, although it is +Index: expect5.45/example/passwdprompt +=================================================================== +--- expect5.45.orig/example/passwdprompt 2003-09-05 12:01:59.000000000 -0700 ++++ expect5.45/example/passwdprompt 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + # This script prompts for a passwd from stdin while echoing *'s + +Index: expect5.45/example/reprompt +=================================================================== +--- expect5.45.orig/example/reprompt 2000-01-06 15:22:07.000000000 -0800 ++++ expect5.45/example/reprompt 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect -- ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + # Name: reprompt + # Description: reprompt every so often until user enters something +Index: expect5.45/example/term_expect +=================================================================== +--- expect5.45.orig/example/term_expect 2005-02-15 10:11:31.000000000 -0800 ++++ expect5.45/example/term_expect 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expectk ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec wish "$0" ${1+"$@"} ++ ++package require Expect + + # Name: tkterm - terminal emulator using Expect and Tk text widget, v3.0 + # Author: Don Libes, July '94 +Index: expect5.45/example/vrfy +=================================================================== +--- expect5.45.orig/example/vrfy 2010-07-02 09:03:31.000000000 -0700 ++++ expect5.45/example/vrfy 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,9 @@ +-#!/depot/path/expect -f ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect + + + # separate address into user and host +Index: expect5.45/example/xrlogin +=================================================================== +--- expect5.45.orig/example/xrlogin 2000-01-06 15:22:08.000000000 -0800 ++++ expect5.45/example/xrlogin 2013-11-01 17:35:19.821318341 -0700 +@@ -1,4 +1,10 @@ +-#!/depot/path/expect -- ++#!/bin/sh ++# -*- tcl -*- ++# The next line is executed by /bin/sh, but not tcl \ ++exec tclsh "$0" ${1+"$@"} ++ ++package require Expect ++ + # xrlogin - rlogin but with current DISPLAY + # + # You can extend this idea to save any arbitrary information across rlogin |