summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-19 10:30:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-21 12:16:28 +0000
commit282cc1ea929f2dc43c095c0029c3b3974bb40566 (patch)
treec7b7d718f09b3dafcfef5dd21b4f2ea726c339e1 /bitbake/lib/bb
parent1bca7e242531382eafccf91158db159e811802fd (diff)
downloadpoky-282cc1ea929f2dc43c095c0029c3b3974bb40566.tar.gz
bitbake: cooker: Drop support for BB_DANGLINGAPPENDS_WARNONLY
DANGLINGAPPENDS_WARNONLY is a very poorly designed interface and is commonly abused. The challenge is that once it is set, by any layer, it applies everywhere. Some layers rely on this to get notification they need to update bbappend files and having the behaviour change from inclusion of an antisocial layer is not good. In addition, showing warnings as an accepted thing on the console devalues them and trains the user to ignore them. I want to steer us away from this mindset. We could extend the functionality and make it apply only to certain layers, or only to certain appends but then we've basically re-invented BBMASK. Given all the above, we should drop support for BB_DANGLINGAPPENDS_WARNONLY and direct anyone with issues to BBMASK instead. https://lists.openembedded.org/g/openembedded-architecture/message/2029 [YOCTO #14870] (Bitbake rev: fca9c9e3cb6f8e9f99bf51dc5e8a8d83f4c84c69) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/cooker.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index d58c0f575c..a8e0a81dc9 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -957,13 +957,7 @@ class BBCooker:
957 '\n '.join(appends_without_recipes[mc]))) 957 '\n '.join(appends_without_recipes[mc])))
958 958
959 if msgs: 959 if msgs:
960 msg = "\n".join(msgs) 960 bb.fatal("\n".join(msgs))
961 warn_only = self.databuilder.mcdata[mc].getVar("BB_DANGLINGAPPENDS_WARNONLY", \
962 False) or "no"
963 if warn_only.lower() in ("1", "yes", "true"):
964 bb.warn(msg)
965 else:
966 bb.fatal(msg)
967 961
968 def handlePrefProviders(self): 962 def handlePrefProviders(self):
969 963