Skip to contentSkip to conversation

Bitbaking a recipe which refers to a missing bbclass

DISCUSSION Nicolas FR 4 participants 6 messages Oct 10, 2006 – Oct 14, 2006

lore
Share & tools
lore

Nicolas FR

author
#0 lore raw

Hi,

I have noticed that when bitbaking a recipe which refers to a missing .bbclass definition, there where no warning / error.

For example let's say I try to bitbake example.bb which has:
"inherits qt3x11"

if qt3x11 is missing in my /opt/OE/mybranch/classes/ then no warning / error is isued.

Should I submit a bug for this?

Regards;
Nicolas.

#1 lore raw
Quoted 4 lines · Nicolas FR

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.

Signature · 1 line
 Jamie Lenehan <[email protected]>
#2 lore raw
Quoted 9 lines · Jamie Lenehan
Quoted 4 lines · Nicolas FR

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:

bb/parse/parse_py/BBHandler.py (working copy) renamed from bb/parse/parse_py/BBHandler.py (revision 618) +1 -1
Index: lib/bb/parse/parse_py/BBHandler.py
===================================================================
@@ -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).

Signature · 1 line
Justin Patrin
#3 lore raw
In reply to Nicolas FR

Am Dienstag, den 10.10.2006, 15:31 +0200 schrieb Nicolas FR:

Quoted 8 lines

I have noticed that when bitbaking a recipe which refers to a missing .bbclass definition, there where no warning / error.

For example let's say I try to bitbake example.bb which has:
"inherits qt3x11"

if qt3x11 is missing in my /opt/OE/mybranch/classes/ then no warning / error is isued.

This is probably an artifact of the 'inherit' and the 'include' statement sharing code.
I would like to propose 'inherit' to behave like 'require'.

Quoted 1 line

Should I submit a bug for this?

Yes, please.

Signature · 3 lines
Regards,

Michael 'Mickey' Lauer | FreeLancer | http://www.Vanille-Media.de
#5 lore raw
In reply to Michael 'Mickey' Lauer
Quoted 7 lines · Michael 'Mickey' Lauer

Am Dienstag, den 10.10.2006, 15:31 +0200 schrieb Nicolas FR:

Quoted 6 lines

I have noticed that when bitbaking a recipe which refers to a missing .bbclass definition, there where no warning / error.

For example let's say I try to bitbake example.bb which has:
"inherits qt3x11"

Quoted 6 lines
Quoted 2 lines

if qt3x11 is missing in my /opt/OE/mybranch/classes/ then no warning / error is isued.

This is probably an artifact of the 'inherit' and the 'include' statement sharing code.
I would like to propose 'inherit' to behave like 'require'.

Yep, I'd certainly support that.

In my case I had named my new class "cpan_build.bb" and it took me ages to figure out why it wouldn't work... should have been .bbclass of course but I'm just sooo0 used to calling things .bb!

Signature · 1 line
 Jamie Lenehan <[email protected]>