Bitbaking a recipe which refers to a missing bbclass
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.
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]>
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
@@ -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
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
Bug submitted:
http://bugs.openembedded.org/show_bug.cgi?id=1478
Quoted 8 lines
Quoted 1 line
Should I submit a bug for this?
Yes, please.
--
Regards,Michael 'Mickey' Lauer | FreeLancer | http://www.Vanille-Media.de
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]>