| Summary: | bitbake example class uses old getVarFlag() syntax | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Alexe Radu <alexeRadu2007> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | jku, poky.bs.watcher, poky.watcher |
| Version: | unspecified | ||
| Target Milestone: | 2.2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Alexe Radu
2016-05-06 09:07:47 UTC
Since earlier this year getVarFlag() requires the expand parameter to be present (this is in preparation for future when expand will default to True). So this is not a bug in bitbake or yocto but an API change. I'm not closing the bug yet since it seems the documentation is not up-to-date yet (e.g. https://www.yoctoproject.org/docs/current/bitbake-user-manual/bitbake-user-manual.html#accessing-datastore-variables-using-python). I'll send the tutorial author an email, maybe he wants to fix that as well. The comment is not only in the documentation but also in the default base.bbclass provided by bitbake. Problems are at line 46 and line 55. Here the old API is used. I assume you mean this base.bbclass:
> home/radu/work/bbtutorial/build/../meta-tutorial/classes/base.bbclass
This file seems to be part of the tutorial you are using, not bitbake or oe-core.
The base.bbclass is located in <bitbake-path>/classes that comes with the standard bitbake I cloned from the github repository. The tutorial pointed out that I should use it which I did. (In reply to comment #4) > The base.bbclass is located in <bitbake-path>/classes that comes with the > standard bitbake I cloned from the github repository. > > The tutorial pointed out that I should use it which I did. Ah, you copied the example class to the tutorial directory and that one is not updated. Got it, sorry for my slowness (it is monday). Updating title. No problem. |