diff options
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 7332e45453..3cf86c12c3 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass | |||
@@ -827,6 +827,7 @@ def package_qa_check_staged(path,d): | |||
827 | sane = True | 827 | sane = True |
828 | tmpdir = d.getVar('TMPDIR') | 828 | tmpdir = d.getVar('TMPDIR') |
829 | workdir = os.path.join(tmpdir, "work") | 829 | workdir = os.path.join(tmpdir, "work") |
830 | recipesysroot = d.getVar("RECIPE_SYSROOT") | ||
830 | 831 | ||
831 | if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d): | 832 | if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d): |
832 | pkgconfigcheck = workdir | 833 | pkgconfigcheck = workdir |
@@ -842,12 +843,14 @@ def package_qa_check_staged(path,d): | |||
842 | if file.endswith(".la"): | 843 | if file.endswith(".la"): |
843 | with open(path) as f: | 844 | with open(path) as f: |
844 | file_content = f.read() | 845 | file_content = f.read() |
846 | file_content = file_content.replace(recipesysroot, "") | ||
845 | if workdir in file_content: | 847 | if workdir in file_content: |
846 | error_msg = "%s failed sanity test (workdir) in path %s" % (file,root) | 848 | error_msg = "%s failed sanity test (workdir) in path %s" % (file,root) |
847 | sane = package_qa_handle_error("la", error_msg, d) | 849 | sane = package_qa_handle_error("la", error_msg, d) |
848 | elif file.endswith(".pc"): | 850 | elif file.endswith(".pc"): |
849 | with open(path) as f: | 851 | with open(path) as f: |
850 | file_content = f.read() | 852 | file_content = f.read() |
853 | file_content = file_content.replace(recipesysroot, "") | ||
851 | if pkgconfigcheck in file_content: | 854 | if pkgconfigcheck in file_content: |
852 | error_msg = "%s failed sanity test (tmpdir) in path %s" % (file,root) | 855 | error_msg = "%s failed sanity test (tmpdir) in path %s" % (file,root) |
853 | sane = package_qa_handle_error("pkgconfig", error_msg, d) | 856 | sane = package_qa_handle_error("pkgconfig", error_msg, d) |