package.bbclass: set PATH before running OBJDUMP to get dependencies calculated
authorMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 12 Dec 2006 16:41:25 +0000 (16:41 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 12 Dec 2006 16:41:25 +0000 (16:41 +0000)
I do not know does this is best way of fixing it but it is better to have it in
repository then having rootfs images without libc.

classes/package.bbclass

index c53b3ee..132fdcb 100644 (file)
@@ -576,6 +576,7 @@ python package_do_shlibs() {
                                path = os.path.join(root, file)
                                if os.access(path, os.X_OK) or lib_re.match(file):
                                        cmd = bb.data.getVar('OBJDUMP', d, 1) + " -p " + path + " 2>/dev/null"
+                                       cmd = "PATH=\"%s\" %s" % (bb.data.getVar('PATH', d, 1), cmd)
                                        fd = os.popen(cmd)
                                        lines = fd.readlines()
                                        fd.close()