[oe-commits] Ed Bartosh : wic: don't use host paths when looking for native tools

git at git.openembedded.org git at git.openembedded.org
Fri Apr 10 13:49:03 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: fa263f238bbddb00c9953994fb69cc358170e2ec
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=fa263f238bbddb00c9953994fb69cc358170e2ec

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Tue Apr  7 11:12:08 2015 +0300

wic: don't use host paths when looking for native tools

exec_native_cmd should not use host paths in $PATH to
avoid finding and using host tools.

[YOCTO: #6204]

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/lib/wic/utils/oe/misc.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/lib/wic/utils/oe/misc.py b/scripts/lib/wic/utils/oe/misc.py
index ea9b6e8..5facbe0 100644
--- a/scripts/lib/wic/utils/oe/misc.py
+++ b/scripts/lib/wic/utils/oe/misc.py
@@ -81,7 +81,7 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
     Always need to execute native commands as_shell
     """
     native_paths = \
-        "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin:$PATH" % \
+        "export PATH=%s/sbin:%s/usr/sbin:%s/usr/bin" % \
         (native_sysroot, native_sysroot, native_sysroot)
     native_cmd_and_args = "%s;%s" % (native_paths, cmd_and_args)
     msger.debug("exec_native_cmd: %s" % cmd_and_args)



More information about the Openembedded-commits mailing list