Skip to contentSkip to conversation

useradd.bbclass: Fix missing space when appending vardeps.

PATCH New Siong 1 participant 1 message Feb 19, 2024

lore
Share & tools
lore

Siong

author
#0 lore raw

PATCH 1/1 useradd.bbclass: Fix missing space when appending vardeps.

Missing space character when appending vardeps for populate sysroot causes USERADD_PARAM:%s and another variable to be concatenated into one word, consequently both variables are not valid for vardeps.

---
 meta/classes/useradd.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/useradd.bbclass +1 -1
index a58f8287c9..f0ec080920 100644
@@ -196,7 +196,7 @@ def update_useradd_after_parse(d):
         bb.fatal("%s inherits useradd but doesn't set USERADD_PACKAGES" % d.getVar('FILE', False))
 
     for pkg in useradd_packages.split():
-        d.appendVarFlag("do_populate_sysroot", "vardeps", "USERADD_PARAM:%s GROUPADD_PARAM:%s GROUPMEMS_PARAM:%s" % (pkg, pkg, pkg))
+        d.appendVarFlag("do_populate_sysroot", "vardeps", " USERADD_PARAM:%s GROUPADD_PARAM:%s GROUPMEMS_PARAM:%s" % (pkg, pkg, pkg))
         if not d.getVar('USERADD_PARAM:%s' % pkg) and not d.getVar('GROUPADD_PARAM:%s' % pkg) and not d.getVar('GROUPMEMS_PARAM:%s' % pkg):
             bb.fatal("%s inherits useradd but doesn't set USERADD_PARAM, GROUPADD_PARAM or GROUPMEMS_PARAM for package %s" % (d.getVar('FILE', False), pkg))
 
Signature · 1 line
2.43.0