diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-05-06 16:56:01 +0100 |
---|---|---|
committer | Steve Sakoman <steve@sakoman.com> | 2022-05-10 08:23:11 -1000 |
commit | 1567b7cec5ccbe198bfd0cca9ee8a2b1cf6dbf42 (patch) | |
tree | afd01099843fca144c32afda50dd1fdc74c340dc | |
parent | e3672b5ccd6e0f130b1657017802db130a859d20 (diff) | |
download | openembedded-core-contrib-1567b7cec5ccbe198bfd0cca9ee8a2b1cf6dbf42.tar.gz |
base: Avoid circular references to our own scripts
We'd like to intercept git calls but we don't want circular references
and HOSTTOOLS currently sets them up. Tweak to avoid them.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 52c37e133fa55846aca2248ffcf3a10648dbb8d7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r-- | meta/classes/base.bbclass | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 9ed736b0e1..19604a4646 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -122,6 +122,10 @@ def setup_hosttools_dir(dest, toolsvar, d, fatal=True): tools = d.getVar(toolsvar).split() origbbenv = d.getVar("BB_ORIGENV", False) path = origbbenv.getVar("PATH") + # Need to ignore our own scripts directories to avoid circular links + for p in path.split(":"): + if p.endswith("/scripts"): + path = path.replace(p, "/ignoreme") bb.utils.mkdirhier(dest) notfound = [] for tool in tools: |