summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2014-03-18 15:12:08 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-19 14:42:43 +0000
commit779f5936f18c1c974cde477c68e775e95668cb08 (patch)
tree6d2545a3296972ddad11ad3a3ccdc79182fb3fa0
parentaec1194c120e5eae12cee18741d368ac3bb11722 (diff)
downloadpoky-779f5936f18c1c974cde477c68e775e95668cb08.tar.gz
expect: fix do_install failure on SLED 11.2
Previously we were encountering do_install failures on older machines like SLED 11.2. These machines have relatively lower versions of glibc. tclsh8.6: /lib64/libc.so.6: version `GLIBC_2.14' not found The above failure is due to that fact that we are using the fixline1 tcl script to install commands under the example directory. The purpose of fixline1 is to ensure that the installed scripts begin with '#!/bin/sh'. However, the scripts under the example directory have already got the correct first line. That's why we don't need to modify anything and could just copy them. (From OE-Core rev: a8fe5fd62fd98e33180f3de700ed01f9efb74a50) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch34
-rw-r--r--meta/recipes-devtools/expect/expect_5.45.bb1
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch b/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch
new file mode 100644
index 0000000000..274ad86353
--- /dev/null
+++ b/meta/recipes-devtools/expect/expect/0001-expect-install-scripts-without-using-the-fixline1-tc.patch
@@ -0,0 +1,34 @@
1Upstream-Status: Inappropriate [wrlinux specific]
2
3Subject: expect: install scripts without using the fixline1 tcl script
4
5On older machines like SLED11.2, we are encountering do_install failures
6complaining that 'GLIBC_2.14' is not found in /lib64/libc.so.6 but is required
7by libtcl8.6.so.0.
8
9This is because that we're executing the fixline1 tcl script which requires
10libtcl8.6.so.0 in sysroot. However, all commands in SCRIPTS already have got
11the correct first line, that is '#!/bin/sh'. We don't need to modify anything.
12That's why we could just copy them.
13
14Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
15---
16 Makefile.in | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/Makefile.in b/Makefile.in
20index c05c880..f1394ff 100644
21--- a/Makefile.in
22+++ b/Makefile.in
23@@ -380,7 +380,7 @@ dist: dist-clean doc
24 cp $(DIST_ROOT)/$(PKG_DIR).tar.gz $(top_builddir)
25
26 $(SCRIPTS):
27- $(TCLSH) $(srcdir)/fixline1 $(SHORT_BINDIR) < $(srcdir)/example/$@ > $@
28+ cp $(srcdir)/example/$@ $@
29
30 ## We cannot use TCL_LIBS below (after TCL_LIB_SPEC) because its
31 ## expansion references the contents of LIBS, which contains linker
32--
331.7.10.4
34
diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb
index 037aaaa74c..970f4a5ccc 100644
--- a/meta/recipes-devtools/expect/expect_5.45.bb
+++ b/meta/recipes-devtools/expect/expect_5.45.bb
@@ -22,6 +22,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/expect/Expect/${PV}/${BPN}${PV}.tar.gz \
22 file://0001-configure.in.patch \ 22 file://0001-configure.in.patch \
23 file://0002-tcl.m4.patch \ 23 file://0002-tcl.m4.patch \
24 file://01-example-shebang.patch \ 24 file://01-example-shebang.patch \
25 file://0001-expect-install-scripts-without-using-the-fixline1-tc.patch \
25 " 26 "
26SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b" 27SRC_URI[md5sum] = "44e1a4f4c877e9ddc5a542dfa7ecc92b"
27SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040" 28SRC_URI[sha256sum] = "b28dca90428a3b30e650525cdc16255d76bb6ccd65d448be53e620d95d5cc040"