| Summary: | devtool within extensible SDK does not work with dash as /bin/sh | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Paul Eggleton <bluelightning> |
| Component: | devtools / tool chain | Assignee: | Paul Eggleton <bluelightning> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Undecided | CC: | meta.mr.watcher, meta.watcher, Qi.Chen, richard.purdie |
| Version: | 1.8 | ||
| Target Milestone: | 1.9 M1 | ||
| Hardware: | All | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |
|
Description
Paul Eggleton
2015-04-15 18:07:14 UTC
Hi Paul,
How about setting executable to bash like below?
Regards,
Chen Qi
diff --git a/scripts/lib/devtool/__init__.py b/scripts/lib/devtool/__init__.py
index 3f8158e..7e7908d 100644
--- a/scripts/lib/devtool/__init__.py
+++ b/scripts/lib/devtool/__init__.py
@@ -27,6 +27,10 @@ logger = logging.getLogger('devtool')
def exec_build_env_command(init_path, builddir, cmd, watch=False, **options):
import bb
+ # As the init script makes use of BASH_SOURCE to determine OEROOT, we need to set
+ # executable to bash to correctly set things up
+ if not 'executable' in options:
+ options["executable"] = 'bash'
if not 'cwd' in options:
options["cwd"] = builddir
if init_path:
I asked Richard about this and his suggestion was to set BDIR instead (having ensured that the current directory is set to avoid the first issue). To be honest I'm flexible with either approach... OK, on reflection I've taken Qi's fix as it's simpler (thanks Qi!). |