If I user executes the environment script instead of sourcing it, they see errors about a "" element in PATH. This is because bitbake isn't present in PATH which breaks the PATH change in layer.conf. We should add a sanity check for bitbake being present in PATH and error if not about the environment not being correct (did they source the script?).
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!