<?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>7018</bug_id>
          
          <creation_ts>2014-12-03 07:54:29 +0000</creation_ts>
          <short_desc>archiver missing tasks between do_unpack and do_patch</short_desc>
          <delta_ts>2020-03-25 01:44:53 +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.8</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>Backport to 2.6.1</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>3.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Hongxu Jia">hongxu.jia</reporter>
          <assigned_to name="Hongxu Jia">hongxu.jia</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>47315</commentid>
    <comment_count>0</comment_count>
    <who name="Hongxu Jia">hongxu.jia</who>
    <bug_when>2014-12-03 07:54:29 +0000</bug_when>
    <thetext>While archiver inherited, we edit a recipe (such as gzip) to
insert four tasks between do_patch and do_unpack:
...
addtask test1 after do_unpack before do_patch
addtask test2 after do_unpack before do_test1
addtask test3 after do_test2 before do_test1
addtask test4 after do_test2 before do_test1
...

While building the recipe, the archiver will
missing these four task in do_unpack_and_patch.
Because it is hardcoded to execute do_unpach and do_patch,
did not consider the probable tasks between them.
...
    # The kernel source is ready after do_validate_branches
    if bb.data.inherits_class(&apos;kernel-yocto&apos;, d): 
        bb.build.exec_func(&apos;do_unpack&apos;, d)
        bb.build.exec_func(&apos;do_kernel_checkout&apos;, d)
        bb.build.exec_func(&apos;do_validate_branches&apos;, d)
    else:
        bb.build.exec_func(&apos;do_unpack&apos;, d)

    # Save the original source for creating the patches
    if d.getVarFlag(&apos;ARCHIVER_MODE&apos;, &apos;diff&apos;, True) == &apos;1&apos;:
        src = d.getVar(&apos;S&apos;, True).rstrip(&apos;/&apos;)
        src_orig = &apos;%s.orig&apos; % src 
        oe.path.copytree(src, src_orig)
    bb.build.exec_func(&apos;do_patch&apos;, d)
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55076</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2015-10-08 15:45:52 +0000</bug_when>
    <thetext>Hongxu, I have memories of this patch but cant find it. Did this get merged or was the patch rejected?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55096</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-10-09 02:32:36 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Hongxu, I have memories of this patch but cant find it. Did this get merged
&gt; or was the patch rejected?

Hongxu is blocked by other things recently, here is his patch:

http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099559.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>82250</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2018-11-15 16:38:16 +0000</bug_when>
    <thetext>The patch:

http://lists.openembedded.org/pipermail/openembedded-core/2014-December/099560.html

but this wasn&apos;t merged for some reason</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85447</commentid>
    <comment_count>4</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-10-25 15:46:07 +0000</bug_when>
    <thetext>Move to M3 since M4 is for bug fixes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>