Bug 1214

Summary: [Emenlow/Blacksand/Crownbay/Sugarbay] No bash exist in sato-sdk image
Product: [Build System, Metadata & Runtime] OE-Core Reporter: wenhua.fan <wenhuax.fan>
Component: coreAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: critical    
Priority: High CC: jiajun.xu, ke.yu, liang.li2, meta.mr.watcher, meta.watcher, wenhuax.fan, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description wenhua.fan 2011-07-05 18:59:51 UTC
There is no such issue in Yocto 1.1 20110624 build.

Commit information:

Emenlow/Blacksand/Crownbay:
Tree/Branch : Poky/master
Poky Commit id : ad2363278f0ea86fcf3464f8f6073d3a3d06be63
Sugarbay:
Tree/Branch : Poky/1.1_M2
Poky Commit id : ea518846b889a1bad2263d1cb49cb238a295a8e7

Meta Branch : master
Meta Commit id: 92fc07a5f1b98779806cdcc2341487ff5ea5a238

Image Location:

Emenlow:
http://autobuilder02.yoctoproject.org/emenlow-master/nightly/20110702-1/machines/emenlow/x86_32/core-image-sato-sdk-live-emenlow-20110702104745.hddimg.bz2
Blacksand:
http://autobuilder02.yoctoproject.org/n450-master/nightly/20110702-1/machines/n450/x86_32/core-image-sato-sdk-live-n450-20110702083055.hddimg.bz2
Crownbay:
http://autobuilder03.jf.intel.com/crownbay-master/nightly/20110701-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-20110702060344.hddimg.bz2
Sugarbay:
http://autobuilder02.yoctoproject.org/sugarbay-1.1_M2/nightly/20110701-1/machines/sugarbay/x86_32/core-image-sato-sdk-live-sugarbay-20110701221008.hddimg.bz2

If here no bash exist, we can't test graphic or LTP, because of in these test case need to run script. And our automation test script can't run too, I think maybe it will issue other problem. So here we set severity as critical.

Both sato and sato-sdk images for Qemux86/Qemux86-64 no such issue in current build.
Qemu image information:

Tree/Branch : Poky/1.1_M2
Poky Commit id : ea518846b889a1bad2263d1cb49cb238a295a8e7
Meta Branch : master
Meta Commit id: 92fc07a5f1b98779806cdcc2341487ff5ea5a238

Image URL:
http://autobuilder03.jf.intel.com/nightly/20110701-1/machines/qemu/
Comment 1 liang li 2011-07-05 23:44:36 UTC
bash also not found on mpc8315e-rdb sato-sdk image , but found on qemuppc sato-sdk image.
Comment 2 Jiajun Xu 2011-07-06 07:50:02 UTC
Some system command, like ldd, is based based. The issue makes there commands not work.
Comment 3 Saul Wold 2011-07-06 22:37:39 UTC
This was an interesting one to track down.

bash was being included due to connman having an RDEPENDS on resolvconf which in turn had a DEPEND on bash.

The recent version of connman removed that RDEPENDS on resolvconf thus removing bash from sato.

How are the QA tests relying on bash?  Is it possible to modify the tests to use the busybox shell or do we need to re-instate bash?
Comment 4 Jiajun Xu 2011-07-06 23:42:53 UTC
(In reply to comment #3)
> This was an interesting one to track down.
> bash was being included due to connman having an RDEPENDS on resolvconf which
> in turn had a DEPEND on bash.
> The recent version of connman removed that RDEPENDS on resolvconf thus removing
> bash from sato.
> How are the QA tests relying on bash?  Is it possible to modify the tests to
> use the busybox shell or do we need to re-instate bash?

Em... Some system commands depend on bash:

root@emenlow:/usr/bin# grep "\/bash" -r *
font2psf:#!/bin/bash
gnome-doc-tool:#!/bin/bash
ldd:#! /bin/bash
quilt:#! /bin/bash
tzselect:#! /bin/bash
usb-devices:#!/bin/bash
xtrace:#! /bin/bash

Meanwhile, many cases in LTP use bash as interpreter. I could change them to use sh, but not sure if everything could run without problem.
If we re-install bash, what should I do? Is it enough if I build bash and install it into target with rpm?
Comment 5 Saul Wold 2011-07-07 00:01:27 UTC
That seems to indicate that those package need to have RDEPNEDS for bash, a short term workaround would be to add bash to the sato task, but we should look more closely at the tests and packages and determine if they need bash or can really use the the busybox sh.

I will create a patch to include bash in sato.
Comment 7 liang li 2011-07-11 19:42:26 UTC
(In reply to comment #1)
> bash also not found on mpc8315e-rdb sato-sdk image , but found on qemuppc
> sato-sdk image.

in nightly build 20110708-1 ,bash found on mpc8315e-rdb and qemuppc sato-sdk image.