[oe-commits] Chong Lu : expect: fix shared object file cannot be opened

git at git.openembedded.org git at git.openembedded.org
Sat Aug 23 22:02:22 UTC 2014


Module: openembedded-core.git
Branch: master
Commit: 43813ddfa8cade9ea1c5de24dcd4e275b1486cff
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=43813ddfa8cade9ea1c5de24dcd4e275b1486cff

Author: Chong Lu <Chong.Lu at windriver.com>
Date:   Thu Aug 21 09:27:13 2014 +0800

expect: fix shared object file cannot be opened

When we require Expect package in tcl script, we will get following error:

couldn't load file "/usr/lib/expect5.45/libexpect5.45.so": /usr/lib/expect5.45/libexpect5.45.so: cannot open shared object file: No such file or directory
    while executing
"load /usr/lib/expect5.45/libexpect5.45.so"
    ("package ifneeded Expect 5.45" script)
    invoked from within
"package require Expect"
    (file "hello.tcl" line 3)

This patch fixes this issue.

Signed-off-by: Chong Lu <Chong.Lu at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/recipes-devtools/expect/expect_5.45.bb | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-devtools/expect/expect_5.45.bb b/meta/recipes-devtools/expect/expect_5.45.bb
index 970f4a5..3e839a2 100644
--- a/meta/recipes-devtools/expect/expect_5.45.bb
+++ b/meta/recipes-devtools/expect/expect_5.45.bb
@@ -35,6 +35,7 @@ do_install_append() {
         install -m 0755 ${S}/fixline1           ${D}${libdir}/expect${PV}/
         install -m 0755 ${S}/example/*          ${D}${libdir}/expect${PV}/
         rm ${D}${libdir}/expect${PV}/libexpect*.so
+        sed -e 's|$dir|${libdir}|' -i ${D}${libdir}/expect${PV}/pkgIndex.tcl
 }
 
 EXTRA_OECONF += "--includedir=${STAGING_INCDIR} \



More information about the Openembedded-commits mailing list