aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2015-12-08 10:51:39 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-12 23:31:40 +0000
commit9f5ad12a9532687a7a82e24b7c4506cabc13bba2 (patch)
treeb043a4240814e332291b12ee3d5fd87b4e9fd4c5 /meta/classes
parent5aae19959a443c6ac4b0feef10715c8acf3c6376 (diff)
downloadopenembedded-core-contrib-9f5ad12a9532687a7a82e24b7c4506cabc13bba2.tar.gz
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. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/insane.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 2a1e30b776..bf6a598484 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -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: