WARN_QA ?= "ldflags useless-rpaths rpaths unsafe-references-in-binaries unsafe-references-in-scripts staticdev libdir"
ERROR_QA ?= "dev-so debug-deps dev-deps debug-files arch la2 pkgconfig la perms"
+ALL_QA = "${WARN_QA} ${ERROR_QA}"
+
def package_qa_clean_path(path,d):
""" Remove the common prefix from the path. In this case it is the TMPDIR"""
return path.replace(d.getVar('TMPDIR',True),"")
rdepends_sane = False
- if 'libdir' in (d.getVar("WARN_QA", True) or "").split():
+ if 'libdir' in d.getVar("ALL_QA", True).split():
package_qa_check_libdir(d)
if not walk_sane or not rdepends_sane:
do_configure[postfuncs] += "do_qa_configure "
python () {
- tests = d.getVar('WARN_QA', True) + " " + d.getVar('ERROR_QA', True)
- if tests.find("desktop") != -1:
+ tests = d.getVar('ALL_QA', True).split()
+ if "desktop" in tests:
d.appendVar("PACKAGE_DEPENDS", "desktop-file-utils-native")
}