* [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies
@ 2014-01-23 12:19 Richard Purdie
2014-01-23 12:37 ` Otavio Salvador
2014-01-23 12:48 ` Martin Jansa
0 siblings, 2 replies; 5+ messages in thread
From: Richard Purdie @ 2014-01-23 12:19 UTC (permalink / raw)
To: openembedded-core
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@linuxfoundation.org>
---
diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
index 34aae0b..72fad37 100644
--- a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
+++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
@@ -39,3 +39,5 @@ libtoolcross_sysroot_preprocess () {
}
SSTATE_SCAN_FILES += "libtoolize *-libtool"
+
+export CONFIG_SHELL="/bin/bash"
diff --git a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
index df73f08..f1051d8 100644
--- a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
+++ b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
@@ -22,3 +22,4 @@ do_install () {
install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
}
+export CONFIG_SHELL="/bin/bash"
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies
2014-01-23 12:19 [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies Richard Purdie
@ 2014-01-23 12:37 ` Otavio Salvador
2014-01-23 12:42 ` Robert Yang
2014-01-23 12:48 ` Martin Jansa
1 sibling, 1 reply; 5+ messages in thread
From: Otavio Salvador @ 2014-01-23 12:37 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
On Thu, Jan 23, 2014 at 10:19 AM, Richard Purdie
<richard.purdie@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@linuxfoundation.org>
Does this work for Fedora, using bash in /usr/bin/bash?
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies
2014-01-23 12:37 ` Otavio Salvador
@ 2014-01-23 12:42 ` Robert Yang
2014-01-23 12:44 ` Otavio Salvador
0 siblings, 1 reply; 5+ messages in thread
From: Robert Yang @ 2014-01-23 12:42 UTC (permalink / raw)
To: Otavio Salvador, Richard Purdie; +Cc: openembedded-core
On 01/23/2014 08:37 PM, Otavio Salvador wrote:
> On Thu, Jan 23, 2014 at 10:19 AM, Richard Purdie
> <richard.purdie@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@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.
// Robert
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies
2014-01-23 12:42 ` Robert Yang
@ 2014-01-23 12:44 ` Otavio Salvador
0 siblings, 0 replies; 5+ messages in thread
From: Otavio Salvador @ 2014-01-23 12:44 UTC (permalink / raw)
To: Robert Yang; +Cc: openembedded-core
On Thu, Jan 23, 2014 at 10:42 AM, Robert Yang <liezhi.yang@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@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@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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies
2014-01-23 12:19 [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies Richard Purdie
2014-01-23 12:37 ` Otavio Salvador
@ 2014-01-23 12:48 ` Martin Jansa
1 sibling, 0 replies; 5+ messages in thread
From: Martin Jansa @ 2014-01-23 12:48 UTC (permalink / raw)
To: Richard Purdie; +Cc: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 2039 bytes --]
On Thu, Jan 23, 2014 at 12:19:26PM +0000, Richard Purdie 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.
Shouldn't oe-core commit 367a19aaf31bcf997f10d045e7954cc800189052 fix
that already? I don't see this issue on our builders since
367a19aaf31bcf997f10d045e7954cc800189052 was merged.
> (From OE-Core rev: 2c66aa0fc98b092ebb37baee94e92d1965afd76b)
This is sent from poky repo, right?
> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
> ---
> diff --git a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
> index 34aae0b..72fad37 100644
> --- a/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
> +++ b/meta/recipes-devtools/libtool/libtool-cross_2.4.2.bb
> @@ -39,3 +39,5 @@ libtoolcross_sysroot_preprocess () {
> }
>
> SSTATE_SCAN_FILES += "libtoolize *-libtool"
> +
> +export CONFIG_SHELL="/bin/bash"
> diff --git a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
> index df73f08..f1051d8 100644
> --- a/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
> +++ b/meta/recipes-devtools/libtool/libtool-native_2.4.2.bb
> @@ -22,3 +22,4 @@ do_install () {
> install -m 0755 ${HOST_SYS}-libtool ${D}${bindir}/${HOST_SYS}-libtool
> }
>
> +export CONFIG_SHELL="/bin/bash"
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
--
Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 205 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-01-23 12:48 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-23 12:19 [PATCH] libtool-cross/native: Force usage of bash due to sstate inconsistencies Richard Purdie
2014-01-23 12:37 ` Otavio Salvador
2014-01-23 12:42 ` Robert Yang
2014-01-23 12:44 ` Otavio Salvador
2014-01-23 12:48 ` Martin Jansa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox