<?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>3655</bug_id>
          
          <creation_ts>2012-12-28 08:55:22 +0000</creation_ts>
          <short_desc>runqemu-extract-sdk is unable to extract rootfs if meta-toolchain isn&apos;t installed in the default directory</short_desc>
          <delta_ts>2013-01-10 06:40:10 +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.4</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.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Yi Zhao">yi.zhao</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>hongxu.jia</cc>
    
    <cc>liang.li2</cc>
    
    <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>Qi.Chen</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>28480</commentid>
    <comment_count>0</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-12-28 08:55:22 +0000</bug_when>
    <thetext>Meta-toolchain location: http://autobuilder.yoctoproject.org/pub/nightly/20121226-1/toolchain/
Tree/Branch: poky/master
Git commit: 4a36a32567ecfbc7ce7b967803e6e23314953ef5

If I installed the relocatable toolchain in a custom directory, when running runqemu-extract-sdk to extract rootfs, I got the following error:

####################
builder@pek-yocto-build2:~/test$ ls -l /opt/poky/
total 0
builder@pek-yocto-build2:~/test$ sudo sh poky-eglibc-x86_64-powerpc-toolchain-gmae-1.3+snapshot-20121226.sh 
Enter target directory for SDK (default: /opt/poky/1.3+snapshot): /opt/poky/yocto-sdk
You are about to install the SDK to &quot;/opt/poky/yocto-sdk&quot;. Proceed[Y/n]?Y
Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.
builder@pek-yocto-build2:~/test$ 
builder@pek-yocto-build2:~/test$ ls -l /opt/poky/
total 4
drwxr-xr-x 3 root root 4096 2012-12-28 16:35 yocto-sdk
builder@pek-yocto-build2:~/test$ 
builder@pek-yocto-build2:~/test$ source /opt/poky/yocto-sdk/environment-setup-ppc603e-poky-linux 
builder@pek-yocto-build2:~/test$ 
builder@pek-yocto-build2:~/test$ which runqemu-extract-sdk 
/opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-extract-sdk
builder@pek-yocto-build2:~/test$ 
builder@pek-yocto-build2:~/test$ runqemu-extract-sdk ./core-image-sato-sdk-qemuppc-20121226195951.rootfs.tar.bz2 rootfs
Creating directory /home/builder/test/rootfs
Extracting rootfs tarball using pseudo...
/opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/pseudo -P /opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr tar -C &quot;/home/builder/test/rootfs&quot; -xjf &quot;./core-image-sato-sdk-qemuppc-20121226195951.rootfs.tar.bz2&quot;
/opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-extract-sdk: line 92: /opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/pseudo: No such file or directory
Warning: I don&apos;t see many files in /home/builder/test/rootfs
Please double-check the extraction worked as intended
builder@pek-yocto-build2:~/test$ 
##################

But if the toolchain is installed in the default directory (/opt/poky/1.3+snapshot), there is no this issue.

I noticed there is an old bug 1367 also report the similar error.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28483</commentid>
    <comment_count>1</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-28 09:56:26 +0000</bug_when>
    <thetext>no such when set installation dir to &quot;/home/yocto/test_toolchain&quot; ,and run &quot;runqemu-extract-sdk ./core-image-sato-sdk-qemuppc-20121226195951.rootfs.tar.bz2 /home/yocto/rootfs_1&quot; in another terminal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28484</commentid>
    <comment_count>2</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-28 10:00:45 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; no such when set installation dir to &quot;/home/yocto/test_toolchain&quot; ,and run
&gt; &quot;runqemu-extract-sdk
&gt; ./core-image-sato-sdk-qemuppc-20121226195951.rootfs.tar.bz2
&gt; /home/yocto/rootfs_1&quot; in another terminal.
when try that,&quot;runqemu-extract-sdk&quot; run successfully.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28485</commentid>
    <comment_count>3</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2012-12-28 10:13:34 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; &gt; no such when set installation dir to &quot;/home/yocto/test_toolchain&quot; ,and run
&gt; &gt; &quot;runqemu-extract-sdk
&gt; &gt; ./core-image-sato-sdk-qemuppc-20121226195951.rootfs.tar.bz2
&gt; &gt; /home/yocto/rootfs_1&quot; in another terminal.
&gt; when try that,&quot;runqemu-extract-sdk&quot; run successfully.

when try,test user is &quot;yocto&quot;,home dir is &quot;/home/yocto&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28579</commentid>
    <comment_count>4</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-01-07 13:11:07 +0000</bug_when>
    <thetext>Patch sent on the mailing list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28616</commentid>
    <comment_count>5</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-01-08 08:42:27 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=d036724c0d096a25da16bca6370afe100a549367</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28697</commentid>
    <comment_count>6</comment_count>
    <who name="liang li">liang.li2</who>
    <bug_when>2013-01-10 06:40:10 +0000</bug_when>
    <thetext>no such error when run &quot;bitbake meta-toolchain-sdk&quot;,then run command as follows:
yocto@yocto-OptiPlex-990:/buildarea/tester/build_202/tmp/deploy/sdk&gt; sudo sh ./poky-eglibc-x86_64-mips-toolchain-gmae-1.3+snapshot-20130110.sh 
Enter target directory for SDK (default: /opt/poky/1.3+snapshot): /opt/poky/yocto-sdk
You are about to install the SDK to &quot;/opt/poky/yocto-sdk&quot;. Proceed[Y/n]?y
Extracting SDK...done
Setting it up...done
SDK has been successfully set up and is ready to be used.
yocto@yocto-OptiPlex-990:/buildarea/tester/build_202/tmp/deploy/sdk&gt; source /opt/poky/yocto-sdk/environment-setup-mips32-poky-linux 
yocto@yocto-OptiPlex-990:/buildarea/tester/build_202/tmp/deploy/sdk&gt; which runqemu-extract-sdk 
/opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/runqemu-extract-sdk
yocto@yocto-OptiPlex-990:/buildarea/tester/build_202/tmp/deploy/sdk&gt; runqemu-extract-sdk ./core-image-sato-sdk-qemumips-20130105014556.rootfs.tar.bz2 rootfs
Creating directory /buildarea/tester/build_202/tmp/deploy/sdk/rootfs
Extracting rootfs tarball using pseudo...
/opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr/bin/pseudo -P /opt/poky/yocto-sdk/sysroots/x86_64-pokysdk-linux/usr tar -C &quot;/buildarea/tester/build_202/tmp/deploy/sdk/rootfs&quot; -xjf &quot;/buildarea/tester/download_1_5/core-image-sato-sdk-qemumips-20130105014556.rootfs.tar.bz2&quot;
SDK image successfully extracted to /buildarea/tester/build_202/tmp/deploy/sdk/rootfs

git info:66f4c8a674d9f8db958b13866af4d63ab8cbcd44
git branch:poky/master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>