From 619a6e46f41f48ec97d92b43640109d9574fc711 Mon Sep 17 00:00:00 2001
From: Andrei Gherzan <andrei.gherzan@huawei.com>
Date: Thu, 4 Aug 2022 11:53:40 +0200
Subject: [PATCH] oniro.inc: Force bbappends parser behaviour to avoid surpises

BB_DANGLINGAPPENDS_WARNONLY controls how the parser behaves when
dangling bbappends are found. When not defined (or defined to 0/no), it
errors out and forces for these to be updated and handled accordingly.
We rely on this behaviour to force us to forward port changes or drop if
needed. The problem is that some layers might (in various ways) define
this to only warn in this case breaking our CI and project health
assumptions.

To avoid this, we force this in the inc included by all our distros.
Doing this in local.conf is problematic this would change behaviour by
just importing a layer.

Fixes: https://gitlab.eclipse.org/eclipse/oniro-core/oniro/-/issues/751

Signed-off-by: Andrei Gherzan <andrei.gherzan@huawei.com>
---
 meta-oniro-core/conf/distro/include/oniro.inc | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/meta-oniro-core/conf/distro/include/oniro.inc b/meta-oniro-core/conf/distro/include/oniro.inc
index 86a54168..1f50269d 100644
--- a/meta-oniro-core/conf/distro/include/oniro.inc
+++ b/meta-oniro-core/conf/distro/include/oniro.inc
@@ -9,3 +9,5 @@ INHERIT += "oniro-sanity"
 # Configuration needed for meta-java layer
 PREFERRED_PROVIDER_virtual/java-initial-native ?= "cacao-initial-native"
 PREFERRED_PROVIDER_virtual/java-native ?= "cacao-native"
+
+BB_DANGLINGAPPENDS_WARNONLY:forcevariable = "0"
-- 
GitLab