]> code.ossystems Code Review - openembedded-core.git/commitdiff
glibc-scripts: add RDEPENDS on libsotruss package required by sotruss script
authorJagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Sun, 28 Aug 2016 18:31:03 +0000 (00:01 +0530)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 3 Sep 2016 08:58:45 +0000 (09:58 +0100)
It solves below error observed on qemux86 target:
root@qemux86:~# sotruss ./hello
ERROR: ld.so: object '/usr/$LIB/audit/sotruss-lib.so' cannot be loaded as audit
interface: cannot open shared object file; ignored.
Hello World
root@qemux86:~#

With this change, we get:
root@qemux86:~# sotruss ./hello
          hello -> libc.so.6      :*__libc_start_main(0x8048300, 0x1,
0xbfc86274)
          hello -> libc.so.6      :*puts(0x804851c, 0xb74af000, 0x0)
Hello World
root@qemux86:~#

Signed-off-by: Jagadeesh Krishnanjanappa <jkrishnanjanappa@mvista.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/glibc/glibc-scripts.inc

index 3a06773d66d3206e45bdb426adefdaea3474e30b..bce0a42106eb48ec6c293629dd150a1bc3adeb7e 100644 (file)
@@ -14,3 +14,7 @@ do_install() {
                install -m 0755 ${SRC}/$i ${D}${bindir}/
        done
 }
+
+# sotruss script requires sotruss-lib.so (given by libsotruss package), 
+# to produce trace of the library calls.
+RDEPENDS_${PN} += "libsotruss"