| Summary: | Easy to have misleading warnings if env script is executed instead of sourced | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Richard Purdie <richard.purdie> |
| Component: | core | Assignee: | New Comer Bugs <newcomer> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | akuster, ankur.tyagi85, dorindabassey, meta.mr.watcher, meta.watcher, randy.macleod |
| Version: | 3.0 | ||
| Target Milestone: | 3.3 M2 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | NEWCOMMER | ||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Richard Purdie
2020-03-02 23:10:35 UTC
hi, I want to work on this bug, but i need a little bit of clarity from your description, this means i should add a sanity check in the environment script for if bitbake is present in the path, and if they sourced the script? The intent here was to check PATH in sanity.bbclass alongside other checks. To give more of a hint, where we check this in sanity.bbclass: http://git.yoctoproject.org/cgit.cgi/poky/tree/meta/classes/sanity.bbclass#n786 we could also add a call along the lines of "bb.utils.which(d.getVar('PATH'), 'bitbake')" which would determine if bitbake can be found in PATH. If not, we should error with a more specific error to the user. patch submitted to oe-core mailing list @ https://lists.openembedded.org/g/openembedded-core/message/147239?p=,,,20,0,0,0::Created,,sanity.bbclass%3A,20,2,0,80121254 Can you confirm that it's in oe-core/master and provide a link? Thanks. Alright, here is it https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=dbd80a923c9075d363f69ffd86b4392c210d668d Thanks. Thanks for the link Dorinda! |