[OE-core] [PATCH] busybox: fix a sh link wrong

Bernhard Reutner-Fischer rep.dot.nop at gmail.com
Thu Aug 28 12:12:11 UTC 2014


On 28 August 2014 11:37:26 CEST, Wenlin Kang <wenlin.kang at windriver.com> wrote:
>On 2014年04月08日 15:16, Wenlin Kang wrote:
>> When both bash and busybox be installed, without ash support
>> in busybox,if bash is installed before busybox in the final stage,
>> even if ALTERNATIVE_PRIORITY of bash > ALTERNATIVE_PRIORITY of
>busybox,
>> the symlink from /bin/sh to bash can be yet overwritten by busybox.
>>
>> Signed-off-by: Wenlin Kang <wenlin.kang at windriver.com>
>> ---
>>   meta/recipes-core/busybox/busybox.inc |    8 ++++++--
>>   1 file changed, 6 insertions(+), 2 deletions(-)
>>
>> diff --git a/meta/recipes-core/busybox/busybox.inc
>b/meta/recipes-core/busybox/busybox.inc
>> index 69b9b0c..bf2ddc1 100644
>> --- a/meta/recipes-core/busybox/busybox.inc
>> +++ b/meta/recipes-core/busybox/busybox.inc
>> @@ -188,7 +188,9 @@ do_install () {
>>   			install -m 0755 ${B}/busybox.nosuid ${D}${base_bindir}
>>   			install -m 0644 ${S}/busybox.links.suid ${D}${sysconfdir}
>>   			install -m 0644 ${S}/busybox.links.nosuid ${D}${sysconfdir}
>> -			ln -sf busybox.nosuid ${D}${base_bindir}/sh
>> +			if grep -q "CONFIG_FEATURE_SH_IS_ASH=y" ${B}/.config; then

Better
egrep -q "^CONFIG_FEATURE_SH_IS_[^=]*=y"

Thanks,




More information about the Openembedded-core mailing list