<?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>1322</bug_id>
          
          <creation_ts>2011-08-03 04:49:22 +0000</creation_ts>
          <short_desc>-k option allows bitbake to return 0 on non-existent target</short_desc>
          <delta_ts>2011-08-10 06:30:02 +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>BitBake</product>
          <component>bitbake</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Patch on mailing list for review</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>15184</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-08-03 04:49:22 +0000</bug_when>
    <thetext>If you run bitbake -k doesnotexist the return code is 0:

------- snip -------
ERROR: Nothing PROVIDES &apos;doesnotexist&apos;
NOTE: Resolving any missing task queue dependencies
NOTE: Tasks Summary: Attempted 0 tasks of which 0 didn&apos;t need to be rerun and 0 failed.
paul@helios:~/poky/poky/build$ echo $?
0
------- snip -------

This can be bad for the autobuilder because tasks that actually failed look like they succeeded:

http://autobuilder.yoctoproject.org:8010/builders/crownbay-noemgd/builds/27/steps/shell_10/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15365</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-08-10 06:30:02 +0000</bug_when>
    <thetext>Fixed in http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=83eacdcf13217b0aedad6e1298609440266a3291</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>