From: Richard Purdie Date: Fri, 6 May 2022 15:56:01 +0000 (+0100) Subject: base: Avoid circular references to our own scripts X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~4172 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52c37e133fa55846aca2248ffcf3a10648dbb8d7;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index 3515720bf95..bdb3ac33c67 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -115,6 +115,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: