<?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>3551</bug_id>
          
          <creation_ts>2012-12-07 18:09:42 +0000</creation_ts>
          <short_desc>bitbake -c populate_sdk core-image-minimal fails due to missing dependency of bash</short_desc>
          <delta_ts>2012-12-14 11:03:14 +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>devtools / tool chain</component>
          <version>1.3</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.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28095</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-12-07 18:09:42 +0000</bug_when>
    <thetext>When attempting to create an SDK based on core-image-minimal, the install fails as components of eglibc (eglibc-utils-2.16-r17) require &apos;bash&apos;.

I suspect that we either need to remove the bash dependency (bash scripts) or add bash as a known runtime dependency of eglibc.

It might be easiest to audit the bash scripts in eglibc-utils and convert them to work with standard posix shell.  Note, I believe some of this work has been done upstream.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28150</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-11 15:27:30 +0000</bug_when>
    <thetext>I tested this with the latest master (52a9ae643f8a0c7856681cfb9c6c0521ace253fd) and the toolchain tarball is created as expected. You can reopen it if you provide a method to reproduce it. I was unable to...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28151</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-12-11 15:41:40 +0000</bug_when>
    <thetext>The eglibc-utils package includes /usr/bin/tzselect.  This script requires &apos;bash&apos; at runtime, but there is no RDEPENDS_${PN}-utils in the recipe.

So for a completely fresh build:

bitbake -c populate_sdk core-image-minimal

You will get a failure, because nothing else in the system requires bash.

To fix the problem the bash-isms in eglibc should be removed, or an explicit dependency on bash should be declared.  (The former is a better solution.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28152</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-12-11 15:54:09 +0000</bug_when>
    <thetext>Possible solution:

http://www.eglibc.org/archives/patches/msg00671.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28153</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-11 15:57:30 +0000</bug_when>
    <thetext>I just did a completely fresh bitbake -c populate_sdk core-image-minimal and the build finished successfully. No tmp/ no sstate-cache/. Just the downloads/ directory.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28154</commentid>
    <comment_count>5</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2012-12-11 16:06:07 +0000</bug_when>
    <thetext>Also, it would be very helpful if you provided the commit you used to reproduce it, MACHINE, SDKMACHINE and what other steps other than running &quot;bitbake -c populate_sdk core-image-minimal&quot; you ran.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28172</commentid>
    <comment_count>6</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-12-12 08:35:31 +0000</bug_when>
    <thetext>FYI I&apos;m testing a reworked version of the patch linked above.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28187</commentid>
    <comment_count>7</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-12-12 14:16:19 +0000</bug_when>
    <thetext>Patch has been sent for review.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28290</commentid>
    <comment_count>8</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2012-12-14 11:03:14 +0000</bug_when>
    <thetext>Fix merged in the following commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2f85e62b896ef71e616b5645360cb6750fe4514e

(The easiest way to reproduce the original issue would be to add eglibc-utils to core-image-minimal before this change.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>