diff options
-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): | |||
140 | bb.warn("QA Issue: %s" % error_msg) | 140 | bb.warn("QA Issue: %s" % error_msg) |
141 | return True | 141 | return True |
142 | 142 | ||
143 | QAPATHTEST[libexec] = "package_qa_check_libexec" | ||
144 | def package_qa_check_libexec(path,name, d, elf, messages): | ||
145 | |||
146 | # Skip the case where the default is explicitly /usr/libexec | ||
147 | libexec = d.getVar('libexecdir', True) | ||
148 | if libexec == "/usr/libexec": | ||
149 | return True | ||
150 | |||
151 | if 'libexec' in path.split(os.path.sep): | ||
152 | messages.append("%s: %s is using libexec please relocate to %s" % (name, package_qa_clean_path(path, d), libexec)) | ||
153 | return False | ||
154 | |||
155 | return True | ||
156 | |||
143 | QAPATHTEST[rpaths] = "package_qa_check_rpath" | 157 | QAPATHTEST[rpaths] = "package_qa_check_rpath" |
144 | def package_qa_check_rpath(file,name, d, elf, messages): | 158 | def package_qa_check_rpath(file,name, d, elf, messages): |
145 | """ | 159 | """ |