[oe] Bitbaking a recipe which refers to a missing bbclass

Justin Patrin papercrane at gmail.com
Tue Oct 10 22:44:59 UTC 2006


On 10/10/06, Jamie Lenehan <lenehan at twibble.org> wrote:
> On Tue, Oct 10, 2006 at 03:31:42PM +0200, "Nicolas FR" wrote:
> > Hi,
> >
> > I have noticed that when bitbaking a recipe which refers to a missing
> > .bbclass definition, there where no warning / error.
>
> I've noticed the same thing and I agree that it's rather annoying.
> I'd much rather it fail then continue on and do something else.
>

Try:

Index: lib/bb/parse/parse_py/BBHandler.py
===================================================================
--- lib/bb/parse/parse_py/BBHandler.py  (revision 618)
+++ lib/bb/parse/parse_py/BBHandler.py  (working copy)
@@ -62,7 +62,7 @@
         if not file in __inherit_cache.split():
             debug(2, "BB %s:%d: inheriting %s" % (fn, lineno, file))
             __inherit_cache += " %s" % file
-            include(fn, file, d)
+            include(fn, file, d, True)
     data.setVar('__inherit_cache', __inherit_cache, d)


This should show a big ERROR while parsing (but it doesn't bail, it
will just fail saying that there is no provider for this package as it
doesn't seem to make it into the cache now).

-- 
Justin Patrin




More information about the Openembedded-devel mailing list