| Summary: | bitbake fails to parse with "method already seen" error | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] BitBake | Reporter: | Mark Hatle <mark.hatle> |
| Component: | bitbake | Assignee: | Richard Purdie <richard.purdie> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium | CC: | poky.bs.watcher, poky.watcher, sgw, sstncr |
| Version: | unspecified | ||
| Target Milestone: | 1.3 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
|
Description
Mark Hatle
2012-06-01 16:27:23 UTC
I have checked in a workaround for this issue to the meta-selinux layer. When attempting to reproduce this, be sure you match the commits in the original reproducer. Commit: df4662758708ec030852ba3de007e021f0c4ad49 -- workaround for this issue. This is not so much a bug but bitbake telling you that you're doing something invalid. Whilst its not particularly obvious, python functions share a global namespace since this is what BitBake has always done. Bitbake therefore errors if you try and add the same funciton name from different contexts. The solution is to put common functions within a .inc file. I agree the error message is less than intuative... I've improved the error message in master to resolve this issue: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=4ff6160d909e2a39e357c8a51f37d803dab64d5d Verified. |