| Summary: | oe-init-build-env should check for dash and throw a meaningful error | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Stephano Cetola <stephano> |
| Component: | core | Assignee: | Joshua Watt <JPEWhacker> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | brian.avery, jacob.kroon, JPEWhacker, meta.mr.watcher, meta.watcher, randy.macleod |
| Version: | 2.2 | ||
| Target Milestone: | 2.8 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Stephano Cetola
2017-07-07 23:44:25 UTC
perhaps we could check to see if it acts like bash or dash. e.g. if [ "$RANDOM" != "" ]; then echo "I am bash" else echo " I am dash" fi This is a bug. It's also a simple change and should make M4. I just tried this with dash 0.5.9, and it appeared to work correctly (at least I was able to source the environment script and start a core-image-minimal build). Do you have an example of the errors that were being generated? Joshua, Stephano has left the Yocto Team, so has Brian, so if this work for you why don't you close it as works for me. Thanks, Stephen This appears to work with dash 0.5.9. This can be reopened if it is determined that we need to work with an older version. On ubuntu 9 using dash, it does work when run from the same directory as the script lives in, but not otherwise. Sorry, I meant debian 9. Let's add a check in the init script so that it will fail early and loudly if dash is used and the CWD isn't correct. Fixed in 09923bbf467612a481a058d35f3717189b72477f ("oe-init-build-env: Error out when failed to locate cwd")
|