summaryrefslogtreecommitdiffstats
path: root/meta/classes/insane.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/insane.bbclass')
-rw-r--r--meta/classes/insane.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 425e93a8fc..1fb89704a3 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -116,6 +116,8 @@ def package_qa_get_machine_dict():
116WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries unsafe-references-in-scripts staticdev libdir" 116WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries unsafe-references-in-scripts staticdev libdir"
117ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms" 117ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms"
118 118
119ALL_QA = "${WARN_QA} ${ERROR_QA}"
120
119def package_qa_clean_path(path,d): 121def package_qa_clean_path(path,d):
120 """ Remove the common prefix from the path. In this case it is the TMPDIR""" 122 """ Remove the common prefix from the path. In this case it is the TMPDIR"""
121 return path.replace(d.getVar('TMPDIR',True),"") 123 return path.replace(d.getVar('TMPDIR',True),"")
@@ -722,7 +724,7 @@ python do_package_qa () {
722 rdepends_sane = False 724 rdepends_sane = False
723 725
724 726
725 if 'libdir' in (d.getVar("WARN_QA", True) or "").split(): 727 if 'libdir' in d.getVar("ALL_QA", True).split():
726 package_qa_check_libdir(d) 728 package_qa_check_libdir(d)
727 729
728 if not walk_sane or not rdepends_sane: 730 if not walk_sane or not rdepends_sane:
@@ -787,7 +789,7 @@ do_populate_sysroot[postfuncs] += "do_qa_staging "
787do_configure[postfuncs] += "do_qa_configure " 789do_configure[postfuncs] += "do_qa_configure "
788 790
789python () { 791python () {
790 tests = d.getVar('WARN_QA', True) + " " + d.getVar('ERROR_QA', True) 792 tests = d.getVar('ALL_QA', True).split()
791 if tests.find("desktop") != -1: 793 if "desktop" in tests:
792 d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native") 794 d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native")
793} 795}