insane: in libdir test allow libraries in libexecdir

Some recipes, such as sudo and gcc, put libraries into libexecdir.  Allow this
in the sanity test so that we don't have to whitelist the libdir check.

(From OE-Core rev: 9f5ad12a9532687a7a82e24b7c4506cabc13bba2)

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Juro Bystricky
2015-12-08 10:51:39 +00:00
committed by Richard Purdie
parent 9c0186fd57
commit ec79a19f24

View File

@@ -292,6 +292,7 @@ def package_qa_check_libdir(d):
pkgdest = d.getVar('PKGDEST', True)
base_libdir = d.getVar("base_libdir",True) + os.sep
libdir = d.getVar("libdir", True) + os.sep
libexecdir = d.getVar("libexecdir", True) + os.sep
exec_prefix = d.getVar("exec_prefix", True) + os.sep
messages = []
@@ -322,7 +323,7 @@ def package_qa_check_libdir(d):
if base_libdir not in rel_path:
messages.append("%s: found library in wrong location: %s" % (package, rel_path))
if exec_re.match(rel_path):
if libdir not in rel_path:
if libdir not in rel_path and libexecdir not in rel_path:
messages.append("%s: found library in wrong location: %s" % (package, rel_path))
if messages: