<?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>3392</bug_id>
          
          <creation_ts>2012-11-06 09:37:56 +0000</creation_ts>
          <short_desc>bitbake -e ASSUME_PROVIDED failed with unclear errors</short_desc>
          <delta_ts>2012-11-30 08:25:42 +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>1.4</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>Design</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Yang">liezhi.yang</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>zhenfeng.zhao</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>27249</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-11-06 09:37:56 +0000</bug_when>
    <thetext>&quot;bitbake -e ASSUME_PROVIDED&quot; should fail, but the error message isn&apos;t clear currently:

$  bitbake -e bzip2-native
Loading cache: 100% |######################################################################################################| ETA:  00:00:00
Loaded 1117 entries from dependency cache.
Parsing recipes: 100% |####################################################################################################| Time: 00:00:00
Parsing of 816 .bb files complete (815 cached, 1 parsed). 1116 targets, 24 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Command execution failed: Traceback (most recent call last):
  File &quot;/buildarea/lyang1/poky/bitbake/lib/bb/command.py&quot;, line 94, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File &quot;/buildarea/lyang1/poky/bitbake/lib/bb/command.py&quot;, line 323, in showEnvironmentTarget
    command.cooker.showEnvironment(None, pkg)
  File &quot;/buildarea/lyang1/poky/bitbake/lib/bb/cooker.py&quot;, line 325, in showEnvironment
    fnid = taskdata.build_targets[targetid][0]
KeyError: 0


Summary: There was 1 ERROR message shown, returning a non-zero exit code.

The following patch would make it clear:

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index e299059..5f88f1f 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -313,6 +313,10 @@ class BBCooker:
         elif len(pkgs_to_build) == 1:
             self.updateCache()
 
+            ignore = self.configuration.data.getVar(&quot;ASSUME_PROVIDED&quot;, True) or &quot;&quot;
+            if pkgs_to_build[0] in set(ignore.split()):
+                bb.fatal(&quot;%s is in ASSUME_PROVIDED&quot; % pkgs_to_build[0])
+
             localdata = data.createCopy(self.configuration.data)
             bb.data.update_data(localdata)
             bb.data.expandKeys(localdata)


I will send it to the mailing list sooner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27612</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2012-11-22 07:27:17 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=41125ddc8651494ffcf888d3b5efce1ae6d953bb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27846</commentid>
    <comment_count>2</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-11-30 08:25:42 +0000</bug_when>
    <thetext>Verified with 1.4_M1. 
gitinfo: 247b6a3754c2c50318e2a73d79981ba0e9cb560b

The error message is clear now:
########
$ bitbake -e bzip2-native
Loading cache: 100% |####################################################################################################################################################| ETA:  00:00:00
Loaded 1116 entries from dependency cache.
ERROR: bzip2-native is in ASSUME_PROVIDED
ERROR: Command execution failed: Exited with 1

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
#########</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>