<?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>1141</bug_id>
          
          <creation_ts>2011-06-06 13:36:05 +0000</creation_ts>
          <short_desc>bitbake -b prints meaningless error when given an invalid recipe name</short_desc>
          <delta_ts>2012-02-05 07:35: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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.0</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>(P1)(QA Testing Completed) (Done)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.2 M3</target_milestone>
          
          <blocked>1543</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Garman">scott.a.garman</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>14189</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2011-06-06 13:36:05 +0000</bug_when>
    <thetext>Phil Blundell reported that bitbake -b can give meaningless errors when used with invalid recipe names.

Case 1: the recipe name is invalid

bitbake -b bogus
ERROR: Command execution failed: Traceback (most recent call last):
&lt;python traceback&gt;
AttributeError: &apos;NoneType&apos; object has no attribute &apos;bbfile_config_priorities&apos;

Case 2: the recipe name is valid, but is skipped (due to COMPATIBLE_MACHINE, for example)

bitbake -b v86d
ERROR: Command execution failed: Traceback (most recent call last):
&lt;python traceback&gt;
AttributeError: &apos;NoneType&apos; object has no attribute &apos;bbfile_config_priorities&apos;

Note that if you don&apos;t include the -b option to bitbake, the above examples print out much more useful information:

ERROR: Nothing PROVIDES &apos;bogus&apos;
&lt;python traceback&gt;
NoProvider: bogus

So I think the goal is to fix this so the NoProvider information is displayed instead (although, see bug #542 regarding ways to even improve this error case).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14908</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2011-07-22 08:05:51 +0000</bug_when>
    <thetext>With latest master, bitbake -b seems to be working well again - specifying just the package name (v86d), a recipe file name with no path (v86d_0.1.9.bb), and the full path to a recipe (/home/paul/poky/poky/meta/recipes-bsp/v86d/v86d_0.1.9.bb) all work fine. What still needs to be improved ideally is what you get when you specify something that doesn&apos;t exist:

paul@helios:~/poky/poky/build$ bitbake -b bogus
ERROR: Unable to match bogus (0 matches found):
ERROR: Command execution failed: Traceback (most recent call last):
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/command.py&quot;, line 102, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/command.py&quot;, line 190, in buildFile
    command.cooker.buildFile(bfile, task)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/cooker.py&quot;, line 869, in buildFile
    fn = self.matchFile(fn)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/cooker.py&quot;, line 850, in matchFile
    raise MultipleMatches
MultipleMatches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18149</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2012-01-15 02:08:04 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9fd17bbe1ca3894437a16a625e05334dc97c5273</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18480</commentid>
    <comment_count>3</comment_count>
    <who name="Jiajun Xu">jiajun.xu</who>
    <bug_when>2012-02-05 07:35:53 +0000</bug_when>
    <thetext>It is verified as fixed in 1.2 M2.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>