<?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>3239</bug_id>
          
          <creation_ts>2012-10-05 08:55:03 +0000</creation_ts>
          <short_desc>1.3_M5.rc2 patch task execution problem when building eglibc</short_desc>
          <delta_ts>2012-10-05 12:39:58 +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>OE-Core</product>
          <component>core</component>
          <version>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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="tf">tf+bugs.yocto</reporter>
          <assigned_to name="Saul Wold">sgw</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>26273</commentid>
    <comment_count>0</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2012-10-05 08:55:03 +0000</bug_when>
    <thetext>I run into a strange eglibc build failure due to tasks not being executed in the correct order; it happened on a fresh build of 1.3_M5.rc2, and was, I suspect, triggered initially by a corrupt eglibc tarball; the problem went away after manually removing the offending tarball and wiping out temp, but as it could not be fixed by running -c cleanall, I thought it&apos;s worth flagging it up as it suggests some underlying problem in the sstate management.

The initial failure was in do_patch, due to incomplete src tree from the corrupt tarball; not Yocto fault, obviously, but I&apos;d expect -c cleanall eglibc to fix this, which it did not:

  bitbake -c cleanall eglibc
  bitbake eglibc

fails in the patch task because the patch task is being run *before* the fetch and unpack tasks have finished;

If I run

  bitbake -c cleansstate eglibc
  bitbake -c unpack eglibc
  bitbake -c patch -f eglibc

this succeeds; but note that the -f to the patch task is necessary, without it the patch execution is skipped, which should not happen after -c cleansstate I think. 

So now I try to run the rest of the build:

  bitbake eglibc

but now the patch task is run *again* and fails (but not as expected because the file is already patched but because the file to patch cannot be found -- it would seem the rogue patch task is being run in the wrong directory).

The above suggests I think there is a bug in maintaining the state for, at least, the patch task.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>26283</commentid>
    <comment_count>1</comment_count>
    <who name="tf">tf+bugs.yocto</who>
    <bug_when>2012-10-05 12:39:58 +0000</bug_when>
    <thetext>OK, with Richard&apos;s help worked out what is going on: the initial corrupted tarball, of course, causes both eglibc and eglibc-initial to fail; what I missed in the output is that the repeated patch failure is, in fact, for elibc-initial, which I did not clean. So I am going to close this again as this is an operator error, not a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>