<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5555</bug_id>
          
          <creation_ts>2013-11-19 04:54:23 +0000</creation_ts>
          <short_desc>Lack of runtime dependency on bash</short_desc>
          <delta_ts>2014-11-11 02:03:21 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chen Qi">Qi.Chen</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38890</commentid>
    <comment_count>0</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-11-19 04:54:23 +0000</bug_when>
    <thetext>The following packages require /bin/bash, but don&apos;t have &apos;bash&apos; in there RDEPENDS. This will cause potential build failures. For example, if we add &apos;nfs-utils&apos; to core-image-minimal and fire a build, the rootfs process will fail because there&apos;s no bash in rpm repo.

chenqi@pek-hostel-vm07:~/poky/build-prserv [1] $ grep MISS bash-deps.report
MISS: &lt;tmp/deploy/rpm/all/linux-firmware-0.0+git0+600caefd83-r0.1.all.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/libapr-1-dev-1.4.8-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/libpam-xtests-1.1.6-r3.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/hdparm-9.43-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/lsb-4.1-r2.3.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/xz-5.1.2alpha-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/dtc-misc-1.4.0+git0+65cc4d2748-r0.0.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/lsbtest-1.0-r3.0.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/libtool-2.4.2-r6.0.0.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/rpm-build-5.4.9-r63.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/apt-0.9.9.4-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/gzip-1.6-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/pm-utils-1.4.1-r1.0.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/nfs-utils-1.2.8-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/qemu-1.5.0-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/ltp-20130904-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/kconfig-frontends-3.11.0.0-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/pax-utils-0.7-r0.1.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/i586/iproute2-3.11.0-r0.0.i586.rpm&gt;
MISS: &lt;tmp/deploy/rpm/qemux86/kernel-dev-3.10.17+git0+f1c9080cd2_375aee37c2-r0.5.qemux86.rpm&gt;


The list id derived using the following script.

#!/bin/sh

if [ $# -lt 1 ]; then
    echo &quot;$0 &lt;rpm repo&gt; [report file]&quot;
    exit 1
fi

RPM_REPO=&quot;$1&quot;
REPORT_FILE=${2:-bash-deps.report}
echo &quot;Analyzing packages under $RPM_REPO ... &quot;

for pkg in `find $RPM_REPO -name &quot;*.rpm&quot;`; do
    echo $pkg
    result=&quot;`rpm -qp --requires $pkg 2&gt;/dev/null | grep -w bash | sort -u | sed -e &apos;s/[ ]*$//&apos;`&quot;
    if [ &quot;$result&quot; = &quot;/bin/bash&quot; ]; then
	echo &quot;MISS: &lt;$pkg&gt;&quot; &gt;&gt; $REPORT_FILE
    else
	echo &quot;OK: &lt;$pkg&gt;&quot; &gt;&gt; $REPORT_FILE
    fi
done

echo &quot;Done. Report could be found in $REPORT_FILE&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38916</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2013-11-19 20:36:36 +0000</bug_when>
    <thetext>Can you evaluate the scripts that use /bin/bash to see if they can be de-bashed vs blindly adding bash as a dependency.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46909</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2014-11-11 02:03:21 +0000</bug_when>
    <thetext>Robert has sent out a bunch of patches for this one.

//Chen Qi</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>