native: remove PN from DEPENDS automatically
If a recipe (say, wayland) has DEPENDS=wayland-native and BBCLASSEXTEND=native, when built as wayland-native it has DEPENDS=wayland-native which results in a circular dependency. Typically this is resolved by having explicit DEPENDS_class-native statements but as this is duplication which can lead to inconsistent dependencies, automatically remove the circular dependency. (From OE-Core rev: 3e9392c0965166462e0993d46f4cc2fb1832f1e5) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
7330a886ce
commit
8ac69a923c
|
@ -132,7 +132,9 @@ python native_virtclass_handler () {
|
|||
deps = bb.utils.explode_deps(deps)
|
||||
newdeps = []
|
||||
for dep in deps:
|
||||
if "-cross-" in dep:
|
||||
if dep == pn:
|
||||
continue
|
||||
elif "-cross-" in dep:
|
||||
newdeps.append(dep.replace("-cross", "-native"))
|
||||
elif not dep.endswith("-native"):
|
||||
newdeps.append(dep + "-native")
|
||||
|
|
Loading…
Reference in New Issue