[OE-core] [PATCH] insane.bbclass: tighten lib_re and exec_re patterns to avoid false positive

Burton, Ross ross.burton at intel.com
Wed Mar 23 16:23:05 UTC 2016


On 23 March 2016 at 15:54, Bill Randle <william.c.randle at intel.com> wrote:

> +    lib_re = re.compile("^/lib.+\.so(\.\d+){0,3}$")
> +    exec_re = re.compile("^%s.*/lib.+\.so(\.\d+){0,3}$" % exec_prefix)
>

I worry that this goes too far in the other way, my Debian host has a
library called /usr/lib/libblas.so.3gf.

Maybe we should add a "is this an ELF" test into the libdir check instead?
That might kill performance though, and this is just a sanity check.

Any other thoughts?

Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160323/4e805d33/attachment-0002.html>


More information about the Openembedded-core mailing list