[oe-commits] [openembedded-core] 07/07: base.bbclass: ensure HOSTTOOLS links point to executables
git at git.openembedded.org
git at git.openembedded.org
Thu Mar 30 15:44:14 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 7f40c934c3aeb1d34f95f30b281e25a17c428fce
Author: Ross Burton <ross.burton at intel.com>
AuthorDate: Thu Mar 30 14:34:10 2017 +0100
base.bbclass: ensure HOSTTOOLS links point to executables
Use the new executable argument to bb.utils.which() to ensure that the symlinks
point to executable files and not for example directories with the right name
which happened to be on $PATH.
[ YOCTO #11256 ]
Signed-off-by: Ross Burton <ross.burton at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/base.bbclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index cf8748a..e29821f 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -128,9 +128,9 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True):
for tool in tools:
desttool = os.path.join(dest, tool)
if not os.path.exists(desttool):
- srctool = bb.utils.which(path, tool)
+ srctool = bb.utils.which(path, tool, executable=True)
if "ccache" in srctool:
- srctool = bb.utils.which(path, tool, direction=1)
+ srctool = bb.utils.which(path, tool, executable=True, direction=1)
if srctool:
os.symlink(srctool, desttool)
else:
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list