Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] insane.bbclass: tighten lib_re and exec_re patterns to avoid false positive
@ 2016-03-23 15:54 Bill Randle
  2016-03-23 16:23 ` Burton, Ross
  2016-03-23 17:56 ` Phil Blundell
  0 siblings, 2 replies; 8+ messages in thread
From: Bill Randle @ 2016-03-23 15:54 UTC (permalink / raw)
  To: openembedded-core

lib_re would match files like "/libsoletta.so.0.0.1-gdb.py" which are
not valid library filenames. Tighten up the re for lib_re and exec_re
so they match only valid sonames (.so or .so followed by major version
and optional minor version and release).

[YOCTO #9215]

Signed-off-by: Bill Randle <william.c.randle@intel.com>

---
 meta/classes/insane.bbclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 7ac945d..e60c358 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -318,8 +318,8 @@ def package_qa_check_libdir(d):
 
     messages = []
 
-    lib_re = re.compile("^/lib.+\.so(\..+)?$")
-    exec_re = re.compile("^%s.*/lib.+\.so(\..+)?$" % exec_prefix)
+    lib_re = re.compile("^/lib.+\.so(\.\d+){0,3}$")
+    exec_re = re.compile("^%s.*/lib.+\.so(\.\d+){0,3}$" % exec_prefix)
 
     for root, dirs, files in os.walk(pkgdest):
         if root == pkgdest:
-- 
2.5.0



^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2016-03-23 21:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 15:54 [PATCH] insane.bbclass: tighten lib_re and exec_re patterns to avoid false positive Bill Randle
2016-03-23 16:23 ` Burton, Ross
2016-03-23 16:40   ` Randle, William C
2016-03-23 17:56 ` Phil Blundell
2016-03-23 17:59   ` Burton, Ross
2016-03-23 18:03     ` Phil Blundell
2016-03-23 21:17       ` Burton, Ross
2016-03-23 21:36         ` Randle, William C

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox