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

Phil Blundell pb at pbcl.net
Wed Mar 23 18:03:54 UTC 2016


On Wed, 2016-03-23 at 17:59 +0000, Burton, Ross wrote:
> 
> On 23 March 2016 at 17:56, Phil Blundell <pb at pbcl.net> wrote:
> > > lib_re would match files like "/libsoletta.so.0.0.1-gdb.py" which
> > are
> > > not valid library filenames.
> > 
> > What are the consequences of it matching things that are not
> > libraries?
> See #9215, the libdir sanity test fires when it shouldn't.
> 
> WARNING: QA Issue: soletta-dbg: found library in wrong location:
> /usr/share/gdb/auto-load/libsoletta.so.0.0.1-gdb.py [libdir]
> 
> That's no library...
Ah, right. I see.
I wonder if we should just give insane.bbclass a whitelist of
directories in which it should ignore apparently misplaced libraries.
 There aren't likely to be many cases like that one.
Or alternatively, add an extra check so that when it thinks it's found
a misplaced library, it checks the ELF header to make sure that it
really is one and suppresses the diagnostic if not.  If you only do
this in cases where it was about to print a warning anyway then the
impact on performance shouldn't be too bad.
p.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160323/19c9dfed/attachment-0002.html>


More information about the Openembedded-core mailing list