<?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>7917</bug_id>
          
          <creation_ts>2015-06-23 02:40:58 +0000</creation_ts>
          <short_desc>sanity.bbclass: check /bin/sh is dash or bash</short_desc>
          <delta_ts>2015-09-15 12:52:35 +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.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>jackie.huang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>51865</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-06-23 02:40:58 +0000</bug_when>
    <thetext>We only support bash or dash, otherwise build failed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51927</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2015-06-25 14:41:02 +0000</bug_when>
    <thetext>Which shell are you seeing failed builds with?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51947</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-06-26 05:29:27 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Which shell are you seeing failed builds with?

For example, when /bin/sh -&gt; ksh, all the do_packagedata and do_populate_sysroot would be failed:

File: &apos;/buildarea/lyang1/poky/meta/lib/oe/path.py&apos;, lineno: 146, function: check_output
     0142:    if retcode:
     0143:        cmd = kwargs.get(&quot;args&quot;)
     0144:        if cmd is None:
     0145:            cmd = popenargs[0]
 *** 0146:        raise CalledProcessError(retcode, cmd, output=output)
     0147:    return output
     0148:
     0149:def find(dir, **walkoptions):
     0150:    &quot;&quot;&quot; Given a directory, recurses into that directory,
Exception: CalledProcessError: Command &apos;cd /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-xf86driproto/1_2.1.1-r0/pkgdata; find . -type d -print | tar -cf - -C /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-xf86driproto/1_2.1.1-r0/pkgdata -p --files-from - --no-recursion | tar -xf - -C /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/
lib32-xf86driproto/1_2.1.1-r0/sstate-build-packagedata/pkgdata&apos; returned non-zero exit status 2 with output tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
find: `standard output&apos;: Broken pipe
find: write error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51948</commentid>
    <comment_count>3</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-06-26 05:41:35 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; Which shell are you seeing failed builds with?
&gt; 
&gt; For example, when /bin/sh -&gt; ksh, all the do_packagedata and
&gt; do_populate_sysroot would be failed:


Sorry, it works well if we build the recipe one by one, but it would fail with a lot of &quot;Broken pipe&quot; error when we run bitbake world for a while:

Exception: CalledProcessError: Command &apos;cd /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-libpciaccess/0.13.3-r0/sysroot-destdir; find . -type d -print | tar -cf - -C /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-libpciaccess/0.13.3-r0/sysroot-destdir -p --files-from - --no-recursion | tar -xf - -C /buildarea/lyang1/t_clutter/tmp/sysroots/lib32-qemux86-64&apos; returned non-zero exit status 2 with output tar: This does not look like a tar archive
tar: Exiting with failure status due to previous errors
find: `standard output&apos;: Broken pipe
find: write error

// Robert

&gt; 
&gt; File: &apos;/buildarea/lyang1/poky/meta/lib/oe/path.py&apos;, lineno: 146, function:
&gt; check_output
&gt;      0142:    if retcode:
&gt;      0143:        cmd = kwargs.get(&quot;args&quot;)
&gt;      0144:        if cmd is None:
&gt;      0145:            cmd = popenargs[0]
&gt;  *** 0146:        raise CalledProcessError(retcode, cmd, output=output)
&gt;      0147:    return output
&gt;      0148:
&gt;      0149:def find(dir, **walkoptions):
&gt;      0150:    &quot;&quot;&quot; Given a directory, recurses into that directory,
&gt; Exception: CalledProcessError: Command &apos;cd
&gt; /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-
&gt; xf86driproto/1_2.1.1-r0/pkgdata; find . -type d -print | tar -cf - -C
&gt; /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/lib32-
&gt; xf86driproto/1_2.1.1-r0/pkgdata -p --files-from - --no-recursion | tar -xf -
&gt; -C /buildarea/lyang1/t_clutter/tmp/work/x86-pokymllib32-linux/
&gt; lib32-xf86driproto/1_2.1.1-r0/sstate-build-packagedata/pkgdata&apos; returned
&gt; non-zero exit status 2 with output tar: This does not look like a tar archive
&gt; tar: Exiting with failure status due to previous errors
&gt; find: `standard output&apos;: Broken pipe
&gt; find: write error</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51955</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-06-26 08:48:24 +0000</bug_when>
    <thetext>Fixed in master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=48b5ea6782ec7e9ab8f9a28438ef0ededa5fe224</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54076</commentid>
    <comment_count>5</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2015-09-15 12:52:35 +0000</bug_when>
    <thetext>verified on master ea562de57590c966cd5a75fda8defecd397e6436

bvoiculescu@vhangan-PC:~/yocto/poky/build$ bitbake world
ERROR:  OE-core&apos;s config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    Error, /bin/sh links to /bin/ksh93, must be dash or bash


Summary: There was 1 ERROR message shown, returning a non-zero exit code.
bvoiculescu@vhangan-PC:~/yocto/poky/build$ ls -ila /bin/sh
8650756 lrwxrwxrwx 1 root root 3 sep 15 15:48 /bin/sh -&gt; ksh</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>