diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 13:54:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-12-07 15:04:26 +0000 |
commit | e859cdc479594f4ff8bd1b70c4e5c7ccc78f995e (patch) | |
tree | 3dbe62142c45a2b7817391bc741b1b3fbaac1493 /meta/classes/insane.bbclass | |
parent | 9a8382422ddbb0972dc25b752204f4908bb9857c (diff) | |
download | openembedded-core-contrib-e859cdc479594f4ff8bd1b70c4e5c7ccc78f995e.tar.gz |
Recipe specific sysroot WIPrpurdie/wip-rss
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r-- | meta/classes/insane.bbclass | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 5ddb87b3f7..788eb606a5 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -795,6 +795,7 @@ def package_qa_check_staged(path,d): sane = True tmpdir = d.getVar('TMPDIR', True) workdir = os.path.join(tmpdir, "work") + recipesysroot = d.getVar("RECIPE_SYSROOT", True) if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d): pkgconfigcheck = workdir @@ -810,12 +811,14 @@ def package_qa_check_staged(path,d): if file.endswith(".la"): with open(path) as f: file_content = f.read() + file_content = file_content.replace(recipesysroot, "") if workdir in file_content: error_msg = "%s failed sanity test (workdir) in path %s" % (file,root) sane = package_qa_handle_error("la", error_msg, d) elif file.endswith(".pc"): with open(path) as f: file_content = f.read() + file_content = file_content.replace(recipesysroot, "") if pkgconfigcheck in file_content: error_msg = "%s failed sanity test (tmpdir) in path %s" % (file,root) sane = package_qa_handle_error("pkgconfig", error_msg, d) |