<?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>7282</bug_id>
          
          <creation_ts>2015-02-04 11:01:28 +0000</creation_ts>
          <short_desc>linux-yocto: accidentally skips patches</short_desc>
          <delta_ts>2015-10-01 14:44:35 +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>kernel</component>
          <version>1.7</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.9 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Patrick Ohly">patrick.ohly</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>baogen.shang</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bruce.ashfield</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>48541</commentid>
    <comment_count>0</comment_count>
    <who name="Patrick Ohly">patrick.ohly</who>
    <bug_when>2015-02-04 11:01:28 +0000</bug_when>
    <thetext>I just experienced an issue where a patch listed in SRC_URI of a linux-yocto_%.bbapend file was not applied, without any errors.

I tracked it down to the fact that one of the following patches in SRC_URI was already applied. For example, suppose SRC_URI=&quot;a b c&quot; and &quot;b&quot; is already applied.

kgit-s2q when called via patchme -&gt; kgit-meta/do_pending_patches() then finds &quot;b&quot; in the already applied patches, uses it as resume point and skips &quot;a&quot;.

One could argue that none of the patches in SRC_URI should be already present, but I disagree. For example, a .bbappend file might add a new patch, then later the underlying kernel gets updated such that it contains the same patch.

My expectation is that the redundant patch (and only that patch) gets skipped (possibly with warning) or an error gets generated. I&apos;d be fine with both.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48545</commentid>
    <comment_count>1</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-02-04 13:11:34 +0000</bug_when>
    <thetext>There&apos;s no easy way to do this, without validating each and every
patch in the branch, and that isn&apos;t something we will do.

The design is to locate a resume point, and resume from there. We
already have patch time issues on queues of 10k+ patches, and doing
individual patch application, detection and skipping isn&apos;t going to
be possible without significantly increasing the patch time.

This might be possible as an optional mode of the script&apos;s processing,
so I&apos;m tagging this as an enhancement .. since it absolutely is not
a bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48612</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-02-06 16:39:55 +0000</bug_when>
    <thetext>To clarify. There are some updates to the tools that just came out that give us
the flexibility to trap this case as an error, and abort the patching phase. That will
make it clear to the user that the series is invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>51116</commentid>
    <comment_count>3</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-05-19 02:28:07 +0000</bug_when>
    <thetext>*** Bug 7788 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>