[OE-core] [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies

Otavio Salvador otavio at ossystems.com.br
Thu Jan 23 12:44:25 UTC 2014


On Thu, Jan 23, 2014 at 10:42 AM, Robert Yang <liezhi.yang at windriver.com> wrote:
>
>
> On 01/23/2014 08:37 PM, Otavio Salvador wrote:
>>
>> On Thu, Jan 23, 2014 at 10:19 AM, Richard Purdie
>> <richard.purdie at linuxfoundation.org> wrote:
>>>
>>> Scenario:
>>> a) libtool script is built on system with bash as /bin/sh
>>> b) machine B installs sstate from build a)
>>> c) machine B has dash as /bin/sh
>>>
>>> In this scenario, the script fails to work properly since its expecting
>>> /bin/sh to have bash like syntax and it no longer does have it.
>>>
>>> This patch forces the configure process to use /bin/bash, not /bin/sh
>>> and hence allows the scripts to work correctly when used from sstate.
>>>
>>> (From OE-Core rev: 2c66aa0fc98b092ebb37baee94e92d1965afd76b)
>>>
>>> Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
>>
>>
>> Does this work for Fedora, using bash in /usr/bin/bash?
>>
>
> Yes, I think so, on Fedora:
>
> $ readlink -f /bin/
> /usr/bin
>
>
> /bin is a symlink which points to /usr/bin.

Thanks for checking.

-- 
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750



More information about the Openembedded-core mailing list