summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2012-09-12 17:54:00 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-10-18 12:13:41 +0100
commita6052d6e775553db9e5f17c649a52b923ef231bf (patch)
treec905460ecdcfc18e1bd7cdb7419bb4ce5e67832a /meta
parent7087e82079dd8bea7a42dc9683e5998cde97fbeb (diff)
downloadpoky-a6052d6e775553db9e5f17c649a52b923ef231bf.tar.gz
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] (From OE-Core rev: 4c60c2779dde6962f342f9c9b61713cf2d3a564c) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/insane.bbclass14
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
143QAPATHTEST[libexec] = "package_qa_check_libexec"
144def 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
143QAPATHTEST[rpaths] = "package_qa_check_rpath" 157QAPATHTEST[rpaths] = "package_qa_check_rpath"
144def package_qa_check_rpath(file,name, d, elf, messages): 158def package_qa_check_rpath(file,name, d, elf, messages):
145 """ 159 """