<?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>6202</bug_id>
          
          <creation_ts>2014-04-22 02:38:24 +0000</creation_ts>
          <short_desc>Linux-yocto.bb suggests running bitbake -c devshell on do_patch failure</short_desc>
          <delta_ts>2015-06-16 04:04:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Kernel</product>
          <component>linux-yocto</component>
          <version>1.6</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</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 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Brian Lloyd">blloyd</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>42803</commentid>
    <comment_count>0</comment_count>
    <who name="Brian Lloyd">blloyd</who>
    <bug_when>2014-04-22 02:38:24 +0000</bug_when>
    <thetext>When a do_patch operation fails for Linux-yocto, it recommends running &apos;bitbake -c devshell Linux-yocto&apos; to troubleshoot/fix the error.
However, With Dylan and later, running the suggested command gives the same error instead of opening a development terminal.

To see this in practice, you will need to break a machine by modifying an .scc file such that another included .scc file is not found.  The file not found causes the do_patch to fail, which prints the
&quot;Patch failures can be resolved in the devshell (bitbak -c devshell ${PN})&quot;

However, since devshell runs after do_patch, and do_patch fails, there is no way into the devshell.


This bug is not to report a broken do_patch (it should have been broken), but is to report the invalid help message printed when an error does occur.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42973</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2014-04-24 14:49:00 +0000</bug_when>
    <thetext>devshell.bbclass sets do_devshell to run after do_patch, so it seems that a broken patch could block devshell from executing for any recipe, not just the kernel. We could change devshell to be run after do_unpack instead, but then that would break some people&apos;s workflow if they expect to start with the patched source as they do currently.

We do have another option here - we have a proper shell-based interactive patch resolution feature that is enabled by setting PATCHRESOLVE to &quot;user&quot;. Since kernel-yocto.bbclass has its own custom do_patch it may not currenly work with this however; perhaps the best solution would be to make it work with that if it doesn&apos;t and change the message (which is specific to kernel-yocto.bbclass) to recommend using that rather than devshell which won&apos;t work anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48697</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2015-02-10 21:11:06 +0000</bug_when>
    <thetext>For now, we&apos;ll get the message update and worry about changing the devshell dependencies
in 1.9.

Changing the status to &quot;in design&quot;.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>