diff options
author | Saul Wold <sgw@linux.intel.com> | 2012-09-12 17:54:00 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-10-18 12:03:25 +0100 |
commit | 4c60c2779dde6962f342f9c9b61713cf2d3a564c (patch) | |
tree | 8814ae3ecc89190f70806dda26713258262649c2 /meta/classes | |
parent | ecdb24c21b7b90b83748cbe5891437b2183321d7 (diff) | |
download | openembedded-core-4c60c2779dde6962f342f9c9b61713cf2d3a564c.tar.gz openembedded-core-4c60c2779dde6962f342f9c9b61713cf2d3a564c.tar.bz2 openembedded-core-4c60c2779dde6962f342f9c9b61713cf2d3a564c.zip |
insane.conf: add new libexec test
This tests for /usr/libexec as we are moving things to /lib/.
the test is ignored if the distro defaults to /usr/libexec.
Currently this test will be disabled by default since the current
value of ${libexecdir} is "/usr/libexec". Also this tests needs
to be enabled in the WARN_QA list.
[YOCTO #2915]
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/insane.bbclass | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass index 5e9cba1384..5757ed398b 100644 --- a/meta/classes/insane.bbclass +++ b/meta/classes/insane.bbclass @@ -140,6 +140,20 @@ def package_qa_handle_error(error_class, error_msg, d): bb.warn("QA Issue: %s" % error_msg) return True +QAPATHTEST[libexec] = "package_qa_check_libexec" +def package_qa_check_libexec(path,name, d, elf, messages): + + # Skip the case where the default is explicitly /usr/libexec + libexec = d.getVar('libexecdir', True) + if libexec == "/usr/libexec": + return True + + if 'libexec' in path.split(os.path.sep): + messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec)) + return False + + return True + QAPATHTEST[rpaths] = "package_qa_check_rpath" def package_qa_check_rpath(file,name, d, elf, messages): """ |