<?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>352</bug_id>
          
          <creation_ts>2010-09-26 23:07:30 +0000</creation_ts>
          <short_desc>&quot;bitbake poky-image-sdk&quot; fails because eglibc-initial can&apos;t unpack</short_desc>
          <delta_ts>2010-12-21 06:07:15 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>0.9</version>
          <rep_platform>All</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>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>0.9 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dexuan Cui">dexuan.cui</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9954</commentid>
    <comment_count>0</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-26 23:07:30 +0000</bug_when>
    <thetext>On poky&apos;s master, when testing my 3 patches:
28abeb01b84e222501779c575b0c972157c56c46: eglibc: add FILESPATH to avoid failure on unpackdcui/eglibc Dexuan Cui 1 -0/+2 
a318064a0dba1301579f74898e507b11ef4cbfbc: trace-cmd: remove explict DEPENDS on &quot;glibc&quot; Dexuan Cui 1 -3/+1 
da12d03aa078765bd4fd69167b047c0f849fa972: poky-default.inc: change the hardcoded glibc-initial to ${POKYLIBC}-initial 

I always meet with the following eglibc-initial unpack failure when doing &quot;bitbake poky-image-sdk&quot;(I think sato also gets the same issue though I didn&apos;t try that):

tmp/work/i586-poky-linux/eglibc-initial-2.12-r7/temp/log.base_do_unpack.11606:

gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
NOTE: Unpacking /home/dcui/sources/eglibc-2_12_www.eglibc.org_.svn.branches._10809_.tar.gz to /home/dcui/0927/p/build/tmp/work/i586-poky-linux/eglibc-initial-2.12-r7/

But &quot;bitbake eglibc-initial -c unpack&quot; can succeed...

I used the following patch to workaround the issue by disabling pseudo on unpack:

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
-   cmd = &quot;PATH=\&quot;%s\&quot; %s&quot; % (bb.data.getVar(&apos;PATH&apos;, data, 1), cmd)
+   cmd = &quot;PSEUDO_RELOADED=YES PATH=\&quot;%s\&quot; %s&quot; % (bb.data.getVar(&apos;PATH&apos;, data, 1), cmd)

I suspect this is also a pseudo related issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9960</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-27 08:14:20 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; I suspect this is also a pseudo related issue.
Sorry, I was wrong.
Now I&apos;m trying RP&apos;s suggestion (the problem sounds very like the issue where some tarballs don&apos;t unpaack with some versions of gzip.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9976</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-27 21:36:33 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; (In reply to comment #0)
&gt; &gt; I suspect this is also a pseudo related issue.
&gt; Sorry, I was wrong.
&gt; Now I&apos;m trying RP&apos;s suggestion (the problem sounds very like the issue where
&gt; some tarballs don&apos;t unpaack with some versions of gzip.)

Kevin and I finally got the root cause:
------------------------------------------
Recently we frequently suffer from unpack failure for eglibc-initial and gconf-dbus whose&apos;s SRC_URIs are svn repos.

Kevin and I finally got the root cause: there is race condition, e.g., after eglibc-initial&apos;s fetch succeeds, when eglibc-initial&apos;s unpack is ongoing, eglibc&apos;s fetch may be also ongoing! As a result eglibc-initial&apos;s unpack would fail. gconf-dbus and gconf-dubs-native have the same issue. More generally, PN, PN-native, PN-nativesdk have the same issue.

I suppose we&apos;ll have to consider some enhancement in bbclass. Can you please give some suggestions? Thanks!

BTW: this should be a long-standing issue. The reason why it happens so frequently may be because of the fetcher change in bitbake, which maks every build to re-generate .tar.gz file for SCM repo even when there is no rev change. We may also need to improve the fetcher change.
------------------------------------------</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10044</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2010-09-29 11:16:52 +0000</bug_when>
    <thetext>http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=15ceaaaaf777175df8fa49f08e37b23052ca2290</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10052</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2010-09-29 18:54:38 +0000</bug_when>
    <thetext>With Joshua&apos;s patch, I don&apos;t meet the unpack issue any longer.

Let me VERIFY the bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>