[oe] List of dependent packages

Ray Lehtiniemi rayl at mail.com
Wed Sep 27 13:45:13 UTC 2006


On Wednesday 27 September 2006 01:36, Joaquim Duran wrote:
> Hello,
>
> As I've the impression that Bitbake is very related to OE. I post the
> bug here.
>
> I execute: bitbake -g boostrap-image.
> Output:
>
> NOTE: Parsing finished. 3962 cached, 0 parsed, 139 skipped, 27 masked.
>
> Traceback (most recent call last):
>    File "/home/qduran/oe/bitbake/bin/bitbake", line 1161, in ?
>      main()
>    File "/home/qduran/oe/bitbake/bin/bitbake", line 1156, in main
>      cooker.cook( BBConfiguration( options ), args[1:] )
>    File "/home/qduran/oe/bitbake/bin/bitbake", line 962, in cook
>      self.generateDotGraph( pkgs_to_build,
> self.configuration.ignored_dot_deps )
>    File "/home/qduran/oe/bitbake/bin/bitbake", line 544, in
> generateDotGraph add_depends( pkgs_to_build )
>    File "/home/qduran/oe/bitbake/bin/bitbake", line 467, in add_depends
>      fn = myFilterProvider(providers, package)[0]
>    File "/home/qduran/oe/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)
>

i've found that there are several files under lib/bb/ with this problem.

this patch is cut and pasted, so is probably whitespace mangled....

Index: lib/bb/shell.py
===================================================================
--- lib/bb/shell.py     (revision 612)
+++ lib/bb/shell.py     (working copy)
@@ -57,6 +57,8 @@
 except NameError:
     from sets import Set as set
 import sys, os, readline, socket, httplib, urllib, commands, popen2, copy, 
shlex, Queue, fnmatch
+
+import bb
 from bb import data, parse, build, fatal

 __version__ = "0.5.3.1"
Index: lib/bb/providers.py
===================================================================
--- lib/bb/providers.py (revision 612)
+++ lib/bb/providers.py (working copy)
@@ -23,8 +23,8 @@
 # Place, Suite 330, Boston, MA 02111-1307 USA.

 import os, re
+import bb
 from bb import data, utils
-import bb

 class NoProvider(Exception):
     """Exception raised when no provider can be found"""




hope it helps

ray





More information about the Openembedded-devel mailing list