]> code.ossystems Code Review - openembedded-core.git/commitdiff
wic: don't use host paths when looking for native tools
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 7 Apr 2015 08:12:08 +0000 (11:12 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Apr 2015 18:48:02 +0000 (19:48 +0100)
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@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/wic/utils/oe/misc.py

index ea9b6e8ec4053675e2724b9497cb7aa8ef47e25f..5facbe0b700a6204814f46033d92be97d8e0523b 100644 (file)
@@ -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)