base.bbclass: ensure HOSTTOOLS links point to executables
PATCH 1/1 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 ]
--- meta/classes/base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
meta/classes/base.bbclass +2 -2
@@ -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:
Signature · 1 line
2.8.1
Shouldn't this bump required bitbake version?
Quoted 39 lines · Ross Burton
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 <[email protected]>--- meta/classes/base.bbclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)meta/classes/base.bbclass +2
-2@@ -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:
--
2.8.1--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
Quoted 2 lines · Martin Jansa
Shouldn't this bump required bitbake version?
Yes, there needs to be a corresponding version bump.
I'm hoping that we can re-order/stall to avoid bumping too many times during M4.
Ross