Skip to contentSkip to conversation

insane: in libdir test allow libraries in libexecdir

PATCH New Ross Burton 1 participant 2 messages Dec 8, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 insane: in libdir test allow libraries in libexecdir

From: Juro Bystricky <[email protected]>

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.

---
 meta/classes/insane.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta/classes/insane.bbclass +2 -1
index 2a1e30b..bf6a598 100644
@@ -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:
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/2 sudo: remove libdir INSANE_SKIP

Now that the libdir check allows libraries in libexecdir, remove INSANE_SKIP.

---
 meta/recipes-extended/sudo/sudo.inc | 5 -----
 1 file changed, 5 deletions(-)
meta/recipes-extended/sudo/sudo.inc +0 -5
index 48ed436..a25876b 100644
@@ -38,8 +38,3 @@ do_compile_prepend () {
 do_install_prepend (){
 	mkdir -p ${D}/${localstatedir}/lib
 }
-
-# Sudo insists on putting libraries into libexecdir
-INSANE_SKIP_${PN} += "libdir"
-INSANE_SKIP_${PN}-dev += "libdir"
-INSANE_SKIP_${PN}-dbg += "libdir"
Signature · 1 line
2.1.4