| Summary: | Give a warning for multiple do_foo definitions | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Laszlo Papp <lpapp> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Low | CC: | bluelightning, poky.bs.watcher, poky.watcher, sgw |
| Version: | unspecified | ||
| Target Milestone: | Future | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Yes (doc changes required) | |
|
Description
Laszlo Papp
2014-02-27 12:22:01 UTC
Its not possible to tell the difference between someone intentionally overwriting a function and someone doing it accidentally. We do intentionally override functions on a regular basis in common metadata. The syntax we have simply doesn't give us a way to solve this so we can't do what you propose. I do not follow. Could you please provide a bit more explanation, at the very least examples? In worst case, a blacklist filtering could be added for which packages, it should not check, but I really do not see it fun people wasting time with such things which can be automatically caught by the system in most cases. Bitbake stores everything as key/value pairs regardless of whether its a function or a variable. Even just limiting our scope to functions, base.bbclass defines do_configure, autotools redefines it. There are hundreds of different cases where things are defined in one place and then redefined some place else. This is perfectly normal behaviour for the way the metadata is defined to work. So no, we're not adding blacklist and whitelist filtering. "There are hundreds of different cases where things are defined in one place and then redefined some place else." I wonder if the bugreport was clear, based on that statement. The bugreport is writing about defined and redefined in one place, not one place and somewhere else. I am not saying that the latter is invalid, but I am saying the former is. |