[oe-commits] Saul Wold : insane.conf: add new libexec test
git at git.openembedded.org
git at git.openembedded.org
Wed Oct 17 16:44:26 UTC 2012
Module: openembedded-core.git
Branch: master-next
Commit: 11526260a0ed92108297b9b8eb019e2c36d84e3e
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=11526260a0ed92108297b9b8eb019e2c36d84e3e
Author: Saul Wold <sgw at linux.intel.com>
Date: Wed Sep 12 17:54:00 2012 -0700
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 at linux.intel.com>
---
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 21a014c..71a9a58 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -135,6 +135,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):
"""
More information about the Openembedded-commits
mailing list