GENERAL DESCRIPTION An error appears when trying to source the poky environment on a mounted drive which contain spaces in its Filesystem Label name. STEPS TO REPRODUCE 1. Mount an external drive containing spaces in the filesystem label name. (e.g. SSD DRIVE) 2. Go to that drive and get a poky clone 3. Try to source the environment EXPECTED RESULTS 3. The environment is sourced ACTUAL RESULTS: yocto@yocto-o1:/media/SSD Volume/poky$ source oe-init-build-env bash: /media/SSD: No such file or directory yocto@yocto-o1:/media/SSD Volume/poky$
There are lots of issues with spaces in directories, this is not something that the overall build system handles well at all. I would suggest that this is a documentation issue (or a sanity check in the scripts). Also, you need to provide more information about your build env in the future, while this bug had enough into, you do not say which branch or release version.
I have tested on a Ubuntu 12.10 machine using the latest commit on master. commit: 78983e939ab17f02f8911c8b0d0e326b419856b9
This needs to be well documentated that bitbake does not handle "Spaces" in directory names, linux just does not handle this gracefully. It's possible a check could be added for spaces in the filename.
To be clear this is not a linux issue, the biggest problem is autotools doesn't handle this correct. If autotools did handle it correctly, there would be hope for the rest of the system. it doesn't and therefore we won't until it does.
I will figure out a spot to put some notes and such in the documentation warning the user about this problem. I am assuming the suggested action for the user is simply to be sure that the drive and filesystem that the user is using for the poky clone shoud be free of spaces in directory names. Scott
Notes added in the following places: * http://www.yoctoproject.org/docs/1.4/poky-ref-manual/poky-ref-manual.html#ref-structure * http://www.yoctoproject.org/docs/1.4/dev-manual/dev-manual.html#source-directory * http://www.yoctoproject.org/docs/1.4/poky-ref-manual/poky-ref-manual.html#structure-core-script * http://www.yoctoproject.org/docs/1.4/yocto-project-qs/yocto-project-qs.html#building-image (I did not place a note here since it would add clutter to the QS. Instead, I provided a cross-link into the reference manual to the oe-init-build-env section). * http://www.yoctoproject.org/docs/1.4/poky-ref-manual/poky-ref-manual.html#structure-core-script (link only) Let me know if this is adequate. Scott
No feedback indicating problems with this solution. Marked RESOLVED. See Comment #6 for the links to the final text. Scott
*** Bug 3759 has been marked as a duplicate of this bug. ***
verified as per above comments.