Bug 1793

Summary: bitbake -e doesn't work with combination with -b virtual:native:path/to/foo_1.0.bb
Product: [Build System, Metadata & Runtime] BitBake Reporter: Martin Jansa <Martin.Jansa>
Component: bitbakeAssignee: Richard Purdie <richard.purdie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: poky.bs.watcher, poky.watcher, sgw
Version: unspecified   
Target Milestone: 1.2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Martin Jansa 2011-11-30 04:14:30 UTC
It was working a while back, now I've tried it and it fails like this:

OE om-gta02@shr ~/shr-core $ bitbake -e -b virtual:native:/OE/shr-core/openembedded-core/meta/recipes-gnome/gnome/gconf_3.2.3.bb
ERROR: Unable to match virtual:native:/OE/shr-core/openembedded-core/meta/recipes-gnome/gnome/gconf_3.2.3.bb (0 matches found):
ERROR: Command execution failed: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 101, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 308, in showEnvironment
    command.cooker.showEnvironment(bfile)
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 292, in showEnvironment
    fn = self.matchFile(buildfile)
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 957, in matchFile
    raise MultipleMatches
MultipleMatches

the same with relative path after virtual:native:
OE om-gta02@shr ~/shr-core $ bitbake -e -b virtual:native:openembedded-core/meta/recipes-gnome/gnome/gconf_3.2.3.bb
ERROR: Unable to match virtual:native:openembedded-core/meta/recipes-gnome/gnome/gconf_3.2.3.bb (0 matches found):
ERROR: Command execution failed: Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 101, in runAsyncCommand
    commandmethod(self.cmds_async, self, options)
  File "/usr/lib64/python2.7/site-packages/bb/command.py", line 308, in showEnvironment
    command.cooker.showEnvironment(bfile)
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 292, in showEnvironment
    fn = self.matchFile(buildfile)
  File "/usr/lib64/python2.7/site-packages/bb/cooker.py", line 957, in matchFile
    raise MultipleMatches
MultipleMatches

path in -b without 'virtual:native:' works fine
OE om-gta02@shr ~/shr-core $ bitbake -e -b openembedded-core/meta/recipes-gnome/gnome/gconf_3.2.3.bb

I've tried to revert commit
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=9d4f95587424c9e2d3ef7891c8ac7007f8db1f00
from #1465, but still it doesn't work.

And this is also slightly related to #1141.