<?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>6443</bug_id>
          
          <creation_ts>2014-06-13 10:05:23 +0000</creation_ts>
          <short_desc>[1.6.1] [adt] sed error: no input files when install adt</short_desc>
          <delta_ts>2014-08-05 06:21:13 +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.6.1</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.6.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Chong Lu">chong.lu</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>chong.lu</cc>
    
    <cc>ke.zou</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>43913</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-06-13 10:05:23 +0000</bug_when>
    <thetext>adt-installer location: http://autobuilder.yoctoproject.org/pub/releases/yocto-1.6.1/adt-installer-QA/

Steps:
1. Extract the adt_installer.tar.bz2
2. Keep the default settings. run: ./adt_installer

There is a sed error when install it:

Start installing selected native ADT for archs: x86...
#######################################################################
Please note from this point on installation requires sudo password ...
#######################################################################
Successfully create directory /opt/poky/1.6.1//var/lib/opkg.
Updating opkg...
opkg update process ended...
Installing pseudo nativesdk ...

Installing opkg nativesdk ...

Installing pkgconfig nativesdk ...

Installing libtool nativesdk ...

Installing autoconf nativesdk ...

Installing automake nativesdk ...

Installing cross canadian packages for qemux86 ...
sed: no input files

Installing qemu native ...

Installing unfs ...
Link the ld.so.cache file into the host filesystem

Relocating binaries ...

Successfully installed selected native ADT!
Installing target sysroot for arch: x86, rootfs type: sato-sdk, location: /home/yocto/test-yocto/qemux86
Creating directory /home/yocto/test-yocto/qemux86...
Extracting rootfs: core-image-sato-sdk-qemux86.tar.bz2, using pseudo...

############################################################
# Yocto ADT has been successfully installed.
############################################################</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43916</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-06-13 10:57:51 +0000</bug_when>
    <thetext>Hi YI,
I didn&apos;t get the sed error. Can you try again installing? 

I must mention that I installed on a relative path and only with x86 target.

Thanks,
Alex</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44057</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-06-18 09:07:58 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hi YI,
&gt; I didn&apos;t get the sed error. Can you try again installing? 
&gt; 
&gt; I must mention that I installed on a relative path and only with x86 target.
&gt; 
&gt; Thanks,
&gt; Alex

This issue only happens when using default setting. i.e. the toolchain sdk is installed in directory /opt/poky/1.6.1

The error message is from line 169 in scripts/adt_installer_internal:
$SUDO sed -i -e &quot;s%##SDKTARGETSYSROOT##%$target_sysroot%g&quot; $env_script

The $env_script doesn&apos;t exist.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44098</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-06-19 14:35:08 +0000</bug_when>
    <thetext>Did manage to reproduce using the default install path. So I am confirming Yi&apos;s comment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44234</commentid>
    <comment_count>4</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-06-30 08:55:51 +0000</bug_when>
    <thetext>issue still exists in 1.7M1 rc1 build</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44239</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-30 15:20:39 +0000</bug_when>
    <thetext>Patch out for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44240</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-30 15:39:33 +0000</bug_when>
    <thetext>Resolved in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=247c9a192cba178e9e9ede050e839d8e504ce7b8</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44444</commentid>
    <comment_count>7</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-07-11 05:51:26 +0000</bug_when>
    <thetext>Sed error still exists with build 1.7M1 rc2

adt-installer path:
http://autobuilder.yoctoproject.org/pub/nightly/20140706-1/adt-installer-QA/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44448</commentid>
    <comment_count>8</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-07-11 09:34:22 +0000</bug_when>
    <thetext>Did you install this over the top of an existing SDK installation? If so, please try removing that first, then installing this.

You should then be able to install a second time over the top of the original without seeing the warning either. 

I believe the warning is from &quot;stale&quot; data on the system and therefore the bug has been fixed but you will only see that on a second installation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44478</commentid>
    <comment_count>9</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2014-07-15 05:30:28 +0000</bug_when>
    <thetext>Test it again with 20140706-1 build.
/opt/poky/1.6+snapshot has been deleted before the test ,but sed error still exists.



Start installing selected native ADT for archs: x86...
#######################################################################
Please note from this point on installation requires sudo password ...
#######################################################################
Successfully create directory /opt/poky/1.6+snapshot//var/lib/opkg.
Updating opkg...
opkg update process ended...
Installing pseudo nativesdk ...

Installing opkg nativesdk ...

Installing pkgconfig nativesdk ...

Installing libtool nativesdk ...

Installing autoconf nativesdk ...

Installing automake nativesdk ...

Installing cross canadian packages for qemux86 ...
sed: no input files

Installing qemu native ...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44749</commentid>
    <comment_count>10</comment_count>
    <who name="Chong Lu">chong.lu</who>
    <bug_when>2014-07-28 08:11:34 +0000</bug_when>
    <thetext>fixed by commit fd1aacc7983c79757be31cb3c21834a5dd047ecf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44958</commentid>
    <comment_count>11</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-08-05 02:10:25 +0000</bug_when>
    <thetext>There is no this issue in 1.7 M2 RC1 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44960</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-08-05 05:54:01 +0000</bug_when>
    <thetext>(In reply to comment #10)
&gt; fixed by commit fd1aacc7983c79757be31cb3c21834a5dd047ecf

Hi,
Is this issue fixed for 1.6.2 too?

Also, can you help me find the change in git log? I can&apos;t find fd1aacc7983c79757be31cb3c21834a5dd047ecf in master or daisy.

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44962</commentid>
    <comment_count>13</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2014-08-05 06:21:13 +0000</bug_when>
    <thetext>(In reply to comment #12)
&gt; (In reply to comment #10)
&gt; &gt; fixed by commit fd1aacc7983c79757be31cb3c21834a5dd047ecf
&gt; 
&gt; Hi,
&gt; Is this issue fixed for 1.6.2 too?
&gt; 
&gt; Also, can you help me find the change in git log? I can&apos;t find
&gt; fd1aacc7983c79757be31cb3c21834a5dd047ecf in master or daisy.
&gt; 
&gt; Thanks,
&gt; Alex.

Hi Alex,

The commit is in the master branch, I can find it:

commit fd1aacc7983c79757be31cb3c21834a5dd047ecf
Author: Chong Lu &lt;Chong.Lu@windriver.com&gt;
Date:   Tue Jul 22 11:16:52 2014 +0800

    adt-installer: fix sed input file error
    
    When use default install directory, we can&apos;t get the environment setup
    script path. The reason is that opkg-cl list incorrect files paths.
    This patch sets env_script variable to make us get correct environment
    setup script path.
    
    [YOCTO #6443]
    
    (From OE-Core rev: e0080f279d5ebb320c2ba285765048fcca523fe7)
    
    Signed-off-by: Chong Lu &lt;Chong.Lu@windriver.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;

Maybe you need to git pull your source ?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>