chrpath: properly handle rootdir with '..' in path
authorMatt Cowell <matt.cowell@nsn.com>
Thu, 17 Apr 2014 19:23:13 +0000 (14:23 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 11 May 2014 11:27:21 +0000 (12:27 +0100)
commit63628d3738e2f2957edbd41a24c677d4e9740873
tree12299baf67f58ada316b8c08c6993e1b607a44fa
parent0d5cf626e98402334f2efb85208c735f2aae5189
chrpath: properly handle rootdir with '..' in path

When there is a '..' in the rootdir path, rootdir will not be a substring of
fpath.  This causes an incorrect rpath of the difference between the workdir
and the sysroot to be computed, which is incorrect.  Normalizing basedir
fixes this issue.

(From OE-Core rev: 753cfcadd8cc683e69b6707b823dc49dfb34ab0b)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/chrpath.bbclass