<?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>7290</bug_id>
          
          <creation_ts>2015-02-05 08:05:30 +0000</creation_ts>
          <short_desc>A warning message when installing toolchain sdk if using dash</short_desc>
          <delta_ts>2015-03-27 06:05:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>ADT</product>
          <component>adt</component>
          <version>1.8</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.8 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>hongxu.jia</cc>
    
    <cc>ke.zou</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhangle.yang</cc>
          
          <qa_contact name="Alexandru Georgescu">alexandru.c.georgescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</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>48569</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-02-05 08:05:30 +0000</bug_when>
    <thetext>Toolchain sdk location: http://autobuilder.yoctoproject.org/pub/nightly/20150202-1/toolchain/

Git rev: master/22c38e2d8a058619e3d05534b5e830b750aa4241

There is a warning message when installing toolchain sdk if using dash:
#################### 
$ sudo sh poky-glibc-x86_64-core-image-sato-armv5te-toolchain-1.7.sh 
poky-glibc-x86_64-core-image-sato-armv5te-toolchain-1.7.sh: 58: read: Illegal option -e
You are about to install the SDK to &quot;/opt/poky/1.7&quot;. Proceed[Y/n]?
####################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48655</commentid>
    <comment_count>1</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-02-09 18:37:20 +0000</bug_when>
    <thetext>This causes issue with Dash, the commit in question is back from Dizzy days:

commit b0a9f30e19a2dece5350c4bd9d63355a6bbe214c
Author: Dennis Meier &lt;meier.dennis@siemens.com&gt;
Date:   Tue Jun 17 15:16:53 2014 +0200

    populate_sdk_base: add auto-completion in setup
    
    (From OE-Core rev: d6c55f6910270e395f668c9114ec374b44c57538)
    
    Signed-off-by: Dennis Meier &lt;meier.dennis@siemens.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

diff --git a/meta/classes/populate_sdk_base.bbclass 
b/meta/classes/populate_sdk_base.bbclass
index d3d8422..97cf1fb 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -174,9 +174,8 @@ if [ $verbose = 1 ] ; then
        set -x
 fi
 
-printf &quot;Enter target directory for SDK (default: $DEFAULT_INSTALL_DIR): &quot;
 if [ &quot;$target_sdk_dir&quot; = &quot;&quot; ]; then
-       read target_sdk_dir
+       read -e -p &quot;Enter target directory for SDK (default: 
$DEFAULT_INSTALL_DIR): &quot; target_sdk_dir
        [ &quot;$target_sdk_dir&quot; = &quot;&quot; ] &amp;&amp; target_sdk_dir=$DEFAULT_INSTALL_DIR
 else
        echo &quot;$target_sdk_dir&quot;

Reverting this change will fix this issue</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48699</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-02-11 05:20:51 +0000</bug_when>
    <thetext>The poky-toolchain.sh script has a #!/bin/bash and should be marked as 
executeable so an &quot;sh&quot; should not been needed, and this is in fact what causes 
the problems, because calling it directly with sh will override the #!/bin/bash 
in the file.  I reviewed the test case and it shows just executing the script 
directly, not using sh &lt;script&gt;, can you confirm if the script is correctly 
executable?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48700</commentid>
    <comment_count>3</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2015-02-11 05:37:50 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; The poky-toolchain.sh script has a #!/bin/bash and should be marked as 
&gt; executeable so an &quot;sh&quot; should not been needed, and this is in fact what
&gt; causes 
&gt; the problems, because calling it directly with sh will override the
&gt; #!/bin/bash 
&gt; in the file.  I reviewed the test case and it shows just executing the
&gt; script 
&gt; directly, not using sh &lt;script&gt;, can you confirm if the script is correctly 
&gt; executable?

Yes, it works well.
Steps:
$ chmod a+x poky-glibc-x86_64-core-image-sato-armv5te-toolchain-1.7.sh
$ ./poky-glibc-x86_64-core-image-sato-armv5te-toolchain-1.7.sh</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48756</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2015-02-12 13:18:27 +0000</bug_when>
    <thetext>This is not really a bug as noted above executing a script that has an explicit 
#!/bin/bash will be overridden with which ever shell is added on the command 
line.  There is no definitive way to determine which shell is being executed to 
enable or disable the functionality of command line completion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>49838</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-03-27 06:05:54 +0000</bug_when>
    <thetext>Verified as per above comments.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>