[OE-core] [PATCH 2/2] utils.bbclass: Added error checking for oe_soinstall

Christopher Larson clarson at kergoth.com
Wed Sep 7 16:44:44 UTC 2016


On Wed, Sep 7, 2016 at 9:27 AM, Burton, Ross <ross.burton at intel.com> wrote:

> On 6 September 2016 at 23:11, Henry Bruce <henry.bruce at intel.com> wrote:
>
>> +       if [[ "$libname" == *.so ]]; then
>>
>
> That's a lot of bashisms in one place ;)
>
> [ not [[
> = not ==
> *.so will need to be escaped in case it matches anything in cwd and
> expands.
>

Good catch, I expect what he really needs is a case statement, since he
doesn’t want an exact match, but to check if the wildcard matches.

case “$libname” in
    *.so)
        …
        ;;
esac
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20160907/c0a6dcf3/attachment-0002.html>


More information about the Openembedded-core mailing list