Tell the user that they should switch to using USERMOD_PARAM instead of
GROUPMEMS_PARAM.

[YOCTO#16277]

Signed-off-by: Peter Kjellerstedt <[email protected]>
---
 meta/classes/useradd.bbclass | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/meta/classes/useradd.bbclass b/meta/classes/useradd.bbclass
index 55393d38f7..e83a886af0 100644
--- a/meta/classes/useradd.bbclass
+++ b/meta/classes/useradd.bbclass
@@ -308,6 +308,15 @@ fakeroot python populate_packages:prepend() {
             update_useradd_package(pkg)
 }
 
+do_recipe_qa[postfuncs] += "recipe_qa_deprecate_groupmems_param"
+python recipe_qa_deprecate_groupmems_param() {
+    useradd_packages = d.getVar('USERADD_PACKAGES') or ""
+    for pkg in useradd_packages.split():
+        if d.getVar(f"GROUPMEMS_PARAM:{pkg}"):
+            bb.warn("Use of the GROUPMEMS_PARAM variable is deprecated. Please 
switch to using USERMOD_PARAM instead")
+            return
+}
+
 # Use the following to extend the useradd with custom functions
 USERADDEXTENSION ?= ""
 
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#236904): 
https://lists.openembedded.org/g/openembedded-core/message/236904
Mute This Topic: https://lists.openembedded.org/mt/119284987/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to