http://bugs.openembedded.org/show_bug.cgi?id=1715
Summary: bitbake -g broken
Product: BitBake
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: trivial
Priority: P3
Component: BitBake
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
QAContact: [EMAIL PROTECTED]
This is regarding the generation of dependency trees in dot syntax. I believe
it is broken due to the wrong number of arguments being supplied to one of the
internal functions (output attached).
exec: bitbake --help
output:
....
-g, --graphviz emit the dependency trees of the specified packages in
the dot syntax
...
[EMAIL PROTECTED]:/work/opene/build# bitbake -g gpe-image
NOTE: Using cache in '/work/opene/build/tmp/cache/x86'
NOTE: Handling BitBake files: / (4065/4065) [100 %]
NOTE: Parsing finished. 3892 cached, 0 parsed, 173 skipped, 0 masked.
Traceback (most recent call last):
File "/work/opene/bitbake/bin/bitbake", line 1161, in ?
main()
File "/work/opene/bitbake/bin/bitbake", line 1156, in main
cooker.cook( BBConfiguration( options ), args[1:] )
File "/work/opene/bitbake/bin/bitbake", line 962, in cook
self.generateDotGraph( pkgs_to_build, self.configuration.ignored_dot_deps )
File "/work/opene/bitbake/bin/bitbake", line 544, in generateDotGraph
add_depends( pkgs_to_build )
File "/work/opene/bitbake/bin/bitbake", line 467, in add_depends
fn = myFilterProvider(providers, package)[0]
File "/work/opene/bitbake/bin/bitbake", line 413, in myFilterProvider
preferred_versions[pn] = bb.providers.findBestProvider(pn, pkg_pn)[2:4]
TypeError: findBestProvider() takes at least 3 arguments (2 given)
[EMAIL PROTECTED]:/work/opene/build#
bitbake/bin/bitbake:
...
412 for pn in pkg_pn.keys():
-> 413 preferred_versions[pn] =
bb.providers.findBestProvider(pn, pkg_pn)[2:4] <-
414 eligible.append(preferred_versions[pn][1])
...
I believe it needs a third argument of type data cache, I have tried supplying
self.bb_cache and self.cache but it did not work.
I have tried it with the latest svn distribution, as well as, with the tar.gz
distributions, 1.6.2 and 1.7.2 (unstable).
--
Configure bugmail: http://bugs.openembedded.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
_______________________________________________
Bitbake-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/bitbake-dev