<?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>4135</bug_id>
          
          <creation_ts>2013-03-27 15:30:14 +0000</creation_ts>
          <short_desc>Generated SDK installer script requires a modern version of &apos;tar&apos;</short_desc>
          <delta_ts>2013-03-27 15:59:30 +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.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Andy Dalton">a.spam.filter</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>poky.adt.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</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>31243</commentid>
    <comment_count>0</comment_count>
    <who name="Andy Dalton">a.spam.filter</who>
    <bug_when>2013-03-27 15:30:14 +0000</bug_when>
    <thetext>After using &apos;bitbake -c populate_sdk &lt;core-image-name&gt;&apos;, I get an installer script for the generated SDK.  When running that script I get unexpected errors:

$ bash poky-eglibc-x86_64-i586-toolchain-1.0.sh 
Enter target directory for SDK (default: /opt/poky/1.3): /tmp/jkjk/c
You are about to install the SDK to &quot;/tmp/jkjk/c&quot;. Proceed[Y/n]?Y
Extracting SDK...tar: sysroots/qemux86-poky-linux/usr/include/et/com_err.h: Cannot hard link to `./opt/poky/1.3/sysroots/qemux86-poky-linux/usr/include/com_err.h&apos;: No such file or directory
tar: sysroots/qemux86-poky-linux/etc/terminfo/v/vt220: Cannot hard link to `./opt/poky/1.3/sysroots/qemux86-poky-linux/etc/terminfo/v/vt200&apos;: No such file or directory
tar: sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-ld: Cannot hard link to `./opt/poky/1.3/sysroots/x86_64-pokysdk-linux/usr/bin/i586-poky-linux/i586-poky-linux-ld.bfd&apos;: No such file or directory
tar: sysroots/x86_64-pokysdk-linux/etc/terminfo/v/vt220: Cannot hard link to `./opt/poky/1.3/sysroots/x86_64-pokysdk-linux/etc/terminfo/v/vt200&apos;: No such file or directory

bzip2: (stdin): trailing garbage after EOF ignored
tar: Error exit delayed from previous errors
done

After some investigation, it turns out that my version of GNU tar (1.15.1) doesn&apos;t handle the --strip-components option correctly with respect to hard links.  After pulling in a more modern version of GNU tar (1.26), I no longer get the error.

It might be worth doing some sanity checking on the tar version in the script and generating an error before attempting the extraction, or skipping the --strip-components option all together and move the contents after the extraction.

If you need any additional information, please let me know.

Thanks,

Andy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>31246</commentid>
    <comment_count>1</comment_count>
    <who name="Laurentiu Palcu">laurentiu.palcu</who>
    <bug_when>2013-03-27 15:59:30 +0000</bug_when>
    <thetext>This issue is already fixed in master:

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=63ccf6242064055e280ffd05a4726f89de6b9b98</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>